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