]> git.saurik.com Git - apple/ipsec.git/blobdiff - ipsec-tools/racoon/crypto_cssm.h
ipsec-258.100.1.tar.gz
[apple/ipsec.git] / ipsec-tools / racoon / crypto_cssm.h
index e56a5f27a6d33e9ff14c90a2e352c6b4da43dc4d..aa17d590d30bb8888b503d336309d9fdd2e4c560 100644 (file)
 #include <CoreFoundation/CoreFoundation.h>
 #include <Security/SecBase.h>
 
-#if TARGET_OS_EMBEDDED
+
 extern int crypto_cssm_check_x509cert (cert_t *hostcert, cert_t *certchain, CFStringRef hostname, SecKeyRef *publicKeyRef);
-extern int crypto_cssm_verify_x509sign(SecKeyRef publicKeyRef, vchar_t *hash, vchar_t *signature);
-#else
-extern int crypto_cssm_check_x509cert(cert_t *hostcert, cert_t *certchain, CFStringRef hostname);
-#endif
-extern SecCertificateRef crypto_cssm_x509cert_get_SecCertificateRef (vchar_t *cert);
+extern int crypto_cssm_verify_x509sign(SecKeyRef publicKeyRef, vchar_t *hash, vchar_t *signature, Boolean useSHA1);
+extern SecCertificateRef crypto_cssm_x509cert_CreateSecCertificateRef (vchar_t *cert);
 extern vchar_t* crypto_cssm_getsign(CFDataRef persistentCertRef, vchar_t* hash);
 extern vchar_t* crypto_cssm_get_x509cert(CFDataRef persistentCertRef, cert_status_t *certStatus);
 extern const char *GetSecurityErrorString(OSStatus err);
+extern CFDataRef crypto_cssm_CopySubjectSequence(SecCertificateRef certRef);
 
 #endif /* __CRYPTO_CSSM_H__ */