Added certificatePolicy support to x509 plugin
[strongswan.git] / src / libstrongswan / plugins / openssl / openssl_x509.c
index 80e421a..3326ffd 100644 (file)
@@ -321,13 +321,6 @@ METHOD(x509_t, create_ocsp_uri_enumerator, enumerator_t*,
        return this->ocsp_uris->create_enumerator(this->ocsp_uris);
 }
 
-METHOD(x509_t, create_ipAddrBlock_enumerator, enumerator_t*,
-       private_openssl_x509_t *this)
-{
-       /* TODO */
-       return enumerator_create_empty();
-}
-
 METHOD(certificate_t, get_type, certificate_type_t,
        private_openssl_x509_t *this)
 {
@@ -578,8 +571,9 @@ static private_openssl_x509_t *create_empty()
                                .create_subjectAltName_enumerator = _create_subjectAltName_enumerator,
                                .create_crl_uri_enumerator = _create_crl_uri_enumerator,
                                .create_ocsp_uri_enumerator = _create_ocsp_uri_enumerator,
-                               .create_ipAddrBlock_enumerator = _create_ipAddrBlock_enumerator,
+                               .create_ipAddrBlock_enumerator = (void*)enumerator_create_empty,
                                .create_name_constraint_enumerator = (void*)enumerator_create_empty,
+                               .create_cert_policy_enumerator = (void*)enumerator_create_empty,
                        },
                },
                .subjectAltNames = linked_list_create(),