summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorschwarze <>2018-02-17 18:44:36 +0000
committerschwarze <>2018-02-17 18:44:36 +0000
commite24a6c66f7d2b9ec699a153cb567752b8b47640d (patch)
tree0752983f0c618cac12a68d448677294cdec91110 /src
parentea15e6cfa2317fbe5a3ca54022056e0b8e43ebc5 (diff)
downloadopenbsd-e24a6c66f7d2b9ec699a153cb567752b8b47640d.tar.gz
openbsd-e24a6c66f7d2b9ec699a153cb567752b8b47640d.tar.bz2
openbsd-e24a6c66f7d2b9ec699a153cb567752b8b47640d.zip
document LIBRESSL_VERSION_NUMBER and LIBRESSL_VERSION_TEXT
Diffstat (limited to 'src')
-rw-r--r--src/lib/libcrypto/man/OPENSSL_VERSION_NUMBER.351
1 files changed, 38 insertions, 13 deletions
diff --git a/src/lib/libcrypto/man/OPENSSL_VERSION_NUMBER.3 b/src/lib/libcrypto/man/OPENSSL_VERSION_NUMBER.3
index e5a66c58db..dcbad61b7e 100644
--- a/src/lib/libcrypto/man/OPENSSL_VERSION_NUMBER.3
+++ b/src/lib/libcrypto/man/OPENSSL_VERSION_NUMBER.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: OPENSSL_VERSION_NUMBER.3,v 1.4 2018/02/17 18:00:59 schwarze Exp $ 1.\" $OpenBSD: OPENSSL_VERSION_NUMBER.3,v 1.5 2018/02/17 18:44:36 schwarze Exp $
2.\" full merge up to: OpenSSL 1f13ad31 Dec 25 17:50:39 2017 +0800 2.\" full merge up to: OpenSSL 1f13ad31 Dec 25 17:50:39 2017 +0800
3.\" 3.\"
4.\" This file is a derived work. 4.\" This file is a derived work.
@@ -73,6 +73,8 @@
73.Os 73.Os
74.Sh NAME 74.Sh NAME
75.Nm OPENSSL_VERSION_NUMBER , 75.Nm OPENSSL_VERSION_NUMBER ,
76.Nm LIBRESSL_VERSION_NUMBER ,
77.Nm LIBRESSL_VERSION_TEXT ,
76.Nm OpenSSL_version_num , 78.Nm OpenSSL_version_num ,
77.Nm OpenSSL_version , 79.Nm OpenSSL_version ,
78.Nm SSLeay , 80.Nm SSLeay ,
@@ -81,6 +83,8 @@
81.Sh SYNOPSIS 83.Sh SYNOPSIS
82.In openssl/opensslv.h 84.In openssl/opensslv.h
83.Fd #define OPENSSL_VERSION_NUMBER 0x020000000L 85.Fd #define OPENSSL_VERSION_NUMBER 0x020000000L
86.Fd #define LIBRESSL_VERSION_NUMBER 0x02nnnn00fL
87.Fd #define LIBRESSL_VERSION_TEXT \(dqLibreSSL 2.n.n\(dq
84.In openssl/crypto.h 88.In openssl/crypto.h
85.Ft unsigned long 89.Ft unsigned long
86.Fn OpenSSL_version_num void 90.Fn OpenSSL_version_num void
@@ -96,21 +100,32 @@
96.Fc 100.Fc
97.Sh DESCRIPTION 101.Sh DESCRIPTION
98.Dv OPENSSL_VERSION_NUMBER 102.Dv OPENSSL_VERSION_NUMBER
99is a numeric release version identifier. 103and
100For OpenSSL, the first two digits contain the major release number, 104.Dv LIBRESSL_VERSION_NUMBER
105are numeric release version identifiers.
106The first two digits contain the major release number,
101the third and fourth digits the minor release number, 107the third and fourth digits the minor release number,
102the fifth and sixth digits the fix release number, 108and the fifth and sixth digits the fix release number.
103the seventh and eight digits the patch release number. 109For OpenSSL, the seventh and eight digits contain the patch release number
104The final digit is 0 for development, 1 to e for betas 1 to 14, or f 110and the final digit is 0 for development, 1 to e for betas 1 to 14, or f
105for release. 111for release.
106For LibreSSL, this number is always 0x020000000. 112For LibreSSL,
113.Dv OPENSSL_VERSION_NUMBER
114is always 0x020000000,
115and
116.Dv LIBRESSL_VERSION_NUMBER
117always ends with 00f.
107.Pp 118.Pp
108For example: 119For example:
109.Bd -literal -offset indent 120.Bd -literal -offset indent
121OPENSSL_VERSION_NUMBER:
1100x000906000 == 0.9.6 dev 1220x000906000 == 0.9.6 dev
1110x000906023 == 0.9.6b beta 3 1230x000906023 == 0.9.6b beta 3
1120x00090605f == 0.9.6e release 1240x00090605f == 0.9.6e release
1130x020000000 == 2.0.0 for any version of LibreSSL 1250x020000000 == 2.0.0 for any version of LibreSSL
126
127LIBRESSL_VERSION_NUMBER:
1280x02070000f == LibreSSL 2.7.0
114.Ed 129.Ed
115.Pp 130.Pp
116OpenSSL versions prior to 0.9.3 had identifiers < 0x0930. 131OpenSSL versions prior to 0.9.3 had identifiers < 0x0930.
@@ -129,7 +144,8 @@ one, except the patch level got the highest bit set, to keep continuity.
129The number was therefore 0x0090581f. 144The number was therefore 0x0090581f.
130.Pp 145.Pp
131.Fn OpenSSL_version_num 146.Fn OpenSSL_version_num
132returns this version number. 147returns
148.Dv OPENSSL_VERSION_NUMBER .
133.Pp 149.Pp
134.Fn OpenSSL_version 150.Fn OpenSSL_version
135returns different strings depending on 151returns different strings depending on
@@ -137,11 +153,11 @@ returns different strings depending on
137.Bl -tag -width Ds 153.Bl -tag -width Ds
138.It Dv OPENSSL_VERSION 154.It Dv OPENSSL_VERSION
139The text variant of the version number. 155The text variant of the version number.
140For OpenSSL, it is followed by the release date. 156For OpenSSL, it is followed by the release date, for example
141For example, 157.Qq OpenSSL 0.9.5a 1 Apr 2000 .
142.Qq OpenSSL 0.9.5a 1 Apr 2000 158For LibreSSL,
143or 159.Dv LIBRESSL_VERSION_TEXT
144.Qq LibreSSL 2.7.0 . 160is returned.
145.It Dv OPENSSL_CFLAGS 161.It Dv OPENSSL_CFLAGS
146The compiler flags set for the compilation process in the form 162The compiler flags set for the compilation process in the form
147.Qq compiler: ... 163.Qq compiler: ...
@@ -236,3 +252,12 @@ are available in all versions of SSLeay and OpenSSL.
236is available in all versions of OpenSSL. 252is available in all versions of OpenSSL.
237.Dv SSLEAY_DIR 253.Dv SSLEAY_DIR
238was added in OpenSSL 0.9.7. 254was added in OpenSSL 0.9.7.
255.Pp
256.Dv LIBRESSL_VERSION_NUMBER
257first appeared in LibreSSL 2.0.0 and
258.Ox 5.6
259and got its final format in LibreSSL 2.3.2 and
260.Ox 5.9 .
261.Dv LIBRESSL_VERSION_TEXT
262first appered in LibreSSL 2.2.2 and
263.Ox 5.8 .