diff options
author | Andreas Steffen <andreas.steffen@strongswan.org> | 2009-11-04 07:30:07 +0100 |
---|---|---|
committer | Andreas Steffen <andreas.steffen@strongswan.org> | 2009-11-04 07:30:07 +0100 |
commit | fae322219f9025fe75b4225d6f174b2096cd60e6 (patch) | |
tree | 619c229a89deb4f997d2b6f95033b44d4266c3b4 /src/libstrongswan/plugins/x509/x509_cert.c | |
parent | 5d1d7e82b5094c6be9f6cf143ea8bcd2332e9c4b (diff) | |
download | strongswan-fae322219f9025fe75b4225d6f174b2096cd60e6.tar.bz2 strongswan-fae322219f9025fe75b4225d6f174b2096cd60e6.tar.xz |
output optional pathLenConstraint in ipsec listcacerts
Diffstat (limited to 'src/libstrongswan/plugins/x509/x509_cert.c')
-rw-r--r-- | src/libstrongswan/plugins/x509/x509_cert.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/libstrongswan/plugins/x509/x509_cert.c b/src/libstrongswan/plugins/x509/x509_cert.c index b10317093..0147e78c6 100644 --- a/src/libstrongswan/plugins/x509/x509_cert.c +++ b/src/libstrongswan/plugins/x509/x509_cert.c @@ -1135,6 +1135,14 @@ static chunk_t get_authKeyIdentifier(private_x509_cert_t *this) } /** + * Implementation of x509_t.get_pathLenConstraint. + */ +static int get_pathLenConstraint(private_x509_cert_t *this) +{ + return this->pathLenConstraint; +} + +/** * Implementation of x509_cert_t.create_subjectAltName_enumerator. */ static enumerator_t* create_subjectAltName_enumerator(private_x509_cert_t *this) @@ -1209,6 +1217,7 @@ static private_x509_cert_t* create_empty(void) this->public.interface.get_serial = (chunk_t (*)(x509_t*))get_serial; this->public.interface.get_subjectKeyIdentifier = (chunk_t (*)(x509_t*))get_subjectKeyIdentifier; this->public.interface.get_authKeyIdentifier = (chunk_t (*)(x509_t*))get_authKeyIdentifier; + this->public.interface.get_pathLenConstraint = (int (*)(x509_t*))get_pathLenConstraint; 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; |