# HG changeset patch # User xuelei # Date 1426049559 0 # Node ID 9927a5ff3ded04fc95face8fa6171db1205642a3 # Parent 348a32f79d797e3e63cbb09edbba4e32b24227a7 8072385: Only the first DNSName entry is checked for endpoint identification Reviewed-by: weijun, jnimeh diff -r 348a32f79d79 -r 9927a5ff3ded jdk/src/java.base/share/classes/sun/security/ssl/ClientHandshaker.java --- a/jdk/src/java.base/share/classes/sun/security/ssl/ClientHandshaker.java Tue Mar 10 14:23:03 2015 -0700 +++ b/jdk/src/java.base/share/classes/sun/security/ssl/ClientHandshaker.java Wed Mar 11 04:52:39 2015 +0000 @@ -1569,6 +1569,9 @@ /* * Returns the subject alternative name of the specified type in the * subjectAltNames extension of a certificate. + * + * Note that only those subjectAltName types that use String data + * should be passed into this function. */ private static Collection getSubjectAltNames( Collection> subjectAltNames, int type) {