Şu kodu;
std::string mysql_hash_password(const char* tmp_pwd)
{
char hash_buf[2 * SHA1_HASH_SIZE + 2] = "";
#ifdef WIN32
my_make_scrambled_password(hash_buf, tmp_pwd, strlen(tmp_pwd));
#else
ma_make_scrambled_password(hash_buf, tmp_pwd);
#endif
return hash_buf;
}
Şöyle...