Skip to content

Commit

Permalink
Fix AdvancedTlsX509TrustManager to handle client side validation of s…
Browse files Browse the repository at this point in the history
…ocket
  • Loading branch information
cfredri4 authored and ejona86 committed Jul 11, 2024
1 parent 658cbf6 commit dcb1c01
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,11 @@ private void checkTrusted(X509Certificate[] chain, String authType, SSLEngine ss
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.
Expand Down

0 comments on commit dcb1c01

Please sign in to comment.