aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan/plugins/openssl
diff options
context:
space:
mode:
authorMartin Willi <martin@revosec.ch>2010-12-15 17:45:32 +0100
committerMartin Willi <martin@revosec.ch>2011-01-05 16:46:02 +0100
commita742d97fb8e2ecf54750a6c50e2827b93c1d650c (patch)
tree85e0e3106c94bdf87144710f049b366794a263f6 /src/libstrongswan/plugins/openssl
parent5dba5852fcaa965cfc0adb0c2a756814af2c1885 (diff)
downloadstrongswan-a742d97fb8e2ecf54750a6c50e2827b93c1d650c.tar.bz2
strongswan-a742d97fb8e2ecf54750a6c50e2827b93c1d650c.tar.xz
Added support for policyConstraints to x509 plugin
Diffstat (limited to 'src/libstrongswan/plugins/openssl')
-rw-r--r--src/libstrongswan/plugins/openssl/openssl_x509.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/libstrongswan/plugins/openssl/openssl_x509.c b/src/libstrongswan/plugins/openssl/openssl_x509.c
index 7b6ac121f..58b58b6df 100644
--- a/src/libstrongswan/plugins/openssl/openssl_x509.c
+++ b/src/libstrongswan/plugins/openssl/openssl_x509.c
@@ -277,6 +277,12 @@ METHOD(x509_t, get_pathLenConstraint, int,
return this->pathlen;
}
+METHOD(x509_t, get_policyConstraint, int,
+ private_openssl_x509_t *this, bool inhibit)
+{
+ return X509_NO_CONSTRAINT;
+}
+
METHOD(x509_t, create_subjectAltName_enumerator, enumerator_t*,
private_openssl_x509_t *this)
{
@@ -568,6 +574,7 @@ static private_openssl_x509_t *create_empty()
.get_subjectKeyIdentifier = _get_subjectKeyIdentifier,
.get_authKeyIdentifier = _get_authKeyIdentifier,
.get_pathLenConstraint = _get_pathLenConstraint,
+ .get_policyConstraint = _get_policyConstraint,
.create_subjectAltName_enumerator = _create_subjectAltName_enumerator,
.create_crl_uri_enumerator = _create_crl_uri_enumerator,
.create_ocsp_uri_enumerator = _create_ocsp_uri_enumerator,