From 0ec78c961b32abf732620682678439c51f74dc86 Mon Sep 17 00:00:00 2001 From: Fedor Indutny Date: Wed, 15 Oct 2014 12:58:01 +0400 Subject: [PATCH] configure: disable ssl2/ssl3 by default PR-URL: https://github.com/joyent/node/pull/8551 Reviewed-By: Ben Noordhuis --- configure | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/configure b/configure index 4751c0fc292..5d8dee0e9dc 100755 --- a/configure +++ b/configure @@ -112,10 +112,15 @@ parser.add_option("--systemtap-includes", dest="systemtap_includes", help=optparse.SUPPRESS_HELP) -parser.add_option("--no-ssl2", +parser.add_option("--ssl2", action="store_true", - dest="no_ssl2", - help="Disable OpenSSL v2") + dest="ssl2", + help="Enable SSL v2") + +parser.add_option("--ssl3", + action="store_true", + dest="ssl3", + help="Enable SSL v3") parser.add_option("--shared-zlib", action="store_true", @@ -620,9 +625,12 @@ def configure_openssl(o): if options.without_ssl: return - if options.no_ssl2: + if not options.ssl2: o['defines'] += ['OPENSSL_NO_SSL2=1'] + if not options.ssl3: + o['defines'] += ['OPENSSL_NO_SSL3=1'] + if options.shared_openssl: (libs, cflags) = pkg_config('openssl') or ('-lssl -lcrypto', '')