summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDmitry Belyavskiy <beldmit@gmail.com>2021-03-05 18:50:37 +0100
committerDmitry Belyavskiy <beldmit@gmail.com>2021-03-06 21:52:16 +0100
commita2c911c2d069b5c6f9e2a8f20764de83a82b1c99 (patch)
tree76d88019610f036659d9276331c91f239b61d3f3 /include
parent9293046fb447b1fd0ef1753017d9db4c3c333860 (diff)
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 <levitte@openssl.org> Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/14448)
Diffstat (limited to 'include')
-rw-r--r--include/openssl/tls1.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/openssl/tls1.h b/include/openssl/tls1.h
index f8e3e9ca0d..10332997de 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)