mirror of
https://github.com/curl/curl.git
synced 2026-08-25 00:33:31 +03:00
openssl: BoringSSL / AWS-LC tidy-ups
- schannel: apply BoringSSL workaround to AWS-LC too. Affects Schannel + AWS-LC MultiSSL builds. (not tested in CI) Ref:274940d743#2643 #2634 - curl_ntlm_core: deduplicate macro defines. - curl_ntlm_core: document version thresholds for an AWS-LC-specific workaround. It was necessary between v1.2.0 2022-09-01 and v1.30.1 2024-06-21. No longer necessary since v1.31.0 2024-07-01:ba94617d99Follow-up to34ef4fab22#10320 - lib758: drop redundant OpenSSL version guards. `OPENSSL_VERSION_NUMBER > 3` automatically guards against LibreSSL, BoringSSL and AWS-LC. Ref: https://github.com/curl/curl/pull/18288/commits/6ddd8f2c0bbfcb0847b1ee7f257fb772fa47310c Follow-up toa5f0ab7995#18288 - dllmain, curl_sha512_256: formatting. Closes #18387
This commit is contained in:
parent
4c40f8b8e0
commit
d65436d9a0
5 changed files with 10 additions and 19 deletions
|
|
@ -70,14 +70,10 @@
|
|||
# include <openssl/md5.h>
|
||||
# include <openssl/ssl.h>
|
||||
# include <openssl/rand.h>
|
||||
# ifdef OPENSSL_IS_AWSLC
|
||||
# ifdef OPENSSL_IS_AWSLC /* for versions 1.2.0 to 1.30.1 */
|
||||
# define DES_set_key_unchecked (void)DES_set_key
|
||||
# define DESKEYARG(x) *x
|
||||
# define DESKEY(x) &x
|
||||
# else
|
||||
# define DESKEYARG(x) *x
|
||||
# define DESKEY(x) &x
|
||||
# endif
|
||||
# define DESKEY(x) &x
|
||||
#else
|
||||
# include <wolfssl/openssl/des.h>
|
||||
# include <wolfssl/openssl/md5.h>
|
||||
|
|
@ -91,12 +87,11 @@
|
|||
# define DES_set_key_unchecked wolfSSL_DES_set_key_unchecked
|
||||
# define DES_ecb_encrypt wolfSSL_DES_ecb_encrypt
|
||||
# define DESKEY(x) ((WOLFSSL_DES_key_schedule *)(x))
|
||||
# define DESKEYARG(x) *x
|
||||
# else
|
||||
# define DESKEYARG(x) *x
|
||||
# define DESKEY(x) &x
|
||||
# endif
|
||||
#endif
|
||||
#define DESKEYARG(x) *x
|
||||
|
||||
#elif defined(USE_GNUTLS)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue