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

NAME

6       OPENSSL_VERSION_NUMBER, SSLeay, SSLeay_version - get OpenSSL version
7       number
8

SYNOPSIS

10        #include <openssl/opensslv.h>
11        #define OPENSSL_VERSION_NUMBER 0xnnnnnnnnnL
12
13        #include <openssl/crypto.h>
14        long SSLeay(void);
15        const char *SSLeay_version(int t);
16

DESCRIPTION

18       OPENSSL_VERSION_NUMBER is a numeric release version identifier:
19
20        MMNNFFPPS: major minor fix patch status
21
22       The status nibble has one of the values 0 for development, 1 to e for
23       betas 1 to 14, and f for release.
24
25       for example
26
27        0x000906000 == 0.9.6 dev
28        0x000906023 == 0.9.6b beta 3
29        0x00090605f == 0.9.6e release
30
31       Versions prior to 0.9.3 have identifiers < 0x0930.  Versions between
32       0.9.3 and 0.9.5 had a version identifier with this interpretation:
33
34        MMNNFFRBB major minor fix final beta/patch
35
36       for example
37
38        0x000904100 == 0.9.4 release
39        0x000905000 == 0.9.5 dev
40
41       Version 0.9.5a had an interim interpretation that is like the current
42       one, except the patch level got the highest bit set, to keep
43       continuity.  The number was therefore 0x0090581f.
44
45       For backward compatibility, SSLEAY_VERSION_NUMBER is also defined.
46
47       SSLeay() returns this number. The return value can be compared to the
48       macro to make sure that the correct version of the library has been
49       loaded, especially when using DLLs on Windows systems.
50
51       SSLeay_version() returns different strings depending on t:
52
53       SSLEAY_VERSION
54           The text variant of the version number and the release date.  For
55           example, "OpenSSL 0.9.5a 1 Apr 2000".
56
57       SSLEAY_CFLAGS
58           The compiler flags set for the compilation process in the form
59           "compiler: ..."  if available or "compiler: information not
60           available" otherwise.
61
62       SSLEAY_BUILT_ON
63           The date of the build process in the form "built on: ..." if
64           available or "built on: date not available" otherwise.
65
66       SSLEAY_PLATFORM
67           The "Configure" target of the library build in the form "platform:
68           ..."  if available or "platform: information not available"
69           otherwise.
70
71       SSLEAY_DIR
72           The "OPENSSLDIR" setting of the library build in the form
73           "OPENSSLDIR: "...""  if available or "OPENSSLDIR: N/A" otherwise.
74
75       For an unknown t, the text "not available" is returned.
76

RETURN VALUE

78       The version number.
79

SEE ALSO

81       crypto(3)
82

HISTORY

84       SSLeay() and SSLEAY_VERSION_NUMBER are available in all versions of
85       SSLeay and OpenSSL.  OPENSSL_VERSION_NUMBER is available in all
86       versions of OpenSSL.  SSLEAY_DIR was added in OpenSSL 0.9.7.
87
88
89
901.0.1e                            2013-02-11         OPENSSL_VERSION_NUMBER(3)
Impressum