diff options
author | Matt Caswell <matt@openssl.org> | 2023-01-10 17:52:18 +0000 |
---|---|---|
committer | Hugo Landau <hlandau@openssl.org> | 2023-02-22 05:34:04 +0000 |
commit | ce8f20b6ae8f95493d86ed2f521ad2c371974f45 (patch) | |
tree | eaaf98d071d7272e90a8de0409841319298c2168 /ssl | |
parent | be5b3b3787271d6b9057639ce42145fc66c11732 (diff) |
Don't treat the Tserver as connected until the handshake is confirmed
Reviewed-by: Hugo Landau <hlandau@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/20030)
Diffstat (limited to 'ssl')
-rw-r--r-- | ssl/quic/quic_channel.c | 5 | ||||
-rw-r--r-- | ssl/quic/quic_tserver.c | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/ssl/quic/quic_channel.c b/ssl/quic/quic_channel.c index bbb88470be..cb820fffc8 100644 --- a/ssl/quic/quic_channel.c +++ b/ssl/quic/quic_channel.c @@ -433,6 +433,11 @@ int ossl_quic_channel_is_handshake_complete(const QUIC_CHANNEL *ch) return ch->handshake_complete; } +int ossl_quic_channel_is_handshake_confirmed(const QUIC_CHANNEL *ch) +{ + return ch->handshake_confirmed; +} + /* * QUIC Channel: Callbacks from Miscellaneous Subsidiary Components * ================================================================ diff --git a/ssl/quic/quic_tserver.c b/ssl/quic/quic_tserver.c index 444b59b746..4c120d0d58 100644 --- a/ssl/quic/quic_tserver.c +++ b/ssl/quic/quic_tserver.c @@ -167,9 +167,9 @@ int ossl_quic_tserver_is_terminated(QUIC_TSERVER *srv, return ossl_quic_channel_is_terminated(srv->ch, cause); } -int ossl_quic_tserver_is_handshake_complete(QUIC_TSERVER *srv) +int ossl_quic_tserver_is_handshake_confirmed(QUIC_TSERVER *srv) { - return ossl_quic_channel_is_handshake_complete(srv->ch); + return ossl_quic_channel_is_handshake_confirmed(srv->ch); } int ossl_quic_tserver_read(QUIC_TSERVER *srv, |