summaryrefslogtreecommitdiff
path: root/ssl
diff options
context:
space:
mode:
authorTomas Mraz <tomas@openssl.org>2023-05-11 13:50:21 +0200
committerHugo Landau <hlandau@openssl.org>2023-05-17 14:04:18 +0100
commit80b9eca279772185c32bb8d639af874b00217d6f (patch)
treea93e1aa4c331f3386bccaf841a707037c28d0dee /ssl
parentbbc9754026e815429b55c92cf2a70e4ac59464cf (diff)
downloadopenssl-new-80b9eca279772185c32bb8d639af874b00217d6f.tar.gz
Add test for handling NEW_CONNECTION_ID frame
Reviewed-by: Hugo Landau <hlandau@openssl.org> Reviewed-by: Paul Dale <pauli@openssl.org> (Merged from https://github.com/openssl/openssl/pull/20892)
Diffstat (limited to 'ssl')
-rw-r--r--ssl/quic/quic_tserver.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/ssl/quic/quic_tserver.c b/ssl/quic/quic_tserver.c
index cd24d5c59e..8e15587bec 100644
--- a/ssl/quic/quic_tserver.c
+++ b/ssl/quic/quic_tserver.c
@@ -397,3 +397,10 @@ int ossl_quic_tserver_stream_has_peer_reset_stream(QUIC_TSERVER *srv,
return qs->peer_reset_stream;
}
+
+int ossl_quic_tserver_set_new_local_cid(QUIC_TSERVER *srv,
+ const QUIC_CONN_ID *conn_id)
+{
+ /* Replace existing local connection ID in the QUIC_CHANNEL */
+ return ossl_quic_channel_replace_local_cid(srv->ch, conn_id);
+}