[ruby/openssl] Fixes OPENSSL_LIBRARY_VERSION description on

documentation
(https://github.com/ruby/openssl/pull/559)

Adds back missing constant description on the documentation.
This commit is contained in:
Henrique Bontempo 2022-11-23 14:04:38 -03:00 committed by Hiroshi SHIBATA
parent 8ab8c2d601
commit 2be03fb5b0
No known key found for this signature in database
GPG Key ID: F9CF13417264FAC2

View File

@ -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