]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Defer unknown QUIC ctrls to the SSL object for TLS
authorMatt Caswell <matt@openssl.org>
Fri, 10 Mar 2023 14:46:52 +0000 (14:46 +0000)
committerPauli <pauli@openssl.org>
Sun, 19 Mar 2023 22:35:38 +0000 (09:35 +1100)
If the QUIC oject receives a ctrl it does not recognise, the chances are
it is intended for the underlying SSL object - so we forward unknown ctrls
there.

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/20514)

ssl/quic/quic_impl.c

index 72ea5118aff0dca8ce4e37585c6d00873a16c517..4c34ab8e4049d542795957e08bb6d26e5286fe6f 100644 (file)
@@ -537,7 +537,8 @@ long ossl_quic_ctrl(SSL *s, int cmd, long larg, void *parg)
         qc->ssl_mode &= ~(uint32_t)larg;
         return qc->ssl_mode;
     default:
-        return 0;
+        /* Probably a TLS related ctrl. Defer to our internal SSL object */
+        return SSL_ctrl(qc->tls, cmd, larg, parg);
     }
 }