mirror of
https://github.com/strongswan/strongswan.git
synced 2025-11-05 00:00:27 -05:00
DBG1 level now shows stepping up through the certifiate hierarchy up to the trust anchor
This commit is contained in:
parent
13b872ebd2
commit
f44dbc639b
@ -522,14 +522,14 @@ static bool is_trusted(private_local_credential_store_t *this, x509_t *cert)
|
|||||||
/* check if cert is a self-signed root ca */
|
/* check if cert is a self-signed root ca */
|
||||||
if (pathlen > 0 && cert->is_self_signed(cert))
|
if (pathlen > 0 && cert->is_self_signed(cert))
|
||||||
{
|
{
|
||||||
DBG2(DBG_CFG, "reached self-signed root ca");
|
DBG1(DBG_CFG, "reached self-signed root ca");
|
||||||
cert_to_be_trusted->set_until(cert_to_be_trusted, until);
|
cert_to_be_trusted->set_until(cert_to_be_trusted, until);
|
||||||
cert_to_be_trusted->set_status(cert_to_be_trusted, CERT_GOOD);
|
cert_to_be_trusted->set_status(cert_to_be_trusted, CERT_GOOD);
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
/* go up one step in the trust chain */
|
DBG1(DBG_CFG, "going up one step in the certificate trust chain");
|
||||||
cert = issuer_cert;
|
cert = issuer_cert;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user