Skip to content

Commit

Permalink
openssl: match LibreSSL deinit with its init
Browse files Browse the repository at this point in the history
Earlier we bumped LibreSSL to use modern initialization, but did not
touch deinitialization due to uncertainties [1]. Fix it in this patch.

Regression from bec0c5b curl#11611

[1] curl#11611 (comment)

Reported-by: Mike Hommey
Fixes curl#12525
Closes #xxxxx
  • Loading branch information
vszakats committed Dec 15, 2023
1 parent 246e0d8 commit 3222914
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/vtls/openssl.c
Original file line number Diff line number Diff line change
Expand Up @@ -1753,7 +1753,7 @@ static int ossl_init(void)
static void ossl_cleanup(void)
{
#if (OPENSSL_VERSION_NUMBER >= 0x10100000L) && \
!defined(LIBRESSL_VERSION_NUMBER)
(!defined(LIBRESSL_VERSION_NUMBER) || LIBRESSL_VERSION_NUMBER >= 0x2070000fL)
/* OpenSSL 1.1 deprecates all these cleanup functions and
turns them into no-ops in OpenSSL 1.0 compatibility mode */
#else
Expand Down

0 comments on commit 3222914

Please sign in to comment.