mirror of
https://github.com/codership/wsrep-lib.git
synced 2025-07-28 20:02:00 +03:00
codership/mariadb-wsrep#27 Galera cache encryption
* Implemented encryption callback and enc_set_key * Added pure virtual functions for encryption functionality * Set enc key if provider was not loaded on time
This commit is contained in:
@ -369,6 +369,21 @@ namespace wsrep
|
||||
enum wsrep::provider::status
|
||||
wait_for_gtid(const wsrep::gtid&, int timeout) const;
|
||||
|
||||
/**
|
||||
* Set encryption key
|
||||
*
|
||||
* @param key Encryption key
|
||||
*
|
||||
* @return Zero on success, non-zero on failure.
|
||||
*/
|
||||
int set_encryption_key(std::vector<unsigned char>& key);
|
||||
|
||||
/**
|
||||
* Return encryption key.
|
||||
*/
|
||||
const std::vector<unsigned char>& get_encryption_key() const
|
||||
{ return encryption_key_; }
|
||||
|
||||
/**
|
||||
* Perform a causal read in the cluster. After the call returns,
|
||||
* all the causally preceding write sets have been committed
|
||||
@ -583,6 +598,7 @@ namespace wsrep
|
||||
, incoming_address_(incoming_address)
|
||||
, address_(address)
|
||||
, working_dir_(working_dir)
|
||||
, encryption_key_()
|
||||
, max_protocol_version_(max_protocol_version)
|
||||
, rollback_mode_(rollback_mode)
|
||||
, connected_gtid_()
|
||||
@ -664,6 +680,7 @@ namespace wsrep
|
||||
std::string incoming_address_;
|
||||
std::string address_;
|
||||
std::string working_dir_;
|
||||
std::vector<unsigned char> encryption_key_;
|
||||
int max_protocol_version_;
|
||||
enum rollback_mode rollback_mode_;
|
||||
wsrep::gtid connected_gtid_;
|
||||
|
Reference in New Issue
Block a user