From: Tomas Mraz Date: Thu, 15 Jul 2021 11:37:26 +0000 (+0200) Subject: doc: It is not possible to use SSL_OP_* value in preprocessor conditions X-Git-Tag: openssl-3.0.0-beta2~53 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=24f84b4e4dbde9d8ef7a5ebb4b3c2ca22fd4cd22;p=thirdparty%2Fopenssl.git doc: It is not possible to use SSL_OP_* value in preprocessor conditions Fixes #16082 Reviewed-by: Paul Dale Reviewed-by: Matt Caswell (Merged from https://github.com/openssl/openssl/pull/16084) --- diff --git a/doc/man3/SSL_CTX_set_options.pod b/doc/man3/SSL_CTX_set_options.pod index 7b179099e12..df47e4dd036 100644 --- a/doc/man3/SSL_CTX_set_options.pod +++ b/doc/man3/SSL_CTX_set_options.pod @@ -427,6 +427,12 @@ were added in OpenSSL 1.1.1. The B and B options were added in OpenSSL 3.0. +The B constants and the corresponding parameter and return values +of the affected functions were changed to C type in OpenSSL 3.0. +For that reason it is no longer possible use the B macro values +in preprocessor C<#if> conditions. However it is still possible to test +whether these macros are defined or not. + =head1 COPYRIGHT Copyright 2001-2021 The OpenSSL Project Authors. All Rights Reserved. diff --git a/doc/man7/migration_guide.pod b/doc/man7/migration_guide.pod index aac158795cb..8cc9bd5fc86 100644 --- a/doc/man7/migration_guide.pod +++ b/doc/man7/migration_guide.pod @@ -2235,7 +2235,9 @@ SSL and SSL_CTX options are now 64 bit instead of 32 bit. The signatures of the functions to get and set options on SSL and SSL_CTX objects changed from "unsigned long" to "uint64_t" type. -This may require source code changes. +This may require source code changes. For example it is no longer possible +to use the B macro values in preprocessor C<#if> conditions. +However it is still possible to test whether these macros are defined or not. See L, L, L and L.