2
0

OPENSSL_VERSION_NUMBER.pod 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. =pod
  2. =head1 NAME
  3. OPENSSL_VERSION_NUMBER, SSLeay, SSLeay_version - get OpenSSL version number
  4. =head1 SYNOPSIS
  5. #include <openssl/opensslv.h>
  6. #define OPENSSL_VERSION_NUMBER 0xnnnnnnnnnL
  7. #include <openssl/crypto.h>
  8. long SSLeay(void);
  9. const char *SSLeay_version(int t);
  10. =head1 DESCRIPTION
  11. OPENSSL_VERSION_NUMBER is a numeric release version identifier:
  12. MNNFFPPS: major minor fix patch status
  13. The status nibble has one of the values 0 for development, 1 to e for betas
  14. 1 to 14, and f for release.
  15. for example
  16. 0x000906000 == 0.9.6 dev
  17. 0x000906023 == 0.9.6b beta 3
  18. 0x00090605f == 0.9.6e release
  19. Versions prior to 0.9.3 have identifiers E<lt> 0x0930.
  20. Versions between 0.9.3 and 0.9.5 had a version identifier with this
  21. interpretation:
  22. MMNNFFRBB major minor fix final beta/patch
  23. for example
  24. 0x000904100 == 0.9.4 release
  25. 0x000905000 == 0.9.5 dev
  26. Version 0.9.5a had an interim interpretation that is like the current one,
  27. except the patch level got the highest bit set, to keep continuity. The
  28. number was therefore 0x0090581f.
  29. For backward compatibility, SSLEAY_VERSION_NUMBER is also defined.
  30. SSLeay() returns this number. The return value can be compared to the
  31. macro to make sure that the correct version of the library has been
  32. loaded, especially when using DLLs on Windows systems.
  33. SSLeay_version() returns different strings depending on B<t>:
  34. =over 4
  35. =item SSLEAY_VERSION
  36. The text variant of the version number and the release date. For example,
  37. "OpenSSL 0.9.5a 1 Apr 2000".
  38. =item SSLEAY_CFLAGS
  39. The compiler flags set for the compilation process in the form
  40. "compiler: ..." if available or "compiler: information not available"
  41. otherwise.
  42. =item SSLEAY_BUILT_ON
  43. The date of the build process in the form "built on: ..." if available
  44. or "built on: date not available" otherwise.
  45. =item SSLEAY_PLATFORM
  46. The "Configure" target of the library build in the form "platform: ..."
  47. if available or "platform: information not available" otherwise.
  48. =item SSLEAY_DIR
  49. The "OPENSSLDIR" setting of the library build in the form "OPENSSLDIR: "...""
  50. if available or "OPENSSLDIR: N/A" otherwise.
  51. =back
  52. For an unknown B<t>, the text "not available" is returned.
  53. =head1 RETURN VALUE
  54. The version number.
  55. =head1 SEE ALSO
  56. L<crypto(3)|crypto(3)>
  57. =head1 HISTORY
  58. SSLeay() and SSLEAY_VERSION_NUMBER are available in all versions of SSLeay and OpenSSL.
  59. OPENSSL_VERSION_NUMBER is available in all versions of OpenSSL.
  60. B<SSLEAY_DIR> was added in OpenSSL 0.9.7.
  61. =cut