From: Matt Caswell Date: Thu, 18 Feb 2016 16:54:16 +0000 (+0000) Subject: Partial revert of 1288f26 and fix for no-async X-Git-Tag: OpenSSL_1_1_0-pre4~547 X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff_plain;h=316fae2a948afc1eb3a6d3d8b294156c011df133;hp=d99d0d96a70faad1bcc8ba95eb3bcf8a4f3fc9a8 Partial revert of 1288f26 and fix for no-async The commit 1288f26 says that it fixes no-async, but instead seems to break it. Therefore revert that change and fix no-async. Reviewed-by: Rich Salz --- diff --git a/Configure b/Configure index 82086ed5a6..04ed030d65 100755 --- a/Configure +++ b/Configure @@ -800,7 +800,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$/ || /^autoalginit/ || /^autoerrinit/) { push @{$config{openssl_other_defines}}, "OPENSSL_NO_$ALGO"; diff --git a/include/openssl/async.h b/include/openssl/async.h index 99d8075215..5223aadf37 100644 --- a/include/openssl/async.h +++ b/include/openssl/async.h @@ -50,17 +50,11 @@ * ==================================================================== */ +#include + #ifndef HEADER_ASYNC_H # define HEADER_ASYNC_H -#include - -#ifdef OPENSSL_NO_ASYNC -#define ASYNC_block_pause() do { ; } while(0) -#define ASYNC_unblock_pause() do { ; } while(0) -#else -#include - #if defined(_WIN32) #include #define OSSL_ASYNC_FD HANDLE @@ -122,5 +116,4 @@ void ERR_load_ASYNC_strings(void); #ifdef __cplusplus } #endif -#endif /* OPENSSL_NO_ASYNC */ #endif