summaryrefslogtreecommitdiffstats
path: root/ssl
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2023-08-07 16:53:24 +0100
committerMatt Caswell <matt@openssl.org>2023-08-15 14:41:31 +0100
commit644ef0bb696eeaf3572e858b2beeca17b0621a3f (patch)
tree4dcc77edac4bc6fa389bd592e489deea583d7ee6 /ssl
parent614c08c23999e39945b556851eabff157aef833f (diff)
Add a test for receiving a post-handshake CertificateRequest
This should result in a QUIC PROTOCOL_VIOLATION We also add tests for a post-handshake KeyUpdate, and a NewSessionTicket with an invalid max_early_data value. Reviewed-by: Hugo Landau <hlandau@openssl.org> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/21686)
Diffstat (limited to 'ssl')
-rw-r--r--ssl/quic/quic_tserver.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/ssl/quic/quic_tserver.c b/ssl/quic/quic_tserver.c
index ae792c5e7a..5401453dc5 100644
--- a/ssl/quic/quic_tserver.c
+++ b/ssl/quic/quic_tserver.c
@@ -534,3 +534,9 @@ int ossl_quic_tserver_new_ticket(QUIC_TSERVER *srv)
{
return SSL_new_session_ticket(srv->tls);
}
+
+int ossl_quic_tserver_set_max_early_data(QUIC_TSERVER *srv,
+ uint32_t max_early_data)
+{
+ return SSL_set_max_early_data(srv->tls, max_early_data);
+}