diff options
author | Hugo Landau <hlandau@openssl.org> | 2023-01-16 15:35:05 +0000 |
---|---|---|
committer | Pauli <pauli@openssl.org> | 2023-07-05 09:02:27 +1000 |
commit | f66f0d3ce1667c04d08f158565320237a59593f6 (patch) | |
tree | 9ff487293bf66f8bf2a6a98f7e1ca661673dfad3 /ssl/ssl_lib.c | |
parent | 3ea30e76d788a4f1982785c0f29853cf1211d37e (diff) |
QUIC SSL: SSL_set_quiet_shutdown
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/20061)
Diffstat (limited to 'ssl/ssl_lib.c')
-rw-r--r-- | ssl/ssl_lib.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ssl/ssl_lib.c b/ssl/ssl_lib.c index 057c8e895a..9c5b29e331 100644 --- a/ssl/ssl_lib.c +++ b/ssl/ssl_lib.c @@ -822,7 +822,7 @@ SSL *ossl_ssl_connection_new_int(SSL_CTX *ctx, const SSL_METHOD *method) if (s->param == NULL) goto asn1err; X509_VERIFY_PARAM_inherit(s->param, ctx->param); - s->quiet_shutdown = ctx->quiet_shutdown; + s->quiet_shutdown = IS_QUIC_CTX(ctx) ? 0 : ctx->quiet_shutdown; if (!IS_QUIC_CTX(ctx)) s->ext.max_fragment_len_mode = ctx->ext.max_fragment_len_mode; @@ -5123,7 +5123,7 @@ void SSL_set_quiet_shutdown(SSL *s, int mode) { SSL_CONNECTION *sc = SSL_CONNECTION_FROM_SSL_ONLY(s); - /* TODO(QUIC): Do we want this for QUIC? */ + /* TODO(QUIC): Currently not supported for QUIC. */ if (sc == NULL) return; @@ -5134,7 +5134,7 @@ int SSL_get_quiet_shutdown(const SSL *s) { const SSL_CONNECTION *sc = SSL_CONNECTION_FROM_CONST_SSL_ONLY(s); - /* TODO(QUIC): Do we want this for QUIC? */ + /* TODO(QUIC): Currently not supported for QUIC. */ if (sc == NULL) return 0; |