X-Git-Url: https://git.saurik.com/apple/security.git/blobdiff_plain/b1ab9ed8d0e0f1c3b66d7daa8fd5564444c56195..80e2389990082500d76eb566d4946be3e786c3ef:/sec/securityd/SecTrustStoreServer.h diff --git a/sec/securityd/SecTrustStoreServer.h b/sec/securityd/SecTrustStoreServer.h index e8bcd7a7..e51cb1de 100644 --- a/sec/securityd/SecTrustStoreServer.h +++ b/sec/securityd/SecTrustStoreServer.h @@ -31,29 +31,26 @@ #include #include +#include -#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_ */