diff --git a/Configure b/Configure index 77bb60c3e6c54b7b741fec153b6e9f60d024135a..56fa31a079a84dbe8b43fc0e3ef0d2bde6ffafc8 100755 --- a/Configure +++ b/Configure @@ -227,6 +227,7 @@ my @dtls = qw(dtls1 dtls1_2); my @disablables = ( "aes", "asm", + "async", "bf", "camellia", "capieng", @@ -741,7 +742,7 @@ foreach (sort (keys %disabled)) my ($ALGO, $algo); ($ALGO = $algo = $_) =~ tr/[\-a-z]/[_A-Z]/; - if (/^asm$/ || /^err$/ || /^hw$/ || /^hw-/) + if (/^asm$/ || /^err$/ || /^hw$/ || /^hw-/ || /^async$/) { push @{$config{openssl_other_defines}}, "OPENSSL_NO_$ALGO"; print " OPENSSL_NO_$ALGO"; diff --git a/crypto/async/arch/async_posix.h b/crypto/async/arch/async_posix.h index 6cc313e16a2e5531abc16e8041a6f14f6d830958..85d033f8516076e5e843678859f35885265f819d 100644 --- a/crypto/async/arch/async_posix.h +++ b/crypto/async/arch/async_posix.h @@ -53,7 +53,7 @@ #define OPENSSL_ASYNC_ARCH_ASYNC_POSIX_H #include -#if (defined(OPENSSL_SYS_UNIX) || defined(OPENSSL_SYS_CYGWIN)) && defined(OPENSSL_THREADS) +#if (defined(OPENSSL_SYS_UNIX) || defined(OPENSSL_SYS_CYGWIN)) && defined(OPENSSL_THREADS) && !defined(OPENSSL_NO_ASYNC) # include diff --git a/crypto/async/arch/async_win.h b/crypto/async/arch/async_win.h index d2054bf665c1ffc778adce7a08235e33e167018f..fa345cb1f77a9ebb97eba4eafa216755271398e8 100644 --- a/crypto/async/arch/async_win.h +++ b/crypto/async/arch/async_win.h @@ -54,7 +54,7 @@ * This is the same detection used in cryptlib to set up the thread local * storage that we depend on, so just copy that */ -#if defined(_WIN32) +#if defined(_WIN32) && !defined(OPENSSL_NO_ASYNC) #include # define ASYNC_WIN # define ASYNC_ARCH diff --git a/util/mk1mf.pl b/util/mk1mf.pl index 1f9bdf47b74febff1b9d0c10372f1fcf9ff0ec70..ed1d0e195999b661208d7018552d2e09fcf78ef4 100755 --- a/util/mk1mf.pl +++ b/util/mk1mf.pl @@ -142,6 +142,7 @@ and [options] can be one of no-engine - No engine no-egd - No EGD no-hw - No hw + no-async - No Async (use NULL) nasm - Use NASM for x86 asm nw-nasm - Use NASM x86 asm for NetWare nw-mwasm - Use Metrowerks x86 asm for NetWare @@ -296,6 +297,7 @@ $cflags.=" -DOPENSSL_NO_EC" if $no_ec; $cflags.=" -DOPENSSL_NO_GOST" if $no_gost; $cflags.=" -DOPENSSL_NO_ENGINE" if $no_engine; $cflags.=" -DOPENSSL_NO_HW" if $no_hw; +$cflags.=" -DOPENSSL_NO_ASYNC" if $no_async; $cflags.=" -DOPENSSL_FIPS" if $fips; $cflags.=" -DOPENSSL_NO_JPAKE" if $no_jpake; $cflags.=" -DOPENSSL_NO_EC2M" if $no_ec2m; @@ -1411,6 +1413,7 @@ sub read_options "no-engine" => \$no_engine, "no-egd" => 0, "no-hw" => \$no_hw, + "no-async" => \$no_async, "just-ssl" => [\$no_rc2, \$no_idea, \$no_des, \$no_bf, \$no_cast, \$no_md2, \$no_mdc2, \$no_dsa, \$no_dh,