diff options
author | Henrique Bontempo <[email protected]> | 2022-11-23 14:04:38 -0300 |
---|---|---|
committer | Hiroshi SHIBATA <[email protected]> | 2022-12-13 18:07:41 +0900 |
commit | 2be03fb5b0fc6ba18cf9842f410f3853e0369600 (patch) | |
tree | ea9940ee55906c3a3388473de48dcaa6fc6600dc | |
parent | 8ab8c2d601db398c2d0e17db2105acb561ef0e04 (diff) |
[ruby/openssl] Fixes OPENSSL_LIBRARY_VERSION description on
documentation
(https://github.com/ruby/openssl/pull/559)
Adds back missing constant description on the documentation.
-rw-r--r-- | ext/openssl/ossl.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/ext/openssl/ossl.c b/ext/openssl/ossl.c index 6c532aca94..72573f276f 100644 --- a/ext/openssl/ossl.c +++ b/ext/openssl/ossl.c @@ -1179,12 +1179,15 @@ Init_openssl(void) */ rb_define_const(mOSSL, "OPENSSL_VERSION", rb_str_new2(OPENSSL_VERSION_TEXT)); - /* - * Version of OpenSSL the ruby OpenSSL extension is running with - */ #if !defined(LIBRESSL_VERSION_NUMBER) && OPENSSL_VERSION_NUMBER >= 0x10100000 + /* + * Version of OpenSSL the ruby OpenSSL extension is running with + */ rb_define_const(mOSSL, "OPENSSL_LIBRARY_VERSION", rb_str_new2(OpenSSL_version(OPENSSL_VERSION))); #else + /* + * Version of OpenSSL the ruby OpenSSL extension is running with + */ rb_define_const(mOSSL, "OPENSSL_LIBRARY_VERSION", rb_str_new2(SSLeay_version(SSLEAY_VERSION))); #endif |