diff options
author | David Benjamin <davidben@google.com> | 2016-02-08 23:19:31 -0500 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2016-02-09 08:46:36 +0100 |
commit | 39c803cba216b91ff8233f6d5585468f8662d1c4 (patch) | |
tree | 290082234a651c187e663cb68152f67377f0c2d8 /lib/config-win32.h | |
parent | 674b57e76b9daf544c9103655a8b92bdfcd08851 (diff) | |
download | curl-39c803cba216b91ff8233f6d5585468f8662d1c4.tar.gz |
openssl: remove most BoringSSL #ifdefs.
As of https://boringssl-review.googlesource.com/#/c/6980/, almost all of
BoringSSL #ifdefs in cURL should be unnecessary:
- BoringSSL provides no-op stubs for compatibility which replaces most
#ifdefs.
- DES_set_odd_parity has been in BoringSSL for nearly a year now. Remove
the compatibility codepath.
- With a small tweak to an extend_key_56_to_64 call, the NTLM code
builds fine.
- Switch OCSP-related #ifdefs to the more generally useful
OPENSSL_NO_OCSP.
The only #ifdefs which remain are Curl_ossl_version and the #undefs to
work around OpenSSL and wincrypt.h name conflicts. (BoringSSL leaves
that to the consumer. The in-header workaround makes things sensitive to
include order.)
This change errs on the side of removing conditionals despite many of
the restored codepaths being no-ops. (BoringSSL generally adds no-op
compatibility stubs when possible. OPENSSL_VERSION_NUMBER #ifdefs are
bad enough!)
Closes #640
Diffstat (limited to 'lib/config-win32.h')
-rw-r--r-- | lib/config-win32.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/config-win32.h b/lib/config-win32.h index 3920e1fc9..269e6dbbf 100644 --- a/lib/config-win32.h +++ b/lib/config-win32.h @@ -228,12 +228,6 @@ This is present in OpenSSL versions after 0.9.6b */ #define HAVE_CRYPTO_CLEANUP_ALL_EX_DATA 1 -/* Define if you have the 'DES_set_odd_parity' function when using OpenSSL/ - BoringSSL */ -#if defined(USE_OPENSSL) || defined(HAVE_BORINGSSL) -#define HAVE_DES_SET_ODD_PARITY 1 -#endif - /* Define if you have the select function. */ #define HAVE_SELECT 1 |