From: Dmitry Belyavskiy Date: Sun, 28 Nov 2021 09:21:21 +0000 (+0100) Subject: No EtM for GOST ciphers in TLS 1.2 X-Git-Tag: openssl-3.2.0-alpha1~3273 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d724da69389196cdb9ef8db036656882fbc5a6ab;p=thirdparty%2Fopenssl.git No EtM for GOST ciphers in TLS 1.2 Reviewed-by: Paul Dale Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/17150) --- diff --git a/ssl/statem/extensions_clnt.c b/ssl/statem/extensions_clnt.c index d6d4e55ce78..c5de5ca5baf 100644 --- a/ssl/statem/extensions_clnt.c +++ b/ssl/statem/extensions_clnt.c @@ -1695,7 +1695,11 @@ int tls_parse_stoc_etm(SSL *s, PACKET *pkt, unsigned int context, X509 *x, /* Ignore if inappropriate ciphersuite */ if (!(s->options & SSL_OP_NO_ENCRYPT_THEN_MAC) && s->s3.tmp.new_cipher->algorithm_mac != SSL_AEAD - && s->s3.tmp.new_cipher->algorithm_enc != SSL_RC4) + && s->s3.tmp.new_cipher->algorithm_enc != SSL_RC4 + && s->s3.tmp.new_cipher->algorithm_enc != SSL_eGOST2814789CNT + && s->s3.tmp.new_cipher->algorithm_enc != SSL_eGOST2814789CNT12 + && s->s3.tmp.new_cipher->algorithm_enc != SSL_MAGMA + && s->s3.tmp.new_cipher->algorithm_enc != SSL_KUZNYECHIK) s->ext.use_etm = 1; return 1;