OSSL_DEPRECATED.pod 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. =pod
  2. =head1 NAME
  3. OSSL_DEPRECATED, OSSL_DEPRECATED_FOR - General deprecation macros
  4. =head1 SYNOPSIS
  5. #include <openssl/macros.h>
  6. #define OSSL_DEPRECATED(since)
  7. #define OSSL_DEPRECATED_FOR(since, msg)
  8. =head1 DESCRIPTION
  9. OSSL_DEPRECATED() implements the deprecated attribute if the compiler
  10. supports it, otherwise it expands to nothing. It takes one argument
  11. I<since> that should be set to the OpenSSL version where the symbol was
  12. deprecated, and will be displayed with the deprecation warning message,
  13. for compilers that support user specified deprecation messages.
  14. OSSL_DEPRECATED_FOR() does the same as OSSL_DEPRECATED(), but also takes a
  15. second argument I<msg>, which is an additional text messages to be displayed
  16. with the deprecation warning along with the OpenSSL version number, for
  17. compilers that support user specified deprecation messages.
  18. These macros are used to define the version specific deprecation macros
  19. described in L<deprecation(7)>.
  20. =begin comment
  21. [RETURN VALUES isn't relevant for these macros, but find-doc-nits demands
  22. the presence of this section]
  23. =head1 RETURN VALUES
  24. [podchecker doesn't like empty sections]
  25. =end comment
  26. =head1 SEE ALSO
  27. L<deprecation(7)>
  28. =head1 COPYRIGHT
  29. Copyright 2020 The OpenSSL Project Authors. All Rights Reserved.
  30. Licensed under the Apache License 2.0 (the "License"). You may not use
  31. this file except in compliance with the License. You can obtain a copy
  32. in the file LICENSE in the source distribution or at
  33. L<https://www.openssl.org/source/license.html>.
  34. =cut