Import OpenSSL-0.9.8i.
[dragonfly.git] / crypto / openssl-0.9.7e / doc / crypto / OPENSSL_VERSION_NUMBER.pod
blobc39ac35e78ae60702e916dc9c51674b0a4049ece
1 =pod
3 =head1 NAME
5 OPENSSL_VERSION_NUMBER, SSLeay, SSLeay_version - get OpenSSL version number
7 =head1 SYNOPSIS
9  #include <openssl/opensslv.h>
10  #define OPENSSL_VERSION_NUMBER 0xnnnnnnnnnL
12  #include <openssl/crypto.h>
13  long SSLeay(void);
14  const char *SSLeay_version(int t);
16 =head1 DESCRIPTION
18 OPENSSL_VERSION_NUMBER is a numeric release version identifier:
20  MMNNFFPPS: major minor fix patch status
22 The status nibble has one of the values 0 for development, 1 to e for betas
23 1 to 14, and f for release.
25 for example
27  0x000906000 == 0.9.6 dev
28  0x000906023 == 0.9.6b beta 3
29  0x00090605f == 0.9.6e release
31 Versions prior to 0.9.3 have identifiers E<lt> 0x0930.
32 Versions between 0.9.3 and 0.9.5 had a version identifier with this
33 interpretation:
35  MMNNFFRBB major minor fix final beta/patch
37 for example
39  0x000904100 == 0.9.4 release
40  0x000905000 == 0.9.5 dev
42 Version 0.9.5a had an interim interpretation that is like the current one,
43 except the patch level got the highest bit set, to keep continuity.  The
44 number was therefore 0x0090581f.
47 For backward compatibility, SSLEAY_VERSION_NUMBER is also defined.
49 SSLeay() returns this number. The return value can be compared to the
50 macro to make sure that the correct version of the library has been
51 loaded, especially when using DLLs on Windows systems.
53 SSLeay_version() returns different strings depending on B<t>:
55 =over 4
57 =item SSLEAY_VERSION
59 The text variant of the version number and the release date.  For example,
60 "OpenSSL 0.9.5a 1 Apr 2000".
62 =item SSLEAY_CFLAGS
64 The compiler flags set for the compilation process in the form
65 "compiler: ..."  if available or "compiler: information not available"
66 otherwise.
68 =item SSLEAY_BUILT_ON
70 The date of the build process in the form "built on: ..." if available
71 or "built on: date not available" otherwise.
73 =item SSLEAY_PLATFORM
75 The "Configure" target of the library build in the form "platform: ..."
76 if available or "platform: information not available" otherwise.
78 =item SSLEAY_DIR
80 The "OPENSSLDIR" setting of the library build in the form "OPENSSLDIR: "...""
81 if available or "OPENSSLDIR: N/A" otherwise.
83 =back
85 For an unknown B<t>, the text "not available" is returned.
87 =head1 RETURN VALUE
89 The version number.
91 =head1 SEE ALSO
93 L<crypto(3)|crypto(3)>
95 =head1 HISTORY
97 SSLeay() and SSLEAY_VERSION_NUMBER are available in all versions of SSLeay and OpenSSL.
98 OPENSSL_VERSION_NUMBER is available in all versions of OpenSSL.
99 B<SSLEAY_DIR> was added in OpenSSL 0.9.7.
101 =cut