summaryrefslogtreecommitdiff
path: root/ssl/quic
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2023-03-10 14:46:52 +0000
committerPauli <pauli@openssl.org>2023-03-20 09:35:38 +1100
commitf8ffab0d52fc5e37d92c99e4463d76174e869930 (patch)
tree4c1fc95fe3c1baf825d3baf56e5e28788a5f316e /ssl/quic
parent8b399c5e51b4d010650cb344a67a696daf096a05 (diff)
downloadopenssl-new-f8ffab0d52fc5e37d92c99e4463d76174e869930.tar.gz
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/quic')
-rw-r--r--ssl/quic/quic_impl.c3
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);
}
}