mirror of https://github.com/grpc/grpc-java.git
Fix AdvancedTlsX509TrustManager to handle client side validation of socket
This commit is contained in:
parent
658cbf6cfe
commit
dcb1c018c6
|
|
@ -200,7 +200,11 @@ public final class AdvancedTlsX509TrustManager extends X509ExtendedTrustManager
|
|||
currentDelegateManager.checkServerTrusted(chain, authType, sslSocket);
|
||||
}
|
||||
} else {
|
||||
currentDelegateManager.checkClientTrusted(chain, authType, sslEngine);
|
||||
if (sslEngine != null) {
|
||||
currentDelegateManager.checkClientTrusted(chain, authType, sslEngine);
|
||||
} else {
|
||||
currentDelegateManager.checkClientTrusted(chain, authType, socket);
|
||||
}
|
||||
}
|
||||
}
|
||||
// Perform the additional peer cert check.
|
||||
|
|
|
|||
Loading…
Reference in New Issue