diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-04-09 08:27:56 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-04-09 08:27:56 +0000 |
commit | 2291ff2eaad76f7ad17c48af85f37934ddff71e2 (patch) | |
tree | 32981a5bcf3148c96bb5810c27e1b53260630d91 | |
parent | 2c12deaff4b3ad0b683d9e9fe951e5bf57a952c8 (diff) | |
download | ruby-2291ff2eaad76f7ad17c48af85f37934ddff71e2.tar.gz |
ossl.c: OPENSSL_LIBRARY_VERSION
* ext/openssl/ossl.c (Init_openssl): add constant OPENSSL_LIBRARY_VERSION
which tells the version running OpenSSL. [EXPERIMENTAL]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45540 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-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 7f9105c117..370a16f026 100644 --- a/ext/openssl/ossl.c +++ b/ext/openssl/ossl.c @@ -1084,6 +1084,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) */ |