MXS-1662: Move mxs_crypt into utils

Moved the mxs_crypt function into utils and renamed to mxs::crypt (no C
code used it).
This commit is contained in:
Markus Mäkelä
2018-09-10 15:19:18 +03:00
parent d2f31aab0a
commit 40d73948a9
3 changed files with 26 additions and 17 deletions

View File

@ -557,6 +557,16 @@ uint64_t get_byteN(const uint8_t* ptr, int bytes);
*/
uint8_t* set_byteN(uint8_t* ptr, uint64_t value, int bytes);
/**
* C++ wrapper function for the `crypt` password hashing
*
* @param password Password to hash
* @param salt Salt to use (see man crypt)
*
* @return The hashed password
*/
std::string crypt(const std::string& password, const std::string& salt);
/**
* Get kernel version
*