diff options
author | Hugo Landau <hlandau@openssl.org> | 2023-08-30 13:41:39 +0100 |
---|---|---|
committer | Hugo Landau <hlandau@openssl.org> | 2023-09-01 14:02:50 +0100 |
commit | 7d9e447ab812df34bba581c5918721cc704fdacb (patch) | |
tree | e14a4894274d427d184468fe9fe19311abfa62d7 /ssl | |
parent | cc50b44e555d71a10cdc45588d1b57523fb95ee4 (diff) |
QUIC API: Revise SSL_get_conn_close_info to use a flags field
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21905)
Diffstat (limited to 'ssl')
-rw-r--r-- | ssl/quic/quic_impl.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/ssl/quic/quic_impl.c b/ssl/quic/quic_impl.c index acb51fc858..c3900580f7 100644 --- a/ssl/quic/quic_impl.c +++ b/ssl/quic/quic_impl.c @@ -3341,8 +3341,11 @@ int ossl_quic_get_conn_close_info(SSL *ssl, info->error_code = tc->error_code; info->reason = tc->reason; info->reason_len = tc->reason_len; - info->is_local = !tc->remote; - info->is_transport = !tc->app; + info->flags = 0; + if (!tc->remote) + info->flags |= SSL_CONN_CLOSE_FLAG_LOCAL; + if (!tc->app) + info->flags |= SSL_CONN_CLOSE_FLAG_TRANSPORT; return 1; } |