aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan/credentials/certificates/certificate.h
diff options
context:
space:
mode:
authorMartin Willi <martin@strongswan.org>2008-03-26 15:21:50 +0000
committerMartin Willi <martin@strongswan.org>2008-03-26 15:21:50 +0000
commit7b88a983d8dfb6fa8137bcc53d0e97054cfb18fe (patch)
treec2a7356d574958d2dc9839ab421f47a6bdabe64c /src/libstrongswan/credentials/certificates/certificate.h
parent391abda0828ea4d7bd1b9e9f81ff7b3108e65c4d (diff)
downloadstrongswan-7b88a983d8dfb6fa8137bcc53d0e97054cfb18fe.tar.bz2
strongswan-7b88a983d8dfb6fa8137bcc53d0e97054cfb18fe.tar.xz
caching of ocsp responses (experimental), no crl caching yet
Diffstat (limited to 'src/libstrongswan/credentials/certificates/certificate.h')
-rw-r--r--src/libstrongswan/credentials/certificates/certificate.h19
1 files changed, 7 insertions, 12 deletions
diff --git a/src/libstrongswan/credentials/certificates/certificate.h b/src/libstrongswan/credentials/certificates/certificate.h
index cc3f73a0d..14f4de389 100644
--- a/src/libstrongswan/credentials/certificates/certificate.h
+++ b/src/libstrongswan/credentials/certificates/certificate.h
@@ -62,13 +62,13 @@ extern enum_name_t *certificate_type_names;
enum cert_validation_t {
/** certificate has been validated successfully */
VALIDATION_GOOD,
- /** validation failed, certificate is revoked */
+ /** certificate has been validated, but check based on stale information */
+ VALIDATION_STALE,
+ /** certificate has been revoked */
VALIDATION_REVOKED,
- /* ocsp status is unknown or crl is stale */
- VALIDATION_UNKNOWN,
- /** validation process failed due to an error */
+ /** validation failed due to a processing error */
VALIDATION_FAILED,
- /** validation has been skipped (no cdps available) */
+ /** validation has been skipped due to missing validation information */
VALIDATION_SKIPPED,
};
@@ -129,17 +129,12 @@ struct certificate_t {
id_match_t (*has_issuer)(certificate_t *this, identification_t *issuer);
/**
- * Check if this certificate is issued by a specific issuer.
+ * Check if this certificate is issued and signed by a specific issuer.
*
- * As signature verification is computional expensive, it is optional
- * and may be skipped. While this is not sufficient for verification
- * purposes, it is to e.g. find matching certificates.
- *
* @param issuer issuer's certificate
- * @param checksig TRUE to verify signature, FALSE to compare issuer only
* @return TRUE if certificate issued by issuer and trusted
*/
- bool (*issued_by)(certificate_t *this, certificate_t *issuer, bool checksig);
+ bool (*issued_by)(certificate_t *this, certificate_t *issuer);
/**
* Get the public key associated to this certificate.