Skip to content
This repository was archived by the owner on Apr 22, 2023. It is now read-only.

Commit 0ec78c9

Browse files
committed
configure: disable ssl2/ssl3 by default
PR-URL: #8551 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
1 parent 6a95e9f commit 0ec78c9

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

configure

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,10 +112,15 @@ parser.add_option("--systemtap-includes",
112112
dest="systemtap_includes",
113113
help=optparse.SUPPRESS_HELP)
114114

115-
parser.add_option("--no-ssl2",
115+
parser.add_option("--ssl2",
116116
action="store_true",
117-
dest="no_ssl2",
118-
help="Disable OpenSSL v2")
117+
dest="ssl2",
118+
help="Enable SSL v2")
119+
120+
parser.add_option("--ssl3",
121+
action="store_true",
122+
dest="ssl3",
123+
help="Enable SSL v3")
119124

120125
parser.add_option("--shared-zlib",
121126
action="store_true",
@@ -620,9 +625,12 @@ def configure_openssl(o):
620625
if options.without_ssl:
621626
return
622627

623-
if options.no_ssl2:
628+
if not options.ssl2:
624629
o['defines'] += ['OPENSSL_NO_SSL2=1']
625630

631+
if not options.ssl3:
632+
o['defines'] += ['OPENSSL_NO_SSL3=1']
633+
626634
if options.shared_openssl:
627635
(libs, cflags) = pkg_config('openssl') or ('-lssl -lcrypto', '')
628636

0 commit comments

Comments
 (0)