Skip to content

Commit 935698e

Browse files
committed
ssl: update TLS1_3_VERSION workaround for older LibreSSL versions
The macro is now defined by default in LibreSSL 3.4+. Let's document it for future readers.
1 parent 6a188f1 commit 935698e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

ext/openssl/ossl_ssl.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@
1414
#define numberof(ary) (int)(sizeof(ary)/sizeof((ary)[0]))
1515

1616
#if !defined(TLS1_3_VERSION) && \
17-
defined(LIBRESSL_VERSION_NUMBER) && \
18-
LIBRESSL_VERSION_NUMBER >= 0x3020000fL
17+
OSSL_LIBRESSL_PREREQ(3, 2, 0) && !OSSL_LIBRESSL_PREREQ(3, 4, 0)
1918
# define TLS1_3_VERSION 0x0304
2019
#endif
2120

0 commit comments

Comments
 (0)