added Certificate Status handshake message to sniffer

This commit is contained in:
John Safranek
2015-03-16 11:19:16 -07:00
parent 023f44bacf
commit 4d62389389
4 changed files with 8 additions and 1 deletions

View File

@ -87,5 +87,6 @@ STRINGTABLE
71, "Decrypt Keys Not Set Up"
72, "Late Key Load Error"
73, "Got Certificate Status msg"
}

View File

@ -236,7 +236,8 @@ static const char* const msgTable[] =
/* 71 */
"Decrypt Keys Not Set Up",
"Late Key Load Error"
"Late Key Load Error",
"Got Certificate Status msg"
};
@ -1842,6 +1843,9 @@ static int DoHandShake(const byte* input, int* sslBytes,
case certificate_verify:
Trace(GOT_CERT_VER_STR);
break;
case certificate_status:
Trace(GOT_CERT_STATUS_STR);
break;
default:
SetError(GOT_UNKNOWN_HANDSHAKE_STR, error, session, 0);
return -1;

View File

@ -2276,6 +2276,7 @@ enum HandShakeType {
certificate_verify = 15,
client_key_exchange = 16,
finished = 20,
certificate_status = 22,
change_cipher_hs = 55 /* simulate unique handshake type for sanity
checks. record layer change_cipher
conflicts with handshake finished */

View File

@ -105,6 +105,7 @@
#define DECRYPT_KEYS_NOT_SETUP 71
#define CLIENT_HELLO_LATE_KEY_STR 72
#define GOT_CERT_STATUS_STR 73
/* !!!! also add to msgTable in sniffer.c and .rc file !!!! */