Skip to content

Commit 296c859

Browse files
committed
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. ```
1 parent bff0606 commit 296c859

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/openssl/ossl.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1165,10 +1165,10 @@ Init_openssl(void)
11651165
#if defined(LIBRESSL_VERSION_NUMBER)
11661166
/*
11671167
* Version number of LibreSSL the ruby OpenSSL extension was built with
1168-
* (base 16). The format is <tt>0xMNNFFPPS (major minor fix patch
1168+
* (base 16). The format is <tt>0xMNNFF00f (major minor fix 00
11691169
* status)</tt>. This constant is only defined in LibreSSL cases.
11701170
*
1171-
* See also the man page OPENSSL_VERSION_NUMBER(3).
1171+
* See also the man page LIBRESSL_VERSION_NUMBER(3).
11721172
*/
11731173
rb_define_const(mOSSL, "LIBRESSL_VERSION_NUMBER", INT2NUM(LIBRESSL_VERSION_NUMBER));
11741174
#endif

0 commit comments

Comments
 (0)