log trust pathlen

This commit is contained in:
Andreas Steffen
2007-05-25 11:41:06 +00:00
parent 3367fa8b74
commit 3f9834a491
@@ -529,11 +529,12 @@ static bool is_trusted(private_local_credential_store_t *this, const char *label
} }
else else
{ {
DBG1(DBG_CFG, "going up one step in the certificate trust chain"); DBG1(DBG_CFG, "going up one step in the certificate trust chain (%d)",
pathlen + 1);
cert = issuer_cert; cert = issuer_cert;
} }
} }
DBG1(DBG_CFG, "maximum ca path length of %d levels exceeded", MAX_CA_PATH_LEN); DBG1(DBG_CFG, "maximum ca path length of %d levels reached", MAX_CA_PATH_LEN);
return FALSE; return FALSE;
} }
@@ -709,10 +710,11 @@ static bool verify(private_local_credential_store_t *this, x509_t *cert, bool *f
} }
certinfo->destroy(certinfo); certinfo->destroy(certinfo);
} }
DBG1(DBG_CFG, "going up one step in the certificate trust chain"); DBG1(DBG_CFG, "going up one step in the certificate trust chain (%d)",
pathlen + 1);
cert = issuer_cert; cert = issuer_cert;
} }
DBG1(DBG_CFG, "maximum ca path length of %d levels exceeded", MAX_CA_PATH_LEN); DBG1(DBG_CFG, "maximum ca path length of %d levels reached", MAX_CA_PATH_LEN);
return FALSE; return FALSE;
} }