]> 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:26:15 +0000 (16:26 +0100)
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/17150)

ssl/statem/extensions_clnt.c

index d6d4e55ce782b77466ae93873050cde3c6a0bb09..c5de5ca5bafa5ac1f12d15f2060fc3033fd779aa 100644 (file)
@@ -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;