]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
No EtM for GOST ciphers in TLS 1.2
authorDmitry Belyavskiy <beldmit@gmail.com>
Sun, 28 Nov 2021 09:21:21 +0000 (10:21 +0100)
committerDmitry Belyavskiy <beldmit@gmail.com>
Mon, 29 Nov 2021 15:30:27 +0000 (16:30 +0100)
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/17150)

(cherry picked from commit d724da69389196cdb9ef8db036656882fbc5a6ab)

ssl/statem/extensions_clnt.c

index b38c9ca68429cc4e81f93c03f4ff346ee3f2a82e..4cd7affe23ad3e39e4779f0d7997a05a323f7493 100644 (file)
@@ -1678,7 +1678,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;