forked from wolfSSL/wolfssl
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:
@@ -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) &&
|
||||
|
Reference in New Issue
Block a user