Skip to content

Commit

Permalink
Use SSL_SESSION_get_master_key() for LibreSSL. (#285)
Browse files Browse the repository at this point in the history
Since version 2.7 LibreSSL implements SSL_SESSION_get_master_key().
Use this instead of accessing internal struct fields.
  • Loading branch information
bluhm committed Sep 1, 2021
1 parent e294b04 commit b5143ea
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
Expand Up @@ -6281,7 +6281,7 @@ SSL_total_renegotiations(ssl)
OUTPUT:
RETVAL

#if OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER)
#if (OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER)) || (LIBRESSL_VERSION_NUMBER >= 0x2070000fL)
void
SSL_SESSION_get_master_key(s)
SSL_SESSION * s
Expand Down

0 comments on commit b5143ea

Please sign in to comment.