aboutsummaryrefslogtreecommitdiffstats
path: root/ext
diff options
context:
space:
mode:
authorHenrique Bontempo <henrique.s.bontempo@gmail.com>2022-11-23 14:04:38 -0300
committerGitHub <noreply@github.com>2022-11-24 02:04:38 +0900
commit728dc9136b0b8543ba892847f693b6da3e7908f9 (patch)
tree4f13aef4312d36c9404d38cbbd5dc02137b727f8 /ext
parentc1639f1b244eda238907881b3b007408192ed69f (diff)
downloadruby-openssl-728dc9136b0b8543ba892847f693b6da3e7908f9.tar.gz
Fixes OPENSSL_LIBRARY_VERSION description on documentation (#559)
Adds back missing constant description on the documentation.
Diffstat (limited to 'ext')
-rw-r--r--ext/openssl/ossl.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/ext/openssl/ossl.c b/ext/openssl/ossl.c
index 6c532aca..72573f27 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