From: Andreas Steffen Date: Sat, 24 Feb 2007 23:21:45 +0000 (-0000) Subject: added the create_crluri_iterator method X-Git-Tag: 4.0.7~20 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e3c0ece8c8d30b249cf4b3eef963e474dea846a1;p=thirdparty%2Fstrongswan.git added the create_crluri_iterator method --- diff --git a/src/libstrongswan/crypto/x509.c b/src/libstrongswan/crypto/x509.c index fcbd5dc959..f2e87d2853 100755 --- a/src/libstrongswan/crypto/x509.c +++ b/src/libstrongswan/crypto/x509.c @@ -1044,6 +1044,14 @@ static cert_status_t get_status(const private_x509_t *this) return this->status; } +/** + * 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 */ @@ -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 fd129149bf..824a4e170e 100755 --- a/src/libstrongswan/crypto/x509.h +++ b/src/libstrongswan/crypto/x509.h @@ -140,6 +140,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 *