|OPENSSL_VERSION_NUMBER(3)||Library Functions Manual||OPENSSL_VERSION_NUMBER(3)|
SSLeay_version — get OpenSSL
#define LIBRESSL_VERSION_NUMBER 0x02nnnn00fL
#define LIBRESSL_VERSION_TEXT "LibreSSL
#define OPENSSL_VERSION_TEXT LIBRESSL_VERSION_TEXT
const char *
const char *
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 release 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.
OPENSSL_VERSION_NUMBER: 0x000906000 == 0.9.6 dev 0x000906023 == 0.9.6b beta 3 0x00090605f == 0.9.6e release 0x020000000 == 2.0.0 for any version of LibreSSL LIBRESSL_VERSION_NUMBER: 0x02070000f == LibreSSL 2.7.0
OpenSSL versions prior to 0.9.3 had identifiers < 0x0930. For versions between 0.9.3 and 0.9.5, the seventh digit was 1 for release and 0 otherwise, and the eighth and ninth digits were the patch release number.
0x000904100 == 0.9.4 release 0x000905000 == 0.9.5 dev
OpenSSL version 0.9.5a had an interim interpretation that is like the current one, except the patch level got the highest bit set, to keep continuity. The number was therefore 0x0090581f.
returns different strings depending on t:
OPENSSL_VERSION_TEXT. For OpenSSL, it includes the release date, for example "OpenSSL 0.9.5a 1 Apr 2000". For LibreSSL,
OPENSSLDIRsetting of the library build in the form "OPENSSLDIR: "..."" if available or "OPENSSLDIR: N/A" otherwise. For LibreSSL, the default is "OPENSSLDIR: "/etc/ssl"".
ENGINESDIRsetting of the library build in the form "ENGINESDIR: "..."" if available or "ENGINESDIR: N/A" otherwise. LibreSSL never provides or uses an
For an unknown t, the text "not available" is returned.
For backward compatibility,
SSLEAY_VERSION_NUMBER is an alias for
OpenSSL_version_num. The legacy function
is similar to
OpenSSL_version() except that it takes
SSLEAY_DIR which expand to
numerical values than the corresponding
SSLeay() return a constant version number.
SSLeay_version() return pointers to static
SSLEAY_VERSION_NUMBER first appeared in SSLeay 0.6.0
and have been available since OpenBSD 2.4.
OPENSSL_VERSION_NUMBER first appeared in
the first OpenSSL release, OpenSSL 0.9.1c, and has been available since
SSLEAY_DIR first appeared in OpenSSL 0.9.7
and have been available since OpenBSD 3.2.
LIBRESSL_VERSION_NUMBER first appeared in
LibreSSL 2.0.0 and OpenBSD 5.6 and got its final
format in LibreSSL 2.3.2 and OpenBSD 5.9.
LIBRESSL_VERSION_TEXT first appeared in LibreSSL
2.2.2 and OpenBSD 5.8.
OpenSSL_version() first appeared in OpenSSL 1.1.0
and have been available since LibreSSL 2.7.1 and OpenBSD
|June 6, 2019||OpenBSD-current|