DOC: clarify OPENSSL_API_COMPAT

Fixes #15928

Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15956)
This commit is contained in:
Richard Levitte 2021-06-30 06:31:58 +02:00
parent a5a4dac988
commit 025312431d

View File

@ -74,16 +74,18 @@ minor and patch components of the version number. For example:
=back =back
If not set, this macro will default to If B<OPENSSL_API_COMPAT> is undefined, this default value is used in its
place:
C<{- join('', map { my @x = split /=/,$_; $x[1] } C<{- join('', map { my @x = split /=/,$_; $x[1] }
grep /^OPENSSL_CONFIGURED_API=/, @{$config{openssl_api_defines} // []}) grep /^OPENSSL_CONFIGURED_API=/, @{$config{openssl_api_defines} // []})
|| '0x00000000L' || '0x00000000L'
-}>. -}>
=item B<OPENSSL_NO_DEPRECATED> =item B<OPENSSL_NO_DEPRECATED>
If this macro is defined, all deprecated public symbols in all OpenSSL If this macro is defined, all deprecated public symbols in all OpenSSL
versions up to and including the version given by B<OPENSSL_API_COMPAT> versions up to and including the version given by B<OPENSSL_API_COMPAT>
(or the default value given above, when B<OPENSSL_API_COMPAT> isn't defined)
will be hidden. will be hidden.
=back =back