]> git.ipfire.org Git - thirdparty/openssl.git/blobdiff - ssl/statem/statem_clnt.c
TLS KeyUpdate messages are not allowed in QUIC
[thirdparty/openssl.git] / ssl / statem / statem_clnt.c
index 655b6ac17adea1d98aa1740eea2630c0a491a255..9336363ca1af57bcee622d4eabed788c0ad9c85a 100644 (file)
@@ -184,7 +184,7 @@ static int ossl_statem_client13_read_transition(SSL_CONNECTION *s, int mt)
             st->hand_state = TLS_ST_CR_SESSION_TICKET;
             return 1;
         }
-        if (mt == SSL3_MT_KEY_UPDATE) {
+        if (mt == SSL3_MT_KEY_UPDATE && !SSL_IS_QUIC_HANDSHAKE(s)) {
             st->hand_state = TLS_ST_CR_KEY_UPDATE;
             return 1;
         }