included a certificate label in the is_trusted() method
This commit is contained in:
@@ -160,10 +160,11 @@ struct credential_store_t {
|
||||
* @brief Verify an X.509 certificate up to trust anchor without any status checks
|
||||
*
|
||||
* @param this calling object
|
||||
* @param label label characterizing the certificate to be verified
|
||||
* @param cert certificate to be verified
|
||||
* @return TRUE if trusted
|
||||
*/
|
||||
bool (*is_trusted) (credential_store_t *this, x509_t *cert);
|
||||
bool (*is_trusted) (credential_store_t *this, const char *label, x509_t *cert);
|
||||
|
||||
/**
|
||||
* @brief Verify an X.509 certificate up to trust anchor including status checks
|
||||
|
||||
@@ -770,7 +770,7 @@ static void ocsp_process_response(private_ocsp_t *this, response_t *res, credent
|
||||
if (res->responder_cert->is_ocsp_signer(res->responder_cert))
|
||||
{
|
||||
DBG2("received certificate is ocsp signer");
|
||||
if (credentials->is_trusted(credentials, res->responder_cert))
|
||||
if (credentials->is_trusted(credentials, "OCSP signing", res->responder_cert))
|
||||
{
|
||||
DBG1("received ocsp signer certificate is trusted");
|
||||
ocsp_cert = credentials->add_auth_certificate(credentials,
|
||||
|
||||
Reference in New Issue
Block a user