Always pass auth info to validate(), use pathlen to check for user certificate

This commit is contained in:
Martin Willi
2011-01-05 16:46:04 +01:00
parent 98ef286580
commit 09e319d419
3 changed files with 9 additions and 7 deletions
@@ -622,8 +622,7 @@ static bool verify_trust_chain(private_credential_manager_t *this,
break;
}
}
if (!check_certificate(this, current, issuer, online, pathlen,
current == subject ? auth : NULL))
if (!check_certificate(this, current, issuer, online, pathlen, auth))
{
trusted = FALSE;
issuer->destroy(issuer);