#define SSL_CONN_CLOSE_FLAG_TRANSPORT
typedef struct ssl_conn_close_info_st {
- uint64_t error_code;
+ uint64_t error_code, frame_type;
char *reason;
size_t reason_len;
uint32_t flags;
QUIC transport error code (if B<SSL_CONN_CLOSE_FLAG_TRANSPORT> is set in
I<flags>).
+=item I<frame_type>
+
+If B<SSL_CONN_CLOSE_FLAG_TRANSPORT> is set, this may be set to a QUIC frame type
+number which caused the connection to be closed. It may also be set to 0 if no
+frame type was specified as causing the connection to be closed. If
+B<SSL_CONN_CLOSE_FLAG_TRANSPORT> is not set, this is set to 0.
+
=item I<reason>
If non-NULL, this is intended to be a UTF-8 textual string briefly describing
#define SSL_CONN_CLOSE_FLAG_TRANSPORT (1U << 1)
typedef struct ssl_conn_close_info_st {
- uint64_t error_code;
+ uint64_t error_code, frame_type;
const char *reason;
size_t reason_len;
uint32_t flags;
return 0;
info->error_code = tc->error_code;
+ info->frame_type = tc->frame_type;
info->reason = tc->reason;
info->reason_len = tc->reason_len;
info->flags = 0;