5 OPENSSL_VERSION_NUMBER, OPENSSL_VERSION_TEXT, OpenSSL_version,
6 OpenSSL_version_num - get OpenSSL version number
10 #include <openssl/opensslv.h>
11 #define OPENSSL_VERSION_NUMBER 0xnnnnnnnnnL
12 #define OPENSSL_VERSION_TEXT "OpenSSL x.y.z xx XXX xxxx"
14 #include <openssl/crypto.h>
16 unsigned long OpenSSL_version_num();
17 const char *OpenSSL_version(int t);
21 OPENSSL_VERSION_NUMBER is a numeric release version identifier:
23 MNNFFPPS: major minor fix patch status
25 The status nibble has one of the values 0 for development, 1 to e for betas
26 1 to 14, and f for release.
30 0x000906000 == 0.9.6 dev
31 0x000906023 == 0.9.6b beta 3
32 0x00090605f == 0.9.6e release
34 Versions prior to 0.9.3 have identifiers E<lt> 0x0930.
35 Versions between 0.9.3 and 0.9.5 had a version identifier with this
38 MMNNFFRBB major minor fix final beta/patch
42 0x000904100 == 0.9.4 release
43 0x000905000 == 0.9.5 dev
45 Version 0.9.5a had an interim interpretation that is like the current one,
46 except the patch level got the highest bit set, to keep continuity. The
47 number was therefore 0x0090581f.
49 OPENSSL_VERSION_TEXT is the text variant of the version number and the
50 release date. For example,
51 "OpenSSL 1.0.1a 15 Oct 2015".
53 OpenSSL_version_num() returns the version number.
55 OpenSSL_version() returns different strings depending on B<t>:
61 The text variant of the version number and the release date. For example,
62 "OpenSSL 1.0.1a 15 Oct 2015".
66 The compiler flags set for the compilation process in the form
67 "compiler: ..." if available or "compiler: information not available"
70 =item OPENSSL_BUILT_ON
72 The date of the build process in the form "built on: ..." if available
73 or "built on: date not available" otherwise.
75 =item OPENSSL_PLATFORM
77 The "Configure" target of the library build in the form "platform: ..."
78 if available or "platform: information not available" otherwise.
82 The "OPENSSLDIR" setting of the library build in the form "OPENSSLDIR: "...""
83 if available or "OPENSSLDIR: N/A" otherwise.
85 =item OPENSSL_ENGINES_DIR
87 The "ENGINESDIR" setting of the library build in the form "ENGINESDIR: "...""
88 if available or "ENGINESDIR: N/A" otherwise.
92 For an unknown B<t>, the text "not available" is returned.
96 OpenSSL_version_num() returns the version number.
98 OpenSSL_version() returns requested version strings.
106 Copyright 2000-2018 The OpenSSL Project Authors. All Rights Reserved.
108 Licensed under the OpenSSL license (the "License"). You may not use
109 this file except in compliance with the License. You can obtain a copy
110 in the file LICENSE in the source distribution or at
111 L<https://www.openssl.org/source/license.html>.