mirror of
https://github.com/curl/curl.git
synced 2026-07-23 22:27:21 +03:00
build: tidy up internal feature detection variables for wolfSSL
Sync them with the function name they detect, and sync them between cmake and autotools. - rename `HAVE_WOLFSSL_BIO` to `HAVE_WOLFSSL_BIO_NEW`. - rename `HAVE_WOLFSSL_FULL_BIO` to `HAVE_WOLFSSL_BIO_SET_SHUTDOWN`. - autotools: rename `WOLFSSL_NTLM` to `HAVE_WOLFSSL_DES_ECB_ENCRYPT` (to sync with cmake). - autotools: rename `WOLFSSL_BIO` to `HAVE_WOLFSSL_BIO_NEW` (to sync with cmake). - autotools: simplify `HAVE_WOLFSSL_DES_ECB_ENCRYPT` detection. Cherry-picked from #17082 Closes #17175
This commit is contained in:
parent
1f6fef7ec0
commit
ae0ff69f7a
6 changed files with 24 additions and 36 deletions
|
|
@ -713,10 +713,10 @@ ${SIZEOF_TIME_T_CODE}
|
|||
#cmakedefine HAVE_WOLFSSL_DES_ECB_ENCRYPT 1
|
||||
|
||||
/* if wolfSSL has the wolfSSL_BIO_new function. */
|
||||
#cmakedefine HAVE_WOLFSSL_BIO 1
|
||||
#cmakedefine HAVE_WOLFSSL_BIO_NEW 1
|
||||
|
||||
/* if wolfSSL has the wolfSSL_BIO_set_shutdown function. */
|
||||
#cmakedefine HAVE_WOLFSSL_FULL_BIO 1
|
||||
#cmakedefine HAVE_WOLFSSL_BIO_SET_SHUTDOWN 1
|
||||
|
||||
/* if libssh is in use */
|
||||
#cmakedefine USE_LIBSSH 1
|
||||
|
|
|
|||
|
|
@ -96,11 +96,11 @@
|
|||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_WOLFSSL_BIO
|
||||
#ifdef HAVE_WOLFSSL_BIO_NEW
|
||||
#define USE_BIO_CHAIN
|
||||
#ifdef HAVE_WOLFSSL_FULL_BIO
|
||||
#ifdef HAVE_WOLFSSL_BIO_SET_SHUTDOWN
|
||||
#define USE_FULL_BIO
|
||||
#else /* HAVE_WOLFSSL_FULL_BIO */
|
||||
#else /* HAVE_WOLFSSL_BIO_SET_SHUTDOWN */
|
||||
#undef USE_FULL_BIO
|
||||
#endif
|
||||
/* wolfSSL 5.7.4 and older do not have these symbols, but only the
|
||||
|
|
@ -114,7 +114,7 @@
|
|||
#define wolfSSL_BIO_set_retry_read BIO_set_retry_read
|
||||
#endif /* !WOLFSSL_BIO_CTRL_GET_CLOSE */
|
||||
|
||||
#else /* HAVE_WOLFSSL_BIO */
|
||||
#else /* HAVE_WOLFSSL_BIO_NEW */
|
||||
#undef USE_BIO_CHAIN
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue