diff options
author | Fedor Indutny <fedor@indutny.com> | 2014-10-15 12:58:01 +0400 |
---|---|---|
committer | Fedor Indutny <fedor@indutny.com> | 2014-10-15 19:39:40 +0400 |
commit | 0ec78c961b32abf732620682678439c51f74dc86 (patch) | |
tree | f32c5af972a09af853d397391d20dd406b41e3f0 | |
parent | 6a95e9f7e01b06e5318ef01b0be7bbc00ef43a3d (diff) | |
download | node-0ec78c961b32abf732620682678439c51f74dc86.tar.gz |
configure: disable ssl2/ssl3 by default
PR-URL: https://github.com/joyent/node/pull/8551
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
-rwxr-xr-x | configure | 16 |
1 files changed, 12 insertions, 4 deletions
@@ -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', '') |