summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorHugo Landau <hlandau@openssl.org>2023-08-30 13:41:39 +0100
committerHugo Landau <hlandau@openssl.org>2023-09-01 14:02:50 +0100
commit7d9e447ab812df34bba581c5918721cc704fdacb (patch)
treee14a4894274d427d184468fe9fe19311abfa62d7 /include
parentcc50b44e555d71a10cdc45588d1b57523fb95ee4 (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 'include')
-rw-r--r--include/openssl/ssl.h.in5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/openssl/ssl.h.in b/include/openssl/ssl.h.in
index f0a00583ec..5df101ff87 100644
--- a/include/openssl/ssl.h.in
+++ b/include/openssl/ssl.h.in
@@ -2343,11 +2343,14 @@ __owur int SSL_get_stream_write_state(SSL *ssl);
__owur int SSL_get_stream_read_error_code(SSL *ssl, uint64_t *app_error_code);
__owur int SSL_get_stream_write_error_code(SSL *ssl, uint64_t *app_error_code);
+#define SSL_CONN_CLOSE_FLAG_LOCAL (1U << 0)
+#define SSL_CONN_CLOSE_FLAG_TRANSPORT (1U << 1)
+
typedef struct ssl_conn_close_info_st {
uint64_t error_code;
const char *reason;
size_t reason_len;
- int is_local, is_transport;
+ uint32_t flags;
} SSL_CONN_CLOSE_INFO;
__owur int SSL_get_conn_close_info(SSL *ssl,