summaryrefslogtreecommitdiff
path: root/sql/sql_crypt.h
diff options
context:
space:
mode:
authorAlexey Kopytov <Alexey.Kopytov@Sun.com>2009-12-11 19:40:58 +0300
committerAlexey Kopytov <Alexey.Kopytov@Sun.com>2009-12-11 19:40:58 +0300
commit72b2943594036ce9f737dbe81cf32505970fd063 (patch)
treead3ff84791c35c7d8b2d47a60f0ea4cb409a0a31 /sql/sql_crypt.h
parent69cfd5c8ecd20bca0e651efcbb8b5affc24c1af4 (diff)
parentb358f61bc76e79e872c587bda7f953180a01125e (diff)
downloadmariadb-git-72b2943594036ce9f737dbe81cf32505970fd063.tar.gz
Manual merge of mysql-5.1-bugteam into mysql-trunk-merge.
Diffstat (limited to 'sql/sql_crypt.h')
-rw-r--r--sql/sql_crypt.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/sql/sql_crypt.h b/sql/sql_crypt.h
index 8d5a761cbdf..dd1cba9ee0c 100644
--- a/sql/sql_crypt.h
+++ b/sql/sql_crypt.h
@@ -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);
};