diff options
Diffstat (limited to 'ext/openssl/ossl.c')
-rw-r--r-- | ext/openssl/ossl.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ext/openssl/ossl.c b/ext/openssl/ossl.c index ed6153d869..d3b511dd10 100644 --- a/ext/openssl/ossl.c +++ b/ext/openssl/ossl.c @@ -994,6 +994,11 @@ Init_openssl() rb_define_const(mOSSL, "OPENSSL_VERSION", rb_str_new2(OPENSSL_VERSION_TEXT)); /* + * Version of OpenSSL the ruby OpenSSL extension is running with + */ + rb_define_const(mOSSL, "OPENSSL_LIBRARY_VERSION", rb_str_new2(SSLeay_version(SSLEAY_VERSION))); + + /* * Version number of OpenSSL the ruby OpenSSL extension was built with * (base 16) */ |