This is an automated email from the ASF dual-hosted git repository.
remm pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/main by this push:
new 15d7157053 Port BZ 67818: SSL#setVerify()/SSLContext#setVerify()
silently set undocumented default verify paths
15d7157053 is described below
commit 15d71570530adb5382809a86cad3fd1dfe6ee880
Author: remm <[email protected]>
AuthorDate: Mon Oct 30 17:32:44 2023 +0100
Port BZ 67818: SSL#setVerify()/SSLContext#setVerify() silently set
undocumented default verify paths
---
java/org/apache/tomcat/util/net/openssl/panama/OpenSSLContext.java | 6 ------
1 file changed, 6 deletions(-)
diff --git a/java/org/apache/tomcat/util/net/openssl/panama/OpenSSLContext.java
b/java/org/apache/tomcat/util/net/openssl/panama/OpenSSLContext.java
index 1820db64ad..1742fb739c 100644
--- a/java/org/apache/tomcat/util/net/openssl/panama/OpenSSLContext.java
+++ b/java/org/apache/tomcat/util/net/openssl/panama/OpenSSLContext.java
@@ -603,12 +603,6 @@ public class OpenSSLContext implements
org.apache.tomcat.util.net.SSLContext {
break;
}
- // SSLContext.setVerify(state.ctx, value,
sslHostConfig.getCertificateVerificationDepth());
- if (SSL_CTX_set_default_verify_paths(state.sslCtx) > 0) {
- var store = SSL_CTX_get_cert_store(state.sslCtx);
- X509_STORE_set_flags(store, 0);
- }
-
// Set int verify_callback(int preverify_ok, X509_STORE_CTX
*x509_ctx) callback
var openSSLCallbackVerify =
Linker.nativeLinker().upcallStub(openSSLCallbackVerifyHandle,
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]