summaryrefslogtreecommitdiff
path: root/ext/openssl/ossl.c
diff options
context:
space:
mode:
authorJun Aruga <jaruga@redhat.com>2023-08-22 19:44:25 +0200
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2023-08-25 18:34:47 +0900
commitb5d03746359c1e316e0f69742353b2ea74230283 (patch)
tree506022e2ee208415e6788dbfb986f94745525c2d /ext/openssl/ossl.c
parent503f98ebd386806fd434d8f41455e5ced3306301 (diff)
[ruby/openssl] Fix LIBRESSL_VERSION_NUMBER document mistake.
* Fix the wrong man reference. * According to the LIBRESSL_VERSION_NUMBER(3), the value always ends with 00f. ``` $ man -M /home/jaruga/.local/libressl-6650dce/share/man/ 3 LIBRESSL_VERSION_NUMBER ... DESCRIPTION OPENSSL_VERSION_NUMBER and LIBRESSL_VERSION_NUMBER are numeric release version identifiers. The first two digits contain the major release number, the third and fourth digits the minor release number, and the fifth and sixth digits the fix re‐ lease number. For OpenSSL, the seventh and eight digits contain the patch release number and the final digit is 0 for development, 1 to e for betas 1 to 14, or f for release. For LibreSSL, OPENSSL_VERSION_NUMBER is always 0x020000000, and LIBRESSL_VERSION_NUMBER always ends with 00f. ``` https://github.com/ruby/openssl/commit/296c859d18
Diffstat (limited to 'ext/openssl/ossl.c')
-rw-r--r--ext/openssl/ossl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/openssl/ossl.c b/ext/openssl/ossl.c
index d27e56dca7..00ed7c0c23 100644
--- a/ext/openssl/ossl.c
+++ b/ext/openssl/ossl.c
@@ -1165,10 +1165,10 @@ Init_openssl(void)
#if defined(LIBRESSL_VERSION_NUMBER)
/*
* Version number of LibreSSL the ruby OpenSSL extension was built with
- * (base 16). The format is <tt>0xMNNFFPPS (major minor fix patch
+ * (base 16). The format is <tt>0xMNNFF00f (major minor fix 00
* status)</tt>. This constant is only defined in LibreSSL cases.
*
- * See also the man page OPENSSL_VERSION_NUMBER(3).
+ * See also the man page LIBRESSL_VERSION_NUMBER(3).
*/
rb_define_const(mOSSL, "LIBRESSL_VERSION_NUMBER", INT2NUM(LIBRESSL_VERSION_NUMBER));
#endif