File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1050,7 +1050,7 @@ Init_openssl(void)
1050
1050
/*
1051
1051
* Init all digests, ciphers
1052
1052
*/
1053
- #if !defined( LIBRESSL_VERSION_NUMBER ) && OPENSSL_VERSION_NUMBER >= 0x10100000
1053
+ #if OSSL_OPENSSL_PREREQ ( 1 , 1 , 0 ) || OSSL_IS_LIBRESSL
1054
1054
if (!OPENSSL_init_ssl (0 , NULL ))
1055
1055
rb_raise (rb_eRuntimeError , "OPENSSL_init_ssl" );
1056
1056
#else
@@ -1075,7 +1075,7 @@ Init_openssl(void)
1075
1075
/*
1076
1076
* Version of OpenSSL the ruby OpenSSL extension is running with
1077
1077
*/
1078
- #if !defined( LIBRESSL_VERSION_NUMBER ) && OPENSSL_VERSION_NUMBER >= 0x10100000
1078
+ #if OSSL_OPENSSL_PREREQ ( 1 , 1 , 0 ) || OSSL_IS_LIBRESSL
1079
1079
rb_define_const (mOSSL , "OPENSSL_LIBRARY_VERSION" , rb_str_new2 (OpenSSL_version (OPENSSL_VERSION )));
1080
1080
#else
1081
1081
rb_define_const (mOSSL , "OPENSSL_LIBRARY_VERSION" , rb_str_new2 (SSLeay_version (SSLEAY_VERSION )));
You can’t perform that action at this time.
0 commit comments