1OPENSSL_VERSION_NUMBER(3) OpenSSL OPENSSL_VERSION_NUMBER(3)
2
3
4
6 OPENSSL_VERSION_NUMBER, OpenSSL_version, OpenSSL_version_num - get
7 OpenSSL version number
8
10 #include <openssl/opensslv.h>
11 #define OPENSSL_VERSION_NUMBER 0xnnnnnnnnnL
12
13 #include <openssl/crypto.h>
14
15 unsigned long OpenSSL_version_num();
16 const char *OpenSSL_version(int t);
17
19 OPENSSL_VERSION_NUMBER is a numeric release version identifier:
20
21 MNNFFPPS: major minor fix patch status
22
23 The status nibble has one of the values 0 for development, 1 to e for
24 betas 1 to 14, and f for release.
25
26 for example
27
28 0x000906000 == 0.9.6 dev
29 0x000906023 == 0.9.6b beta 3
30 0x00090605f == 0.9.6e release
31
32 Versions prior to 0.9.3 have identifiers < 0x0930. Versions between
33 0.9.3 and 0.9.5 had a version identifier with this interpretation:
34
35 MMNNFFRBB major minor fix final beta/patch
36
37 for example
38
39 0x000904100 == 0.9.4 release
40 0x000905000 == 0.9.5 dev
41
42 Version 0.9.5a had an interim interpretation that is like the current
43 one, except the patch level got the highest bit set, to keep
44 continuity. The number was therefore 0x0090581f.
45
46 OpenSSL_version_num() returns the version number.
47
48 OpenSSL_version() returns different strings depending on t:
49
50 OPENSSL_VERSION
51 The text variant of the version number and the release date. For
52 example, "OpenSSL 1.0.1a 15 Oct 2015".
53
54 OPENSSL_CFLAGS
55 The compiler flags set for the compilation process in the form
56 "compiler: ..." if available or "compiler: information not
57 available" otherwise.
58
59 OPENSSL_BUILT_ON
60 The date of the build process in the form "built on: ..." if
61 available or "built on: date not available" otherwise.
62
63 OPENSSL_PLATFORM
64 The "Configure" target of the library build in the form "platform:
65 ..." if available or "platform: information not available"
66 otherwise.
67
68 OPENSSL_DIR
69 The "OPENSSLDIR" setting of the library build in the form
70 "OPENSSLDIR: "..."" if available or "OPENSSLDIR: N/A" otherwise.
71
72 OPENSSL_ENGINES_DIR
73 The "ENGINESDIR" setting of the library build in the form
74 "ENGINESDIR: "..."" if available or "ENGINESDIR: N/A" otherwise.
75
76 For an unknown t, the text "not available" is returned.
77
79 OpenSSL_version_num() returns the version number.
80
81 OpenSSL_version() returns requested version strings.
82
84 crypto(7)
85
87 Copyright 2000-2018 The OpenSSL Project Authors. All Rights Reserved.
88
89 Licensed under the OpenSSL license (the "License"). You may not use
90 this file except in compliance with the License. You can obtain a copy
91 in the file LICENSE in the source distribution or at
92 <https://www.openssl.org/source/license.html>.
93
94
95
961.1.1 2018-09-11 OPENSSL_VERSION_NUMBER(3)