diff options
author | Matt Caswell <matt@openssl.org> | 2023-03-10 14:46:52 +0000 |
---|---|---|
committer | Pauli <pauli@openssl.org> | 2023-03-20 09:35:38 +1100 |
commit | f8ffab0d52fc5e37d92c99e4463d76174e869930 (patch) | |
tree | 4c1fc95fe3c1baf825d3baf56e5e28788a5f316e /ssl | |
parent | 8b399c5e51b4d010650cb344a67a696daf096a05 (diff) |
Defer unknown QUIC ctrls to the SSL object for TLS
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)
Diffstat (limited to 'ssl')
-rw-r--r-- | ssl/quic/quic_impl.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ssl/quic/quic_impl.c b/ssl/quic/quic_impl.c index 72ea5118af..4c34ab8e40 100644 --- a/ssl/quic/quic_impl.c +++ b/ssl/quic/quic_impl.c @@ -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); } } |