diff --git a/src/ssl.c b/src/ssl.c index cca6da23a..3b5931d90 100644 --- a/src/ssl.c +++ b/src/ssl.c @@ -10832,15 +10832,15 @@ int wolfSSL_set_compression(WOLFSSL* ssl) return WOLFSSL_FATAL_ERROR; } -#ifndef NO_WOLFSSL_STUB int wolfSSL_OPENSSL_add_all_algorithms_noconf(void) { WOLFSSL_ENTER("wolfSSL_OPENSSL_add_all_algorithms_noconf"); - WOLFSSL_STUB("OPENSSL_add_all_algorigorithms_noconf"); - return SSL_NOT_IMPLEMENTED; + if (wolfSSL_add_all_algorithms() == WOLFSSL_FATAL_ERROR) + return WOLFSSL_FATAL_ERROR; + + return WOLFSSL_SUCCESS; } -#endif /* returns previous set cache size which stays constant */ long wolfSSL_CTX_sess_set_cache_size(WOLFSSL_CTX* ctx, long sz) diff --git a/tests/api.c b/tests/api.c index 215eb99cd..487ad3531 100644 --- a/tests/api.c +++ b/tests/api.c @@ -18436,6 +18436,15 @@ static void test_wolfSSL_X509_get_serialNumber(void) #endif } + +static void test_wolfSSL_OPENSSL_add_all_algorithms(void){ +#if defined(OPENSSL_EXTRA) + AssertIntEQ(wolfSSL_OPENSSL_add_all_algorithms_noconf(),WOLFSSL_SUCCESS); + wolfSSL_Cleanup(); +#endif +} + + static void test_no_op_functions(void) { #if defined(OPENSSL_EXTRA) @@ -19440,6 +19449,7 @@ void ApiTest(void) test_wolfSSL_SHA256(); test_wolfSSL_X509_get_serialNumber(); test_wolfSSL_X509_CRL(); + test_wolfSSL_OPENSSL_add_all_algorithms(); /* test the no op functions for compatibility */ test_no_op_functions(); diff --git a/wolfssl/ssl.h b/wolfssl/ssl.h index 2a4f6f4c0..7541a5a7f 100644 --- a/wolfssl/ssl.h +++ b/wolfssl/ssl.h @@ -1443,8 +1443,6 @@ WOLFSSL_API int wolfSSL_ASN1_UTCTIME_print(WOLFSSL_BIO*, WOLFSSL_API int wolfSSL_ASN1_GENERALIZEDTIME_print(WOLFSSL_BIO*, const WOLFSSL_ASN1_GENERALIZEDTIME*); WOLFSSL_API void wolfSSL_ASN1_GENERALIZEDTIME_free(WOLFSSL_ASN1_GENERALIZEDTIME*); -WOLFSSL_API int wolfSSL_ASN1_STRING_print_ex(WOLFSSL_BIO*, WOLFSSL_ASN1_STRING*, - unsigned long); WOLFSSL_API int wolfSSL_sk_num(WOLF_STACK_OF(WOLFSSL_ASN1_OBJECT)*); WOLFSSL_API void* wolfSSL_sk_value(WOLF_STACK_OF(WOLFSSL_ASN1_OBJECT)*, int);