summaryrefslogtreecommitdiff
path: root/contrib/keychain-mcd/cert_data.h
diff options
context:
space:
mode:
authorAlberto Gonzalez Iniesta <agi@inittab.org>2016-12-27 18:25:47 +0100
committerAlberto Gonzalez Iniesta <agi@inittab.org>2016-12-27 18:25:47 +0100
commit3a2bbdb05ca6a6996e424c9fb225cb0d53804125 (patch)
treef29063da5bec4caf3853d49a22a09c8619eebd21 /contrib/keychain-mcd/cert_data.h
parentd53dba59e78da865c4fe820386ff2f4f76925f3b (diff)
New upstream version 2.4.0upstream/2.4.0
Diffstat (limited to 'contrib/keychain-mcd/cert_data.h')
-rw-r--r--contrib/keychain-mcd/cert_data.h15
1 files changed, 10 insertions, 5 deletions
diff --git a/contrib/keychain-mcd/cert_data.h b/contrib/keychain-mcd/cert_data.h
index 407cca1..c5f83c0 100644
--- a/contrib/keychain-mcd/cert_data.h
+++ b/contrib/keychain-mcd/cert_data.h
@@ -30,17 +30,22 @@
typedef struct _CertData
{
- CFArrayRef subject;
- CFArrayRef issuer;
- CFStringRef serial;
- CFStringRef md5, sha1;
+ CFArrayRef subject;
+ CFArrayRef issuer;
+ CFStringRef serial;
+ CFStringRef md5, sha1;
} CertData, *CertDataRef;
CertDataRef createCertDataFromCertificate(SecCertificateRef certificate);
+
CertDataRef createCertDataFromString(const char *description);
+
void destroyCertData(CertDataRef pCertData);
+
bool certDataMatchesTemplate(CertDataRef pCertData, CertDataRef pTemplate);
+
void printCertData(CertDataRef pCertData);
+
SecIdentityRef findIdentity(CertDataRef pCertDataTemplate);
-#endif
+#endif /* ifndef __cert_data_h__ */