diff --git a/src/ssl.c b/src/ssl.c index ebe0b3ac82..1df33d6476 100644 --- a/src/ssl.c +++ b/src/ssl.c @@ -547,14 +547,12 @@ WOLFSSL_CTX* wolfSSL_CTX_new(WOLFSSL_METHOD* method) #endif } -#ifdef OPENSSL_EXTRA /* increases CTX reference count to track proper time to "free" */ int wolfSSL_CTX_up_ref(WOLFSSL_CTX* ctx) { int refCount = SSL_CTX_RefCount(ctx, 1); return ((refCount > 1) ? WOLFSSL_SUCCESS : WOLFSSL_FAILURE); } -#endif WOLFSSL_ABI void wolfSSL_CTX_free(WOLFSSL_CTX* ctx) diff --git a/wolfssl/ssl.h b/wolfssl/ssl.h index e78a2134ba..ae33938338 100644 --- a/wolfssl/ssl.h +++ b/wolfssl/ssl.h @@ -999,8 +999,8 @@ WOLFSSL_API int wolfSSL_use_RSAPrivateKey_file( WOLFSSL_API WOLFSSL_CTX* wolfSSL_CTX_new_ex(WOLFSSL_METHOD* method, void* heap); WOLFSSL_ABI WOLFSSL_API WOLFSSL_CTX* wolfSSL_CTX_new(WOLFSSL_METHOD* method); -#ifdef OPENSSL_EXTRA WOLFSSL_API int wolfSSL_CTX_up_ref(WOLFSSL_CTX* ctx); +#ifdef OPENSSL_EXTRA WOLFSSL_API int wolfSSL_CTX_set_ecdh_auto(WOLFSSL_CTX* ctx, int onoff); WOLFSSL_API int wolfSSL_get_signature_nid(WOLFSSL* ssl, int* nid); WOLFSSL_API int wolfSSL_CTX_set1_sigalgs_list(WOLFSSL_CTX* ctx,