From: Dmitry Belyavskiy Date: Fri, 5 Mar 2021 17:50:37 +0000 (+0100) Subject: Restore GOST macros compatibility with 1.1.1 X-Git-Tag: openssl-3.0.0-alpha13~33 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a2c911c2d069b5c6f9e2a8f20764de83a82b1c99;p=thirdparty%2Fopenssl.git Restore GOST macros compatibility with 1.1.1 Fixes #14440 Before IANA assigned the official codes for the GOST signature algorithms in TLS, the values from the Reserved for Private Use range were in use in Russia. The old values were renamed. Reviewed-by: Richard Levitte Reviewed-by: Matt Caswell (Merged from https://github.com/openssl/openssl/pull/14448) --- diff --git a/include/openssl/tls1.h b/include/openssl/tls1.h index f8e3e9ca0da..10332997de0 100644 --- a/include/openssl/tls1.h +++ b/include/openssl/tls1.h @@ -1121,6 +1121,11 @@ int SSL_CTX_set_tlsext_ticket_key_evp_cb # define TLS_CT_GOST12_LEGACY_SIGN 238 # define TLS_CT_GOST12_LEGACY_512_SIGN 239 +# ifndef OPENSSL_NO_DEPRECATED_3_0 +# define TLS_CT_GOST12_SIGN TLS_CT_GOST12_LEGACY_SIGN +# define TLS_CT_GOST12_512_SIGN TLS_CT_GOST12_LEGACY_512_SIGN +# endif + /* * when correcting this number, correct also SSL3_CT_NUMBER in ssl3.h (see * comment there)