certificate_t->issued_by takes an argument to receive signature scheme

This commit is contained in:
Martin Willi
2012-06-12 14:24:49 +02:00
parent 439d0742e9
commit a37f2d2006
16 changed files with 68 additions and 24 deletions
@@ -143,9 +143,11 @@ struct certificate_t {
* Check if this certificate is issued and signed by a specific issuer.
*
* @param issuer issuer's certificate
* @param scheme receives signature scheme used during verification
* @return TRUE if certificate issued by issuer and trusted
*/
bool (*issued_by)(certificate_t *this, certificate_t *issuer);
bool (*issued_by)(certificate_t *this, certificate_t *issuer,
signature_scheme_t *scheme);
/**
* Get the public key associated to this certificate.
@@ -165,7 +165,7 @@ METHOD(cert_cache_t, issued_by, bool,
}
}
/* no cache hit, check and cache signature */
if (subject->issued_by(subject, issuer))
if (subject->issued_by(subject, issuer, NULL))
{
cache(this, subject, issuer);
return TRUE;