133 #ifndef OPENTXS_CORE_CRYPTO_OTKEYRING_HPP
134 #define OPENTXS_CORE_CRYPTO_OTKEYRING_HPP
194 const std::string& str_display);
198 const std::string& str_display);
201 const std::string& str_display);
204 #if defined(OT_KEYRING_WINDOWS) && defined(_WIN32)
205 EXPORT
static bool Windows_StoreSecret(
const OTString& strUser,
207 const std::string& str_display);
209 EXPORT
static bool Windows_RetrieveSecret(
const OTString& strUser,
211 const std::string& str_display);
213 EXPORT
static bool Windows_DeleteSecret(
const OTString& strUser,
214 const std::string& str_display);
216 #elif defined(OT_KEYRING_MAC) && defined(__APPLE__)
217 static bool Mac_StoreSecret(
const OTString& strUser,
219 const std::string& str_display);
221 static bool Mac_RetrieveSecret(
const OTString& strUser,
223 const std::string& str_display);
225 static bool Mac_DeleteSecret(
const OTString& strUser,
226 const std::string& str_display);
228 #elif defined(OT_KEYRING_IOS) && defined(__APPLE__)
229 static bool IOS_StoreSecret(
const OTString& strUser,
231 const std::string& str_display);
233 static bool IOS_RetrieveSecret(
const OTString& strUser,
235 const std::string& str_display);
237 static bool IOS_DeleteSecret(
const OTString& strUser,
238 const std::string& str_display);
240 #elif defined(OT_KEYRING_GNOME)
241 static bool Gnome_StoreSecret(
const OTString& strUser,
243 const std::string& str_display);
245 static bool Gnome_RetrieveSecret(
const OTString& strUser,
247 const std::string& str_display);
249 static bool Gnome_DeleteSecret(
const OTString& strUser,
250 const std::string& str_display);
252 #elif defined(OT_KEYRING_KWALLET)
253 static KWallet::Wallet* s_pWallet;
254 static KApplication* s_pApp;
255 static bool KWallet_StoreSecret(
const OTString& strUser,
257 const std::string& str_display);
259 static bool KWallet_RetrieveSecret(
const OTString& strUser,
261 const std::string& str_display);
263 static bool KWallet_DeleteSecret(
const OTString& strUser,
264 const std::string& str_display);
265 #elif defined(OT_KEYRING_FLATFILE) // Do not use! Unsafe! For testing only!
266 static bool FlatFile_StoreSecret(
const OTString& strUser,
268 const std::string& str_display);
270 static bool FlatFile_RetrieveSecret(
const OTString& strUser,
272 const std::string& str_display);
274 static bool FlatFile_DeleteSecret(
const OTString& strUser,
275 const std::string& str_display);
278 EXPORT
static void FlatFile_SetPasswordFolder(std::string folder);
279 EXPORT
static const char* FlatFile_GetPasswordFolder();
282 EXPORT
static std::string s_str_passwd_folder;
291 #endif // OPENTXS_CORE_CRYPTO_OTKEYRING_HPP
static EXPORT bool RetrieveSecret(const OTString &strUser, OTPassword &thePassword, const std::string &str_display)
static EXPORT bool DeleteSecret(const OTString &strUser, const std::string &str_display)
static EXPORT bool StoreSecret(const OTString &strUser, const OTPassword &thePassword, const std::string &str_display)