Document OPENSSL_VERSION_TEXT macro
This commit documents the OPENSSL_VERSION_TEXT which is currently
missing in the man page.
Reviewed-by: Tim Hudson <tjh@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/7301)
(cherry picked from commit 7c69495712e3dc9aa8db38271f0c3faeb2037165)
Daniel Bevenius authored 5 years ago
Richard Levitte committed 5 years ago
1 | 1 | |
2 | 2 | =head1 NAME |
3 | 3 | |
4 | OPENSSL_VERSION_NUMBER, OpenSSL_version, | |
4 | OPENSSL_VERSION_NUMBER, OPENSSL_VERSION_TEXT, OpenSSL_version, | |
5 | 5 | OpenSSL_version_num - get OpenSSL version number |
6 | 6 | |
7 | 7 | =head1 SYNOPSIS |
8 | 8 | |
9 | 9 | #include <openssl/opensslv.h> |
10 | 10 | #define OPENSSL_VERSION_NUMBER 0xnnnnnnnnnL |
11 | #define OPENSSL_VERSION_TEXT "OpenSSL x.y.z xx XXX xxxx" | |
11 | 12 | |
12 | 13 | #include <openssl/crypto.h> |
13 | 14 | |
43 | 44 | Version 0.9.5a had an interim interpretation that is like the current one, |
44 | 45 | except the patch level got the highest bit set, to keep continuity. The |
45 | 46 | number was therefore 0x0090581f. |
47 | ||
48 | OPENSSL_VERSION_TEXT is the text variant of the version number and the | |
49 | release date. For example, | |
50 | "OpenSSL 1.0.1a 15 Oct 2015". | |
46 | 51 | |
47 | 52 | OpenSSL_version_num() returns the version number. |
48 | 53 |