File tomcat-native-nosslv2.patch of Package libtcnative-1-0
--- tomcat-native-1.1.30-src.orig/jni/native/src/sslcontext.c
+++ tomcat-native-1.1.30-src/jni/native/src/sslcontext.c
@@ -73,12 +73,17 @@ TCN_IMPLEMENT_CALL(jlong, SSLContext, ma
switch (protocol) {
case SSL_PROTOCOL_SSLV2:
+#ifdef OPENSSL_NO_SSL2
+ tcn_Throw(e, "Invalid Server SSL Protocol: SSLv2 not supported");
+ goto init_failed;
+#else
if (mode == SSL_MODE_CLIENT)
ctx = SSL_CTX_new(SSLv2_client_method());
else if (mode == SSL_MODE_SERVER)
ctx = SSL_CTX_new(SSLv2_server_method());
else
ctx = SSL_CTX_new(SSLv2_method());
+#endif
break;
case SSL_PROTOCOL_SSLV3:
if (mode == SSL_MODE_CLIENT)