diff options
author | hemagx <hemagx2@gmail.com> | 2016-02-17 14:26:01 +0200 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2016-07-12 20:58:34 +0200 |
commit | 732c6d6019d608f9f0e151ec75c48fcc498d4f51 (patch) | |
tree | 85691162dcea7fad5c050cf3414bed2e77cc33f9 /src/login/lclif.c | |
parent | ad05eb4f2e531f5a9aec6f27d2f69fd53b6525ac (diff) | |
download | hercules-732c6d6019d608f9f0e151ec75c48fcc498d4f51.tar.gz hercules-732c6d6019d608f9f0e151ec75c48fcc498d4f51.tar.bz2 hercules-732c6d6019d608f9f0e151ec75c48fcc498d4f51.tar.xz hercules-732c6d6019d608f9f0e151ec75c48fcc498d4f51.zip |
Interface md5calc.c
Diffstat (limited to 'src/login/lclif.c')
-rw-r--r-- | src/login/lclif.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/login/lclif.c b/src/login/lclif.c index 9515c5940..3ed257e85 100644 --- a/src/login/lclif.c +++ b/src/login/lclif.c @@ -86,7 +86,7 @@ enum parsefunc_rcode lclif_parse_CA_LOGIN(int fd, struct login_session_data *sd) safestrncpy(sd->passwd, packet->password, PASSWD_LEN); if (login->config->use_md5_passwds) - MD5_String(sd->passwd, sd->passwd); + md5->string(sd->passwd, sd->passwd); sd->passwdenc = PWENC_NONE; login->client_login(fd, sd); @@ -160,7 +160,7 @@ enum parsefunc_rcode lclif_parse_CA_LOGIN_PCBANG(int fd, struct login_session_da safestrncpy(sd->passwd, packet->password, PASSWD_LEN); if (login->config->use_md5_passwds) - MD5_String(sd->passwd, sd->passwd); + md5->string(sd->passwd, sd->passwd); sd->passwdenc = PWENC_NONE; login->client_login(fd, sd); @@ -183,7 +183,7 @@ enum parsefunc_rcode lclif_parse_CA_LOGIN_HAN(int fd, struct login_session_data safestrncpy(sd->passwd, packet->password, PASSWD_LEN); if (login->config->use_md5_passwds) - MD5_String(sd->passwd, sd->passwd); + md5->string(sd->passwd, sd->passwd); sd->passwdenc = PWENC_NONE; login->client_login(fd, sd); @@ -209,7 +209,7 @@ enum parsefunc_rcode lclif_parse_CA_SSO_LOGIN_REQ(int fd, struct login_session_d safestrncpy(sd->passwd, packet->t1, min(tokenlen + 1, PASSWD_LEN)); // Variable-length field, don't copy more than necessary if (login->config->use_md5_passwds) - MD5_String(sd->passwd, sd->passwd); + md5->string(sd->passwd, sd->passwd); sd->passwdenc = PWENC_NONE; login->client_login(fd, sd); @@ -222,7 +222,7 @@ enum parsefunc_rcode lclif_parse_CA_REQ_HASH(int fd, struct login_session_data * { memset(sd->md5key, '\0', sizeof(sd->md5key)); sd->md5keylen = (uint16)(12 + rnd() % 4); - MD5_Salt(sd->md5keylen, sd->md5key); + md5->salt(sd->md5keylen, sd->md5key); lclif->coding_key(fd, sd); return PACKET_VALID; |