summaryrefslogtreecommitdiff
path: root/ext/openssl/ossl.c
diff options
context:
space:
mode:
authordrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-04-10 22:24:51 +0000
committerdrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-04-10 22:24:51 +0000
commit091ea0ed71c30874902c56e977ba7c9b241c9376 (patch)
tree2263d57d9e35c290401d2d154d94130683c14bd6 /ext/openssl/ossl.c
parent4db93c3f41818261121d53214030aad6ec001ee7 (diff)
* ext/openssl/ossl.c: Fix typo, document version constants.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31257 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/openssl/ossl.c')
-rw-r--r--ext/openssl/ossl.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/ext/openssl/ossl.c b/ext/openssl/ossl.c
index d20b6b4..1abedf1 100644
--- a/ext/openssl/ossl.c
+++ b/ext/openssl/ossl.c
@@ -758,7 +758,7 @@ ossl_debug_set(VALUE self, VALUE val)
* === Peer Verification
*
* An unverified SSL connection does not provide much security. For enhanced
- * security the client or server can verify the certificate the of its peer.
+ * security the client or server can verify the certificate of its peer.
*
* The client can be modified to verify the server's certificate against the
* certificate authority's certificate:
@@ -819,10 +819,18 @@ Init_openssl()
mOSSL = rb_define_module("OpenSSL");
/*
- * Constants
+ * OpenSSL ruby extension version
*/
rb_define_const(mOSSL, "VERSION", rb_str_new2(OSSL_VERSION));
+
+ /*
+ * Version of OpenSSL the ruby OpenSSL extension was built with
+ */
rb_define_const(mOSSL, "OPENSSL_VERSION", rb_str_new2(OPENSSL_VERSION_TEXT));
+ /*
+ * Version number of OpenSSL the ruby OpenSSL extension was built with
+ * (base 16)
+ */
rb_define_const(mOSSL, "OPENSSL_VERSION_NUMBER", INT2NUM(OPENSSL_VERSION_NUMBER));
/*