diff options
author | Tomas Mraz <tomas@openssl.org> | 2023-05-11 13:49:51 +0200 |
---|---|---|
committer | Hugo Landau <hlandau@openssl.org> | 2023-05-17 14:04:18 +0100 |
commit | bbc9754026e815429b55c92cf2a70e4ac59464cf (patch) | |
tree | 1617ff11a5d57535bc54d94b6ee761e7e1f87ebb /include | |
parent | c301149ad43ee2c611e7b8d4f2826f524f3385aa (diff) | |
download | openssl-new-bbc9754026e815429b55c92cf2a70e4ac59464cf.tar.gz |
quic_tserver: Add possibility to change the connection id
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 'include')
-rw-r--r-- | include/internal/quic_channel.h | 4 | ||||
-rw-r--r-- | include/internal/quic_tserver.h | 5 |
2 files changed, 9 insertions, 0 deletions
diff --git a/include/internal/quic_channel.h b/include/internal/quic_channel.h index d1a231fcc8..6dbf08665d 100644 --- a/include/internal/quic_channel.h +++ b/include/internal/quic_channel.h @@ -319,6 +319,10 @@ void ossl_quic_channel_set_incoming_stream_auto_reject(QUIC_CHANNEL *ch, */ void ossl_quic_channel_reject_stream(QUIC_CHANNEL *ch, QUIC_STREAM *qs); +/* Replace local connection ID in TXP and DEMUX for testing purposes. */ +int ossl_quic_channel_replace_local_cid(QUIC_CHANNEL *ch, + const QUIC_CONN_ID *conn_id); + # endif #endif diff --git a/include/internal/quic_tserver.h b/include/internal/quic_tserver.h index a42bbaa684..744c34472e 100644 --- a/include/internal/quic_tserver.h +++ b/include/internal/quic_tserver.h @@ -145,6 +145,11 @@ int ossl_quic_tserver_stream_has_peer_reset_stream(QUIC_TSERVER *srv, uint64_t stream_id, uint64_t *app_error_code); +/* + * Replaces existing local connection ID in the underlying QUIC_CHANNEL. + */ +int ossl_quic_tserver_set_new_local_cid(QUIC_TSERVER *srv, + const QUIC_CONN_ID *conn_id); # endif #endif |