Skip to content

Commit 20ecb22

Browse files
bluhmh-vn
authored andcommitted
Enable OpenSSL_version for LibreSSL. (#99)
The functions OpenSSL_version_num() and OpenSSL_version() are available since LibreSSL 2.7.0.
1 parent ce5f62e commit 20ecb22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SSLeay.xs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1829,7 +1829,7 @@ const char *
18291829
SSLeay_version(type=SSLEAY_VERSION)
18301830
int type
18311831

1832-
#if OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER)
1832+
#if (OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER)) || (LIBRESSL_VERSION_NUMBER >= 0x2070000fL)
18331833

18341834
unsigned long
18351835
OpenSSL_version_num()

0 commit comments

Comments
 (0)