# HG changeset patch # User jnimeh # Date 1526321284 25200 # Node ID f8a11b589cc58f6425fadb5f5aa06aca9cb3c269 # Parent ad120e0dfcfb7a58da3e0987023180e18ea05919 Fix improper ordering for default certificate type field in CertificateRequest Summary: Fixes the ordering in the CERT_TYPES constant for the CertificateRequest message. ECDSA will now be an advertised type when ECDSA is available in JCE. diff -r ad120e0dfcfb -r f8a11b589cc5 src/java.base/share/classes/sun/security/ssl/CertificateRequest.java --- a/src/java.base/share/classes/sun/security/ssl/CertificateRequest.java Sun May 13 08:52:25 2018 -0700 +++ b/src/java.base/share/classes/sun/security/ssl/CertificateRequest.java Mon May 14 11:08:04 2018 -0700 @@ -82,11 +82,11 @@ ECDSA_FIXED_ECDH ((byte)0x42, "ecdsa_fixed_ecdh"); private static final byte[] CERT_TYPES = - JsseJce.isEcAvailable() ? new byte[] { + JsseJce.isEcAvailable() ? new byte[] { + ECDSA_SIGN.id, RSA_SIGN.id, DSS_SIGN.id } : new byte[] { - ECDSA_SIGN.id, RSA_SIGN.id, DSS_SIGN.id };