diff options
author | Andreas Steffen <andreas.steffen@strongswan.org> | 2007-02-24 23:21:45 +0000 |
---|---|---|
committer | Andreas Steffen <andreas.steffen@strongswan.org> | 2007-02-24 23:21:45 +0000 |
commit | e3c0ece8c8d30b249cf4b3eef963e474dea846a1 (patch) | |
tree | 8002942d7e8ab8cee1b64270a3e680b18775bc57 /src | |
parent | 7eb4010c01f05f9c2af832225837c5f8d7331a02 (diff) | |
download | strongswan-e3c0ece8c8d30b249cf4b3eef963e474dea846a1.tar.bz2 strongswan-e3c0ece8c8d30b249cf4b3eef963e474dea846a1.tar.xz |
added the create_crluri_iterator method
Diffstat (limited to 'src')
-rwxr-xr-x | src/libstrongswan/crypto/x509.c | 9 | ||||
-rwxr-xr-x | src/libstrongswan/crypto/x509.h | 8 |
2 files changed, 17 insertions, 0 deletions
diff --git a/src/libstrongswan/crypto/x509.c b/src/libstrongswan/crypto/x509.c index fcbd5dc95..f2e87d285 100755 --- a/src/libstrongswan/crypto/x509.c +++ b/src/libstrongswan/crypto/x509.c @@ -1045,6 +1045,14 @@ static cert_status_t get_status(const private_x509_t *this) } /** + * Implements x509_t.create_crluri_iterator + */ +static iterator_t *create_crluri_iterator(const private_x509_t *this) +{ + return this->crlDistributionPoints->create_iterator(this->crlDistributionPoints, TRUE); +} + +/** * Implements x509_t.verify */ static bool verify(const private_x509_t *this, const rsa_public_key_t *signer) @@ -1228,6 +1236,7 @@ x509_t *x509_create_from_chunk(chunk_t chunk) this->public.get_until = (time_t (*) (const x509_t*))get_until; this->public.set_status = (void (*) (x509_t*,cert_status_t))set_status; this->public.get_status = (cert_status_t (*) (const x509_t*))get_status; + this->public.create_crluri_iterator = (iterator_t* (*) (const x509_t*))create_crluri_iterator; this->public.verify = (bool (*) (const x509_t*,const rsa_public_key_t*))verify; this->public.destroy = (void (*) (x509_t*))destroy; diff --git a/src/libstrongswan/crypto/x509.h b/src/libstrongswan/crypto/x509.h index fd129149b..824a4e170 100755 --- a/src/libstrongswan/crypto/x509.h +++ b/src/libstrongswan/crypto/x509.h @@ -141,6 +141,14 @@ struct x509_t { identification_t *(*get_subject) (const x509_t *this); /** + * @brief Create an iterator for the crlDistributionPoints. + * + * @param this calling object + * @return iterator for crlDistributionPoints + */ + iterator_t *(*create_crluri_iterator) (const x509_t *this); + + /** * @brief Check if a certificate is trustworthy * * @param this calling object |