caching of ocsp responses (experimental), no crl caching yet

This commit is contained in:
Martin Willi
2008-03-26 15:21:50 +00:00
parent 391abda082
commit 7b88a983d8
12 changed files with 205 additions and 287 deletions
+2 -3
View File
@@ -93,7 +93,7 @@ static bool issued_by(private_cert_cache_t *this,
return TRUE;
}
/* no cache hit, check signature */
if (!subject->issued_by(subject, issuer, TRUE))
if (!subject->issued_by(subject, issuer))
{
return FALSE;
}
@@ -131,10 +131,9 @@ static bool certs_filter(cert_data_t *data, relation_t **in, certificate_t **out
public_key_t *public;
certificate_t *cert;
/* serve all subjects, but only if an ID is requestd (no listing) */
cert = (*in)->subject;
if ((data->cert == CERT_ANY || cert->get_type(cert) == data->cert) &&
data->id && cert->has_subject(cert, data->id))
(!data->id || cert->has_subject(cert, data->id)))
{
if (data->key == KEY_ANY)
{