Skip to content

Commit

Permalink
Fix build with upcoming libressl release
Browse files Browse the repository at this point in the history
The SSL_SESSION and SSL3_STATE structs will become opaque in the
upcoming LibreSSL version 3.4.x. This will break the build. The
requisite accessors have been available since LibreSSL 2.7.0, so
adjust the version check accordingly.
  • Loading branch information
botovq committed May 5, 2021
1 parent dcce1ab commit a3be157
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ssl.c
Expand Up @@ -598,7 +598,7 @@ ssl_ssl_masterkey_to_str(SSL *ssl)
char *str = NULL;
int rv;
unsigned char *k, *r;
#if (OPENSSL_VERSION_NUMBER >= 0x10100000L) && !defined(LIBRESSL_VERSION_NUMBER)
#if (OPENSSL_VERSION_NUMBER >= 0x10100000L) && (!defined(LIBRESSL_VERSION_NUMBER) || LIBRESSL_VERSION_NUMBER >= 0x2070000fL)
unsigned char kbuf[48], rbuf[32];
k = &kbuf[0];
r = &rbuf[0];
Expand Down

0 comments on commit a3be157

Please sign in to comment.