8072385: Only the first DNSName entry is checked for endpoint identification

Reviewed-by: weijun, jnimeh
This commit is contained in:
Xue-Lei Andrew Fan 2015-03-11 04:52:39 +00:00
parent 0d022c42c9
commit 665dc6f627

View File

@ -1569,6 +1569,9 @@ final class ClientHandshaker extends Handshaker {
/*
* 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<String> getSubjectAltNames(
Collection<List<?>> subjectAltNames, int type) {