aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2019-07-12 19:42:13 (GMT)
committerJouni Malinen <j@w1.fi>2019-07-12 19:42:13 (GMT)
commit0ef509f15e1101afebeb7a3b40b5e04c270c43db (patch)
tree9db74ea0dd466a7eeefbdbffed354baabf123a78
parent8b57a378081bbc33387c86e994c7d282d413395d (diff)
downloadhostap-0ef509f15e1101afebeb7a3b40b5e04c270c43db.zip
hostap-0ef509f15e1101afebeb7a3b40b5e04c270c43db.tar.gz
hostap-0ef509f15e1101afebeb7a3b40b5e04c270c43db.tar.bz2
OpenSSL: Parse msg_callback inner content type into debug messages
Signed-off-by: Jouni Malinen <j@w1.fi>
-rw-r--r--src/crypto/tls_openssl.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/crypto/tls_openssl.c b/src/crypto/tls_openssl.c
index 39f453d..42bdbec 100644
--- a/src/crypto/tls_openssl.c
+++ b/src/crypto/tls_openssl.c
@@ -1335,6 +1335,8 @@ static const char * openssl_content_type(int content_type)
return "heartbeat";
case 256:
return "TLS header info"; /* pseudo content type */
+ case 257:
+ return "inner content type"; /* pseudo content type */
default:
return "?";
}
@@ -1344,6 +1346,8 @@ static const char * openssl_content_type(int content_type)
static const char * openssl_handshake_type(int content_type, const u8 *buf,
size_t len)
{
+ if (content_type == 257 && buf && len == 1)
+ return openssl_content_type(buf[0]);
if (content_type != 22 || !buf || len == 0)
return "";
switch (buf[0]) {