26#ifndef MYSQL_HARNESS_KEYRING_MANAGER_INCLUDED
27#define MYSQL_HARNESS_KEYRING_MANAGER_INCLUDED
49HARNESS_EXPORT
bool init_keyring(
const std::string &keyring_file_path,
50 const std::string &master_key_path,
51 bool create_if_needed);
64 const std::string &master_key,
65 bool create_if_needed);
Keyring interface.
Definition: keyring.h:41
HARNESS_EXPORT void reset_keyring() noexcept
Clears the keyring singleton.
Definition: keyring_manager.cc:215
HARNESS_EXPORT void flush_keyring()
Saves the keyring contents to disk.
Definition: keyring_manager.cc:208
static const int kMaxKeyringKeyLength
Definition: keyring_manager.h:37
HARNESS_EXPORT Keyring * get_keyring() noexcept
Gets a previously initialized singleton instance of the keyring.
Definition: keyring_manager.cc:213
HARNESS_EXPORT bool init_keyring(const std::string &keyring_file_path, const std::string &master_key_path, bool create_if_needed)
Initialize an instance of a keyring to be used in the application from the contents of a file,...
Definition: keyring_manager.cc:146
HARNESS_EXPORT bool init_keyring_with_key(const std::string &keyring_file_path, const std::string &master_key, bool create_if_needed)
Initialize an instance of a keyring to be used in the application from the contents of a file,...
Definition: keyring_manager.cc:187