ruby-changes:33461
From: nobu <ko1@a...>
Date: Wed, 9 Apr 2014 17:28:00 +0900 (JST)
Subject: [ruby-changes:33461] nobu:r45540 (trunk): ossl.c: OPENSSL_LIBRARY_VERSION
nobu 2014-04-09 17:27:56 +0900 (Wed, 09 Apr 2014) New Revision: 45540 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=45540 Log: ossl.c: OPENSSL_LIBRARY_VERSION * ext/openssl/ossl.c (Init_openssl): add constant OPENSSL_LIBRARY_VERSION which tells the version running OpenSSL. [EXPERIMENTAL] Modified files: trunk/ext/openssl/ossl.c Index: ext/openssl/ossl.c =================================================================== --- ext/openssl/ossl.c (revision 45539) +++ ext/openssl/ossl.c (revision 45540) @@ -1084,6 +1084,11 @@ Init_openssl() https://github.com/ruby/ruby/blob/trunk/ext/openssl/ossl.c#L1084 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) */ -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/