diff options
author | Hugo Landau <hlandau@openssl.org> | 2023-07-25 11:32:24 +0100 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2023-08-08 14:33:42 +0100 |
commit | 7eb330ff7aa5580d7d97f2d183606c2d6bbbb449 (patch) | |
tree | bd4d5755df9dbd493000553766ecef25283a710a /ssl/quic/quic_tserver.c | |
parent | 7c729851d169f30d9e0c0ad6e7c1cf6cefb37935 (diff) |
QUIC: Echo PATH_CHALLENGE frames as PATH_RESPONSE frames
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21547)
Diffstat (limited to 'ssl/quic/quic_tserver.c')
-rw-r--r-- | ssl/quic/quic_tserver.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/ssl/quic/quic_tserver.c b/ssl/quic/quic_tserver.c index 233b71657e..9bd32146c3 100644 --- a/ssl/quic/quic_tserver.c +++ b/ssl/quic/quic_tserver.c @@ -511,3 +511,14 @@ int ossl_quic_tserver_ping(QUIC_TSERVER *srv) ossl_quic_reactor_tick(ossl_quic_channel_get_reactor(srv->ch), 0); return 1; } + +void ossl_quic_tserver_set_msg_callback(QUIC_TSERVER *srv, + void (*f)(int write_p, int version, + int content_type, + const void *buf, size_t len, + SSL *ssl, void *arg), + void *arg) +{ + ossl_quic_channel_set_msg_callback(srv->ch, f, NULL); + ossl_quic_channel_set_msg_callback_arg(srv->ch, arg); +} |