added the create_crluri_iterator method
This commit is contained in:
@@ -1044,6 +1044,14 @@ static cert_status_t get_status(const private_x509_t *this)
|
|||||||
return this->status;
|
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
|
* 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.get_until = (time_t (*) (const x509_t*))get_until;
|
||||||
this->public.set_status = (void (*) (x509_t*,cert_status_t))set_status;
|
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.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.verify = (bool (*) (const x509_t*,const rsa_public_key_t*))verify;
|
||||||
this->public.destroy = (void (*) (x509_t*))destroy;
|
this->public.destroy = (void (*) (x509_t*))destroy;
|
||||||
|
|
||||||
|
|||||||
@@ -140,6 +140,14 @@ struct x509_t {
|
|||||||
*/
|
*/
|
||||||
identification_t *(*get_subject) (const x509_t *this);
|
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
|
* @brief Check if a certificate is trustworthy
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user