Sniffer Watch Cert Chain Part 2

1. Check the sizes picked up out of the message against the expected
size of the record when looking at the certificate messages.
2. Renamed the cert and certSz in the watch callback with it being a
certChain.
This commit is contained in:
John Safranek
2019-07-16 09:54:45 -07:00
parent 9f1aa1a27c
commit 4b0bb75909
4 changed files with 24 additions and 6 deletions

View File

@@ -189,13 +189,13 @@ const byte eccHash[] = {
static int myWatchCb(void* vSniffer,
const unsigned char* certHash, unsigned int certHashSz,
const unsigned char* cert, unsigned int certSz,
const unsigned char* certChain, unsigned int certChainSz,
void* ctx, char* error)
{
const char* certName = NULL;
(void)cert;
(void)certSz;
(void)certChain;
(void)certChainSz;
(void)ctx;
if (certHashSz == sizeof(rsaHash) &&