]> git.saurik.com Git - apple/security.git/blobdiff - sec/securityd/SecTrustStoreServer.h
Security-55471.14.18.tar.gz
[apple/security.git] / sec / securityd / SecTrustStoreServer.h
index e8bcd7a766411c836d3f67b4b017b36e67ecd862..e51cb1def80505366ce1e14048cf0e78c7d2d1f1 100644 (file)
 
 #include <Security/SecTrustStore.h>
 #include <CoreFoundation/CFArray.h>
+#include <CoreFoundation/CFError.h>
 
-#if defined(__cplusplus)
-extern "C" {
-#endif
+__BEGIN_DECLS
 
-SecTrustStoreRef SecTrustStoreForDomainName(CFStringRef domain);
+SecTrustStoreRef SecTrustStoreForDomainName(CFStringRef domainName, CFErrorRef *error);
 
-OSStatus _SecTrustStoreSetTrustSettings(SecTrustStoreRef ts,
+bool _SecTrustStoreSetTrustSettings(SecTrustStoreRef ts,
        SecCertificateRef certificate,
-    CFTypeRef trustSettingsDictOrArray);
+    CFTypeRef trustSettingsDictOrArray, CFErrorRef *error);
 
-OSStatus SecTrustStoreRemoveCertificateWithDigest(SecTrustStoreRef ts, CFDataRef digest);
+bool SecTrustStoreRemoveCertificateWithDigest(SecTrustStoreRef ts, CFDataRef digest, CFErrorRef *error);
 
-bool _SecTrustStoreRemoveAll(SecTrustStoreRef ts);
+bool _SecTrustStoreRemoveAll(SecTrustStoreRef ts, CFErrorRef *error);
 
 CFArrayRef SecTrustStoreCopyParents(SecTrustStoreRef ts,
-    SecCertificateRef certificate);
+    SecCertificateRef certificate, CFErrorRef *error);
 
-bool SecTrustStoreContainsCertificateWithDigest(SecTrustStoreRef source, CFDataRef digest);
+bool SecTrustStoreContainsCertificateWithDigest(SecTrustStoreRef source, CFDataRef digest, bool *contains, CFErrorRef *error);
 
 
-#if defined(__cplusplus)
-}
-#endif
+__END_DECLS
 
 #endif /* !_SECURITY_SECTRUSTSTORESERVER_H_ */