From e787d0855b51a47f10547d0346faa7fe6def5064 Mon Sep 17 00:00:00 2001 From: Jose Date: Tue, 21 Oct 2014 11:33:27 +0200 Subject: OS X 10.10 SSL configuration fixes --- cpp/test/IceSSL/configuration/Util.h | 53 ------------------------------------ 1 file changed, 53 deletions(-) delete mode 100644 cpp/test/IceSSL/configuration/Util.h (limited to 'cpp/test/IceSSL/configuration/Util.h') diff --git a/cpp/test/IceSSL/configuration/Util.h b/cpp/test/IceSSL/configuration/Util.h deleted file mode 100644 index e34fa3c4e86..00000000000 --- a/cpp/test/IceSSL/configuration/Util.h +++ /dev/null @@ -1,53 +0,0 @@ - -#include - -#ifdef ICE_USE_SECURE_TRANSPORT - -#include - -namespace Test -{ - -int -getcwd(std::string& cwd) -{ - char cwdbuf[PATH_MAX]; - if(::getcwd(cwdbuf, PATH_MAX) == NULL) - { - return -1; - } - cwd = cwdbuf; - return 0; -} - -} - -void -removeKeychain(const std::string& keychainPath, const std::string& password) -{ - // - // KeyChain path is relative to the current working directory. - // - std::string path = keychainPath; - if(path.find("/") != 0) - { - std::string cwd; - if(Test::getcwd(cwd) == 0) - { - path = std::string(cwd) + '/' + path; - } - } - - SecKeychainRef keychain; - OSStatus err = SecKeychainOpen(path.c_str(), &keychain); - if(err == noErr) - { - err = SecKeychainUnlock(keychain, password.size(), password.c_str(), true); - if(err == noErr) - { - err = SecKeychainDelete(keychain); - } - CFRelease(keychain); - } -} -#endif \ No newline at end of file -- cgit v1.2.3