]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
OpenSSL: Parse msg_callback inner content type into debug messages
authorJouni Malinen <j@w1.fi>
Fri, 12 Jul 2019 19:42:13 +0000 (22:42 +0300)
committerJouni Malinen <j@w1.fi>
Fri, 12 Jul 2019 19:42:13 +0000 (22:42 +0300)
Signed-off-by: Jouni Malinen <j@w1.fi>
src/crypto/tls_openssl.c

index 39f453d61d7256dd2c7118b2da2a42cdbdd97bce..42bdbec08b609b3340d82fafb148965a140a03e6 100644 (file)
@@ -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]) {