configure: disable ssl2/ssl3 by default

PR-URL: https://github.com/joyent/node/pull/8551
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
pull/23395/head
Fedor Indutny 2014-10-15 12:58:01 +04:00
parent 6a95e9f7e0
commit 0ec78c961b
1 changed files with 12 additions and 4 deletions

16
configure vendored
View File

@ -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', '')