aboutsummaryrefslogtreecommitdiffstats
path: root/Source/lib/crypto/certificate.h
diff options
context:
space:
mode:
authorMartin Willi <martin@strongswan.org>2006-04-18 07:22:20 +0000
committerMartin Willi <martin@strongswan.org>2006-04-18 07:22:20 +0000
commit1d025fbceaa9fcff02f2977251dea3d9b5b57e61 (patch)
treec4f472655deedd9e538e4954336ac8c186b73879 /Source/lib/crypto/certificate.h
parent1ab689ee601e90e08b8383da6040b72437c94da6 (diff)
downloadstrongswan-1d025fbceaa9fcff02f2977251dea3d9b5b57e61.tar.bz2
strongswan-1d025fbceaa9fcff02f2977251dea3d9b5b57e61.tar.xz
- using asn1 pluto stuff now
Diffstat (limited to 'Source/lib/crypto/certificate.h')
-rwxr-xr-xSource/lib/crypto/certificate.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/lib/crypto/certificate.h b/Source/lib/crypto/certificate.h
index 2b5459efb..8dc88e033 100755
--- a/Source/lib/crypto/certificate.h
+++ b/Source/lib/crypto/certificate.h
@@ -26,6 +26,8 @@
#include <types.h>
#include <definitions.h>
#include <crypto/rsa/rsa_public_key.h>
+#include <utils/identification.h>
+#include <utils/iterator.h>
typedef struct certificate_t certificate_t;
@@ -47,6 +49,14 @@ struct certificate_t {
* @return public_key
*/
rsa_public_key_t *(*get_public_key) (certificate_t *this);
+
+ identification_t *(*get_issuer) (certificate_t *this);
+ identification_t *(*get_subject) (certificate_t *this);
+ iterator_t *(*create_subjectaltname_iter) (certificate_t *this);
+ iterator_t *(*create_issueraltname_iter) (certificate_t *this);
+ bool (*belongs_to) (certificate_t *this, identification_t *subject);
+ bool (*issued_by) (certificate_t *this, identification_t *issuer);
+ bool (*validate) (certificate_t *this, rsa_public_key_t *signer);
/**
* @brief Destroys the private key.