1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-27 18:02:13 +03:00

Manual merge of mysql-5.1-bugteam into mysql-trunk-merge.

This commit is contained in:
Alexey Kopytov
2009-12-11 19:40:58 +03:00
56 changed files with 1925 additions and 344 deletions

View File

@ -26,15 +26,15 @@ class SQL_CRYPT :public Sql_alloc
struct rand_struct rand,org_rand;
char decode_buff[256],encode_buff[256];
uint shift;
void crypt_init(ulong *seed);
public:
SQL_CRYPT(const char *seed, uint length);
SQL_CRYPT() {}
SQL_CRYPT(ulong *seed)
{
crypt_init(seed);
init(seed);
}
~SQL_CRYPT() {}
void init() { shift=0; rand=org_rand; }
void init(ulong *seed);
void reinit() { shift=0; rand=org_rand; }
void encode(char *str, uint length);
void decode(char *str, uint length);
};