csutherl commented on code in PR #919:
URL: https://github.com/apache/tomcat/pull/919#discussion_r2560742089
##########
java/org/apache/catalina/core/OpenSSLLifecycleListener.java:
##########
@@ -67,6 +67,29 @@ public static boolean isAvailable() {
return OpenSSLStatus.isAvailable();
}
+ /**
+ * Get the installed OpenSSL version string (via FFM), if available.
+ *
+ * @return the OpenSSL version string (e.g., "OpenSSL 3.2.6 30 Sep 2025"),
or null if not available
+ */
+ public static String getInstalledOpenSslVersion() {
+ if (!isAvailable()) {
+ return null;
+ }
+
+ if (JreCompat.isJre22Available()) {
+ try {
+ Class<?> openSSLLibraryClass =
+
Class.forName("org.apache.tomcat.util.net.openssl.panama.OpenSSLLibrary");
Review Comment:
I'll update that later if needed.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]