OPENSSL_VERSION_NUMBER.pod 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. =pod
  2. =head1 NAME
  3. OPENSSL_VERSION_NUMBER, OpenSSL_version,
  4. OpenSSL_version_num - get OpenSSL version number
  5. =head1 SYNOPSIS
  6. #include <openssl/opensslv.h>
  7. #define OPENSSL_VERSION_NUMBER 0xnnnnnnnnnL
  8. #include <openssl/crypto.h>
  9. unsigned long OpenSSL_version_num();
  10. const char *OpenSSL_version(int t);
  11. =head1 DESCRIPTION
  12. OPENSSL_VERSION_NUMBER is a numeric release version identifier:
  13. MNNFFPPS: major minor fix patch status
  14. The status nibble has one of the values 0 for development, 1 to e for betas
  15. 1 to 14, and f for release.
  16. for example
  17. 0x000906000 == 0.9.6 dev
  18. 0x000906023 == 0.9.6b beta 3
  19. 0x00090605f == 0.9.6e release
  20. Versions prior to 0.9.3 have identifiers E<lt> 0x0930.
  21. Versions between 0.9.3 and 0.9.5 had a version identifier with this
  22. interpretation:
  23. MMNNFFRBB major minor fix final beta/patch
  24. for example
  25. 0x000904100 == 0.9.4 release
  26. 0x000905000 == 0.9.5 dev
  27. Version 0.9.5a had an interim interpretation that is like the current one,
  28. except the patch level got the highest bit set, to keep continuity. The
  29. number was therefore 0x0090581f.
  30. OpenSSL_version_num() returns the version number.
  31. OpenSSL_version() returns different strings depending on B<t>:
  32. =over 4
  33. =item OPENSSL_VERSION
  34. The text variant of the version number and the release date. For example,
  35. "OpenSSL 1.0.1a 15 Oct 2015".
  36. =item OPENSSL_CFLAGS
  37. The compiler flags set for the compilation process in the form
  38. "compiler: ..." if available or "compiler: information not available"
  39. otherwise.
  40. =item OPENSSL_BUILT_ON
  41. The date of the build process in the form "built on: ..." if available
  42. or "built on: date not available" otherwise.
  43. =item OPENSSL_PLATFORM
  44. The "Configure" target of the library build in the form "platform: ..."
  45. if available or "platform: information not available" otherwise.
  46. =item OPENSSL_DIR
  47. The "OPENSSLDIR" setting of the library build in the form "OPENSSLDIR: "...""
  48. if available or "OPENSSLDIR: N/A" otherwise.
  49. =item OPENSSL_ENGINES_DIR
  50. The "ENGINESDIR" setting of the library build in the form "ENGINESDIR: "...""
  51. if available or "ENGINESDIR: N/A" otherwise.
  52. =back
  53. For an unknown B<t>, the text "not available" is returned.
  54. =head1 RETURN VALUES
  55. OpenSSL_version_num() returns the version number.
  56. OpenSSL_version() returns requested version strings.
  57. =head1 SEE ALSO
  58. L<crypto(7)>
  59. =head1 COPYRIGHT
  60. Copyright 2000-2018 The OpenSSL Project Authors. All Rights Reserved.
  61. Licensed under the OpenSSL license (the "License"). You may not use
  62. this file except in compliance with the License. You can obtain a copy
  63. in the file LICENSE in the source distribution or at
  64. L<https://www.openssl.org/source/license.html>.
  65. =cut