Skip to content

Commit

Permalink
GH-452 Recently exposed SSL_SESSION_get0_cipher requires OpenSSL 1.1.0.
Browse files Browse the repository at this point in the history
Fix the #if compilation guard to use correct OpenSSL version.
SSL_SESSION_get0_cipher is added by OpenSSL 1.1.0.
h-vn committed Dec 27, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 008b235 commit c30a6a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SSLeay.xs
Original file line number Diff line number Diff line change
@@ -7166,7 +7166,7 @@ SSL_SESSION_set_protocol_version(SSL_SESSION *s, int version)

#endif

#if (OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER)) || (LIBRESSL_VERSION_NUMBER >= 0x3040000fL)
#if (OPENSSL_VERSION_NUMBER >= 0x1010000fL && !defined(LIBRESSL_VERSION_NUMBER)) || (LIBRESSL_VERSION_NUMBER >= 0x3040000fL)

const SSL_CIPHER *
SSL_SESSION_get0_cipher(const SSL_SESSION *s)

0 comments on commit c30a6a2

Please sign in to comment.