src/java.base/share/classes/sun/security/ssl/DTLSRecord.java

Print this page
8167680 DTLS implementation bugs

*** 1,7 **** /* ! * Copyright (c) 1996, 2015, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this --- 1,7 ---- /* ! * Copyright (c) 1996, 2016, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this
*** 82,87 **** --- 82,101 ---- headerPlusMaxIVSize // header + iv + 2 // alert + maxPadding // padding + maxMacSize; // MAC + /* + * Minimum record size of Certificate handshake message. + * Client sends a certificate message containing no certificates if no + * suitable certificate is available. That is, the certificate_list + * structure has a length of zero. + * + * struct { + * ASN.1Cert certificate_list<0..2^24-1>; + * } Certificate; + */ + static final int minCertPlaintextSize = + headerSize // record header + + handshakeHeaderSize // handshake header + + 3; // cert list length }