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

Commit

Permalink
configure: disable ssl2/ssl3 by default
Browse files Browse the repository at this point in the history
PR-URL: #8551
Reviewed-By: Ben Noordhuis <[email protected]>
  • Loading branch information
indutny committed Oct 15, 2014
1 parent 6a95e9f commit 0ec78c9
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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', '')

Expand Down

0 comments on commit 0ec78c9

Please sign in to comment.