added create_ipAddrBlock_enumerator() method to x509_t
This commit is contained in:
@@ -121,6 +121,13 @@ struct x509_t {
|
||||
* @return enumerator over URIs as char*
|
||||
*/
|
||||
enumerator_t* (*create_ocsp_uri_enumerator)(x509_t *this);
|
||||
|
||||
/**
|
||||
* Create an enumerator over all ipAddrBlocks.
|
||||
*
|
||||
* @return enumerator over ipAddrBlocks as traffic_selector_t*
|
||||
*/
|
||||
enumerator_t* (*create_ipAddrBlock_enumerator)(x509_t *this);
|
||||
};
|
||||
|
||||
#endif /** X509_H_ @}*/
|
||||
|
||||
@@ -1323,6 +1323,14 @@ static enumerator_t* create_crl_uri_enumerator(private_x509_cert_t *this)
|
||||
return this->crl_uris->create_enumerator(this->crl_uris);
|
||||
}
|
||||
|
||||
/**
|
||||
* Implementation of x509_cert_t.create_ipAddrBlock_enumerator.
|
||||
*/
|
||||
static enumerator_t* create_ipAddrBlock_enumerator(private_x509_cert_t *this)
|
||||
{
|
||||
return this->ipAddrBlocks->create_enumerator(this->ipAddrBlocks);
|
||||
}
|
||||
|
||||
/**
|
||||
* Implementation of certificate_t.destroy.
|
||||
*/
|
||||
@@ -1379,6 +1387,7 @@ static private_x509_cert_t* create_empty(void)
|
||||
this->public.interface.create_subjectAltName_enumerator = (enumerator_t* (*)(x509_t*))create_subjectAltName_enumerator;
|
||||
this->public.interface.create_crl_uri_enumerator = (enumerator_t* (*)(x509_t*))create_crl_uri_enumerator;
|
||||
this->public.interface.create_ocsp_uri_enumerator = (enumerator_t* (*)(x509_t*))create_ocsp_uri_enumerator;
|
||||
this->public.interface.create_ipAddrBlock_enumerator = (enumerator_t* (*)(x509_t*))create_ipAddrBlock_enumerator;
|
||||
|
||||
this->encoding = chunk_empty;
|
||||
this->encoding_hash = chunk_empty;
|
||||
|
||||
Reference in New Issue
Block a user