In case the connection close error code is unexpected
print out the reason to help with diagnostics.
Reviewed-by: Hugo Landau <hlandau@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/22474)
|| !TEST_int_eq(expect_remote,
(cc_info.flags
& SSL_CONN_CLOSE_FLAG_LOCAL) == 0)
- || !TEST_uint64_t_eq(error_code, cc_info.error_code))
+ || !TEST_uint64_t_eq(error_code, cc_info.error_code)) {
+ TEST_info("Connection close reason: %s", cc_info.reason);
goto out;
+ }
}
break;