1OPENSSL_VERSION_NUMBER(3)           OpenSSL          OPENSSL_VERSION_NUMBER(3)
2
3
4

NAME

6       OPENSSL_VERSION_NUMBER, OPENSSL_VERSION_TEXT, OpenSSL_version,
7       OpenSSL_version_num - get OpenSSL version number
8

SYNOPSIS

10        #include <openssl/opensslv.h>
11        #define OPENSSL_VERSION_NUMBER 0xnnnnnnnnnL
12        #define OPENSSL_VERSION_TEXT "OpenSSL x.y.z xx XXX xxxx"
13
14        #include <openssl/crypto.h>
15
16        unsigned long OpenSSL_version_num();
17        const char *OpenSSL_version(int t);
18

DESCRIPTION

20       OPENSSL_VERSION_NUMBER is a numeric release version identifier:
21
22        MNNFFPPS: major minor fix patch status
23
24       The status nibble has one of the values 0 for development, 1 to e for
25       betas 1 to 14, and f for release.
26
27       for example
28
29        0x000906000 == 0.9.6 dev
30        0x000906023 == 0.9.6b beta 3
31        0x00090605f == 0.9.6e release
32
33       Versions prior to 0.9.3 have identifiers < 0x0930.  Versions between
34       0.9.3 and 0.9.5 had a version identifier with this interpretation:
35
36        MMNNFFRBB major minor fix final beta/patch
37
38       for example
39
40        0x000904100 == 0.9.4 release
41        0x000905000 == 0.9.5 dev
42
43       Version 0.9.5a had an interim interpretation that is like the current
44       one, except the patch level got the highest bit set, to keep
45       continuity.  The number was therefore 0x0090581f.
46
47       OPENSSL_VERSION_TEXT is the text variant of the version number and the
48       release date.  For example, "OpenSSL 1.0.1a 15 Oct 2015".
49
50       OpenSSL_version_num() returns the version number.
51
52       OpenSSL_version() returns different strings depending on t:
53
54       OPENSSL_VERSION
55           The text variant of the version number and the release date.  For
56           example, "OpenSSL 1.0.1a 15 Oct 2015".
57
58       OPENSSL_CFLAGS
59           The compiler flags set for the compilation process in the form
60           "compiler: ..."  if available or "compiler: information not
61           available" otherwise.
62
63       OPENSSL_BUILT_ON
64           The date of the build process in the form "built on: ..." if
65           available or "built on: date not available" otherwise.
66
67       OPENSSL_PLATFORM
68           The "Configure" target of the library build in the form "platform:
69           ..."  if available or "platform: information not available"
70           otherwise.
71
72       OPENSSL_DIR
73           The "OPENSSLDIR" setting of the library build in the form
74           "OPENSSLDIR: "...""  if available or "OPENSSLDIR: N/A" otherwise.
75
76       OPENSSL_ENGINES_DIR
77           The "ENGINESDIR" setting of the library build in the form
78           "ENGINESDIR: "...""  if available or "ENGINESDIR: N/A" otherwise.
79
80       For an unknown t, the text "not available" is returned.
81

RETURN VALUES

83       OpenSSL_version_num() returns the version number.
84
85       OpenSSL_version() returns requested version strings.
86

SEE ALSO

88       crypto(7)
89
91       Copyright 2000-2018 The OpenSSL Project Authors. All Rights Reserved.
92
93       Licensed under the OpenSSL license (the "License").  You may not use
94       this file except in compliance with the License.  You can obtain a copy
95       in the file LICENSE in the source distribution or at
96       <https://www.openssl.org/source/license.html>.
97
98
99
1001.1.1q                            2023-07-20         OPENSSL_VERSION_NUMBER(3)
Impressum