This is an automated email from the ASF dual-hosted git repository.

markt-asf pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git

commit fef1f888efee39fc09616192afa8bd163106a225
Author: Mark Thomas <[email protected]>
AuthorDate: Tue Sep 1 16:21:19 2026 +0100

    Note that a couple of deprecated methods have been made NO-OPs
---
 java/org/apache/tomcat/jni/SSLContext.java | 18 ++++++++----------
 1 file changed, 8 insertions(+), 10 deletions(-)

diff --git a/java/org/apache/tomcat/jni/SSLContext.java 
b/java/org/apache/tomcat/jni/SSLContext.java
index f5a763cee7..1cc4fa4978 100644
--- a/java/org/apache/tomcat/jni/SSLContext.java
+++ b/java/org/apache/tomcat/jni/SSLContext.java
@@ -667,13 +667,12 @@ public final class SSLContext {
     public static native void setAlpnProtos(long ctx, String[] alpnProtos, int 
selectorFailureBehavior);
 
     /**
-     * Set DH parameters
+     * This is a NO-OP.
      *
-     * @param ctx  Server context to use.
-     * @param cert DH param file (can be generated from e.g. {@code openssl 
dhparam -rand - 2048 > dhparam.pem} - see
-     *                 the <a 
href="https://www.openssl.org/docs/apps/dhparam.html";>OpenSSL 
documentation</a>).
+     * @param ctx  Unused.
+     * @param cert Unused.
      *
-     * @throws Exception An error occurred
+     * @throws Exception Never thrown.
      *
      * @deprecated The scope of the APR/Native Library will be reduced in 
Tomcat 9.1.x / Tomcat Native 2.x and has been
      *                 reduced in Tomcat 10.1.x / Tomcat Native 2.x onwards to 
only include those components required to
@@ -683,13 +682,12 @@ public final class SSLContext {
     public static native void setTmpDH(long ctx, String cert) throws Exception;
 
     /**
-     * Set ECDH elliptic curve by name
+     * This is a NO-OP.
      *
-     * @param ctx       Server context to use.
-     * @param curveName the name of the elliptic curve to use (available names 
can be obtained from
-     *                      {@code openssl ecparam -list_curves}).
+     * @param ctx       Unused.
+     * @param curveName Unused.
      *
-     * @throws Exception An error occurred
+     * @throws Exception Never thrown.
      *
      * @deprecated The scope of the APR/Native Library will be reduced in 
Tomcat 9.1.x / Tomcat Native 2.x and has been
      *                 reduced in Tomcat 10.1.x / Tomcat Native 2.x onwards to 
only include those components required to


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to