aboutsummaryrefslogtreecommitdiffstats
path: root/ext/openssl
diff options
context:
space:
mode:
authorJun Aruga <jaruga@redhat.com>2023-08-22 19:44:25 +0200
committerJun Aruga <jaruga@redhat.com>2023-08-22 19:44:25 +0200
commit296c859d18d877a13407bb259706dc706de8e0b8 (patch)
tree1d7983f0df022fe6fa8648ccaebb5a921c4429c9 /ext/openssl
parentbff06067cd3cf611b50cb76adc2ae40f9406cb1e (diff)
downloadruby-openssl-296c859d18d877a13407bb259706dc706de8e0b8.tar.gz
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. ```
Diffstat (limited to 'ext/openssl')
-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 d27e56dc..00ed7c0c 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