aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLibravatarLibravatar daurnimator <quae@daurnimator.com> 2015-11-15 20:24:48 +1100
committerLibravatarLibravatar daurnimator <quae@daurnimator.com> 2015-11-15 20:24:48 +1100
commit60634ba626d9f511c825de03dd7dddaec321dde1 (patch)
tree939f313ec22797f6f7e50d73441c7f0400b4f3fa /src
parent60fc10973eb348cb3d99d27f083437ddeab03f14 (diff)
downloadluaossl-60634ba626d9f511c825de03dd7dddaec321dde1.tar.gz
luaossl-60634ba626d9f511c825de03dd7dddaec321dde1.tar.bz2
luaossl-60634ba626d9f511c825de03dd7dddaec321dde1.zip
Guard SSLv3_server_method with #ifndef OPENSSL_NO_SSL3
Related to https://github.com/wahern/cqueues/issues/113
Diffstat (limited to 'src')
-rw-r--r--src/openssl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/openssl.c b/src/openssl.c
index 9dbcda7..d0be29e 100644
--- a/src/openssl.c
+++ b/src/openssl.c
@@ -5422,9 +5422,11 @@ static int sx_new(lua_State *L) {
method = (srv)? &SSLv2_server_method : &SSLv2_client_method;
break;
#endif
+#ifndef OPENSSL_NO_SSL3
case 3: /* SSLv3 */
method = (srv)? &SSLv3_server_method : &SSLv3_client_method;
break;
+#endif
case 4: /* SSLv23 */
method = (srv)? &SSLv23_server_method : &SSLv23_client_method;
break;