diff options
Diffstat (limited to 'cpp/src/IceSSL/Util.h')
-rw-r--r-- | cpp/src/IceSSL/Util.h | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/cpp/src/IceSSL/Util.h b/cpp/src/IceSSL/Util.h index 855e0ac71b8..3e98050ee35 100644 --- a/cpp/src/IceSSL/Util.h +++ b/cpp/src/IceSSL/Util.h @@ -150,27 +150,23 @@ toCFString(const std::string& s) std::string errorToString(CFErrorRef); std::string errorToString(OSStatus); +#if !defined(__APPLE__) || TARGET_OS_IPHONE == 0 // // Retrieve a certificate property // CFDictionaryRef getCertificateProperty(SecCertificateRef, CFTypeRef); - -// -// Read a private key from an file and associate it to the given certificate. -// -SecIdentityRef loadPrivateKey(const std::string&, SecCertificateRef, SecKeychainRef, const std::string&, - const PasswordPromptPtr&, int); +#endif // // Read certificate from a file. // -CFArrayRef loadCertificateChain(const std::string&, const std::string&, SecKeychainRef, const std::string&, - const PasswordPromptPtr&, int); +CFArrayRef loadCertificateChain(const std::string&, const std::string&, const std::string&, const std::string&, + const std::string&, const PasswordPromptPtr&, int); SecCertificateRef loadCertificate(const std::string&); CFArrayRef loadCACertificates(const std::string&); -SecCertificateRef findCertificate(SecKeychainRef, const std::string&); +CFArrayRef findCertificateChain(const std::string&, const std::string&, const std::string&); #elif defined(ICE_USE_SCHANNEL) std::vector<PCCERT_CONTEXT> |