@@ -18983,8 +18983,10 @@ size_t wolfSSL_get_client_random(const WOLFSSL* ssl, unsigned char* out,
1898318983 return wolfSSL_OpenSSL_version();
1898418984#endif
1898518985 }
18986+ #endif /* OPENSSL_EXTRA */
1898618987
1898718988
18989+ #if defined(OPENSSL_EXTRA) || defined(HAVE_CURL)
1898818990#ifndef NO_MD5
1898918991 int wolfSSL_MD5_Init(WOLFSSL_MD5_CTX* md5)
1899018992 {
@@ -19781,6 +19783,9 @@ size_t wolfSSL_get_client_random(const WOLFSSL* ssl, unsigned char* out,
1978119783 }
1978219784#endif /* WOLFSSL_NOSHA3_512 */
1978319785#endif /* WOLFSSL_SHA3 */
19786+ #endif
19787+
19788+ #ifdef OPENSSL_EXTRA
1978419789
1978519790 unsigned char* wolfSSL_HMAC(const WOLFSSL_EVP_MD* evp_md, const void* key,
1978619791 int key_len, const unsigned char* d, int n,
@@ -20159,11 +20164,14 @@ size_t wolfSSL_get_client_random(const WOLFSSL* ssl, unsigned char* out,
2015920164
2016020165#endif /* OPENSSL_EXTRA */
2016120166
20162- #if defined(OPENSSL_EXTRA) || defined(DEBUG_WOLFSSL_VERBOSE)
20167+ #if defined(OPENSSL_EXTRA) || defined(DEBUG_WOLFSSL_VERBOSE) || \
20168+ defined(HAVE_CURL)
2016320169 void wolfSSL_ERR_clear_error(void)
2016420170 {
2016520171 WOLFSSL_ENTER("wolfSSL_ERR_clear_error");
20172+ #if defined(OPENSSL_EXTRA) || defined(DEBUG_WOLFSSL_VERBOSE)
2016620173 wc_ClearErrorNodes();
20174+ #endif
2016720175 }
2016820176#endif
2016920177
@@ -33492,16 +33500,15 @@ void wolfSSL_get0_next_proto_negotiated(const WOLFSSL *s, const unsigned char **
3349233500
3349333501#endif /* WOLFSSL_NGINX / WOLFSSL_HAPROXY */
3349433502
33495- #ifdef OPENSSL_EXTRA
33503+ #if defined( OPENSSL_EXTRA) || defined(HAVE_CURL)
3349633504int wolfSSL_curve_is_disabled(const WOLFSSL* ssl, word16 curve_id)
3349733505{
3349833506 return (curve_id <= WOLFSSL_ECC_MAX &&
3349933507 ssl->disabledCurves &&
3350033508 ssl->disabledCurves & (1 << curve_id));
3350133509}
33502- #endif
3350333510
33504- #if defined(OPENSSL_EXTRA) && (defined(HAVE_ECC) || \
33511+ #if (defined(HAVE_ECC) || \
3350533512 defined(HAVE_CURVE25519) || defined(HAVE_CURVE448))
3350633513static int set_curves_list(WOLFSSL* ssl, WOLFSSL_CTX *ctx, const char* names)
3350733514{
@@ -33678,7 +33685,8 @@ int wolfSSL_set1_curves_list(WOLFSSL* ssl, const char* names)
3367833685 }
3367933686 return set_curves_list(ssl, NULL, names);
3368033687}
33681- #endif /* OPENSSL_EXTRA && (HAVE_ECC || HAVE_CURVE25519 || HAVE_CURVE448) */
33688+ #endif /* (HAVE_ECC || HAVE_CURVE25519 || HAVE_CURVE448) */
33689+ #endif /* OPENSSL_EXTRA || HAVE_CURL */
3368233690
3368333691#ifdef OPENSSL_EXTRA
3368433692/* Sets a callback for when sending and receiving protocol messages.
0 commit comments