mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-01-31 01:04:03 -05:00
OpenSSL: Recognize special write_p == 2 in msg_callback
OpenSSL could use this to identify crypto tracing values if built with OPENSSL_SSL_TRACE_CRYPTO. Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
37211e15fa
commit
faf8f29379
@ -1132,6 +1132,14 @@ static void tls_msg_cb(int write_p, int version, int content_type,
|
|||||||
struct tls_connection *conn = arg;
|
struct tls_connection *conn = arg;
|
||||||
const u8 *pos = buf;
|
const u8 *pos = buf;
|
||||||
|
|
||||||
|
if (write_p == 2) {
|
||||||
|
wpa_printf(MSG_DEBUG,
|
||||||
|
"OpenSSL: session ver=0x%x content_type=%d",
|
||||||
|
version, content_type);
|
||||||
|
wpa_hexdump_key(MSG_MSGDUMP, "OpenSSL: Data", buf, len);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
wpa_printf(MSG_DEBUG, "OpenSSL: %s ver=0x%x content_type=%d",
|
wpa_printf(MSG_DEBUG, "OpenSSL: %s ver=0x%x content_type=%d",
|
||||||
write_p ? "TX" : "RX", version, content_type);
|
write_p ? "TX" : "RX", version, content_type);
|
||||||
wpa_hexdump_key(MSG_MSGDUMP, "OpenSSL: Message", buf, len);
|
wpa_hexdump_key(MSG_MSGDUMP, "OpenSSL: Message", buf, len);
|
||||||
|
Loading…
Reference in New Issue
Block a user