diff options
author | Martin Willi <martin@revosec.ch> | 2010-12-15 14:29:25 +0000 |
---|---|---|
committer | Martin Willi <martin@revosec.ch> | 2011-01-05 16:46:02 +0100 |
commit | 5a0caa4b3a9431eb8ced8ed00292b88a341d4e8e (patch) | |
tree | baa910b18a96fd6e64defcbab190e1e8edbac78d /src/libstrongswan/credentials/certificates/x509.h | |
parent | 5122fa1e028c7a7e7aa83812dd1ce4f924dc3c38 (diff) | |
download | strongswan-5a0caa4b3a9431eb8ced8ed00292b88a341d4e8e.tar.bz2 strongswan-5a0caa4b3a9431eb8ced8ed00292b88a341d4e8e.tar.xz |
Added policyMappings support to x509 plugin
Diffstat (limited to 'src/libstrongswan/credentials/certificates/x509.h')
-rw-r--r-- | src/libstrongswan/credentials/certificates/x509.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/libstrongswan/credentials/certificates/x509.h b/src/libstrongswan/credentials/certificates/x509.h index 6f054f82a..b0f361edb 100644 --- a/src/libstrongswan/credentials/certificates/x509.h +++ b/src/libstrongswan/credentials/certificates/x509.h @@ -28,6 +28,7 @@ typedef struct x509_t x509_t; typedef struct x509_cert_policy_t x509_cert_policy_t; +typedef struct x509_policy_mapping_t x509_policy_mapping_t; typedef enum x509_flag_t x509_flag_t; /** @@ -67,6 +68,16 @@ struct x509_cert_policy_t { }; /** + * X.509 policyMapping extension + */ +struct x509_policy_mapping_t { + /** OID of issuerDomainPolicy */ + chunk_t issuer; + /** OID of subjectDomainPolicy */ + chunk_t subject; +}; + +/** * X.509 certificate interface. * * This interface adds additional methods to the certificate_t type to @@ -156,6 +167,13 @@ struct x509_t { * @return enumerator over x509_cert_policy_t */ enumerator_t* (*create_cert_policy_enumerator)(x509_t *this); + + /** + * Create an enumerator over policy mappings. + * + * @return enumerator over x509_policy_mapping + */ + enumerator_t* (*create_policy_mapping_enumerator)(x509_t *this); }; #endif /** X509_H_ @}*/ |