Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions src/wh_server_cert.c
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,8 @@ static int DerNextSequence(const uint8_t* input, uint32_t maxIdx,
}


/* Caller (the cert request dispatch) holds the non-recursive
* WH_SERVER_NVM_LOCK, so only unlocked keystore primitives may be used here. */
static int _verifyChainAgainstCmStore(
whServerContext* server, WOLFSSL_CERT_MANAGER* cm, const uint8_t* chain,
uint32_t chain_len, const whNvmId* trustedRootNvmIds, uint16_t numRoots,
Expand Down Expand Up @@ -486,6 +488,7 @@ static int _verifyChainAgainstCmStore(
if (WH_KEYID_ISERASED(*inout_keyId)) {
rc = wh_Server_KeystoreGetUniqueId(server, inout_keyId);
if (rc != WH_ERROR_OK) {
wc_FreeDecodedCert(&dc);
return rc;
}
}
Expand Down Expand Up @@ -1165,7 +1168,7 @@ int wh_Server_HandleCertRequest(whServerContext* server, uint16_t magic,
if (rc == WH_ERROR_OK) {
rc = wh_Server_CertVerifyCache_Clear(server);
(void)WH_SERVER_NVM_UNLOCK(server);
}
} /* WH_SERVER_NVM_LOCK() */
#else
rc = wh_Server_CertVerifyCache_Clear(server);
#endif
Expand Down Expand Up @@ -1193,7 +1196,7 @@ int wh_Server_HandleCertRequest(whServerContext* server, uint16_t magic,
rc = wh_Server_CertVerifyCache_SetEnabled(server,
req.enable);
(void)WH_SERVER_NVM_UNLOCK(server);
}
} /* WH_SERVER_NVM_LOCK() */
#else
rc = wh_Server_CertVerifyCache_SetEnabled(server, req.enable);
#endif
Expand Down
Loading
Loading