Sortix main manual
This manual documents Sortix main. You can instead view this document in the latest official manual.
NAME
OPENSSL_VERSION_NUMBER, LIBRESSL_VERSION_NUMBER, LIBRESSL_VERSION_TEXT, OPENSSL_VERSION_TEXT, OpenSSL_version_num, OpenSSL_version, SSLeay, SSLeay_version — get OpenSSL version numberSYNOPSIS
#include <openssl/opensslv.h>#define LIBRESSL_VERSION_NUMBER 0x02nnnn00fL
#define LIBRESSL_VERSION_TEXT "LibreSSL 2.n.n"
#define OPENSSL_VERSION_TEXT LIBRESSL_VERSION_TEXT
OpenSSL_version_num(void);
OpenSSL_version(int t);
SSLeay(void);
SSLeay_version(int t);
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 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
0x000904100 == 0.9.4 release 0x000905000 == 0.9.5 dev
- OPENSSL_VERSION
- The text variant of the version number, OPENSSL_VERSION_TEXT. For OpenSSL, it includes the release date, for example “OpenSSL 0.9.5a 1 Apr 2000”. For LibreSSL, LIBRESSL_VERSION_TEXT is returned.
- OPENSSL_CFLAGS
- The compiler flags set for the compilation process in the form “compiler: ...” if available or “compiler: information not available” otherwise. LibreSSL never provides compiler information.
- OPENSSL_BUILT_ON
- The date of the build process in the form “built on: ...” if available or “built on: date not available” otherwise. LibreSSL never provides information on the build date.
- OPENSSL_PLATFORM
- The Configure target of the library build in the form “platform: ...” if available or “platform: information not available” otherwise. LibreSSL never provides platform information.
- OPENSSL_DIR
- The OPENSSLDIR setting of the library build in the form “OPENSSLDIR: “...”” if available or “OPENSSLDIR: N/A” otherwise. For LibreSSL, the default is “OPENSSLDIR: “/etc/ssl””.
- OPENSSL_ENGINES_DIR
- The ENGINESDIR setting of the library build in the form “ENGINESDIR: “...”” if available or “ENGINESDIR: N/A” otherwise. LibreSSL never provides or uses an ENGINESDIR.