summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorChad MILLER <chad@mysql.com>2009-03-12 13:32:13 -0400
committerChad MILLER <chad@mysql.com>2009-03-12 13:32:13 -0400
commit510e9ddf36df94421f20e760225d69304f7a35f3 (patch)
treeb1f4bd6f14f3d63baf2c6957bce2b7c78da87b64 /client
parentb5804db3930ef25f417c2e61e311b7c787df45df (diff)
parent81e4e1e79cc56be4fe9b86f23a30e81ba9f9f110 (diff)
downloadmariadb-git-510e9ddf36df94421f20e760225d69304f7a35f3.tar.gz
Merge bug fix and upstream.
Diffstat (limited to 'client')
-rw-r--r--client/mysqlmanager-pwgen.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/client/mysqlmanager-pwgen.c b/client/mysqlmanager-pwgen.c
index 7a857c59743..568358b1cda 100644
--- a/client/mysqlmanager-pwgen.c
+++ b/client/mysqlmanager-pwgen.c
@@ -134,7 +134,6 @@ void get_pass(char* pw, int len)
int main(int argc, char** argv)
{
FILE* fp;
- my_MD5_CTX context;
uchar digest[16];
char pw[17];
uint i;
@@ -147,9 +146,7 @@ int main(int argc, char** argv)
if (!(fp=fopen(outfile,"w")))
die("Could not open '%s'(errno=%d)",outfile,errno);
get_pass(pw,sizeof(pw)-1);
- my_MD5Init(&context);
- my_MD5Update(&context,(uchar*) pw,sizeof(pw)-1);
- my_MD5Final(digest,&context);
+ MY_MD5_HASH(digest,(uchar*) pw,sizeof(pw)-1);
fprintf(fp,"%s:",user);
for (i=0;i<sizeof(digest);i++)
fprintf(fp,"%02x",digest[i]);