mirror of
https://github.com/3proxy/3proxy.git
synced 2026-10-25 01:21:58 +00:00
Fix: blake crypt
This commit is contained in:
parent
760a521df8
commit
7ddea44ffd
1 changed files with 1 additions and 2 deletions
|
|
@ -151,8 +151,7 @@ unsigned char * mycrypt(const unsigned char *pw, const unsigned char *salt, unsi
|
|||
sp = salt +3;
|
||||
sl = (int)(ep - sp);
|
||||
magic = (unsigned char *)"$3$";
|
||||
|
||||
blake2b(final, MD5_SIZE, pw, strlen((char *)pw), salt, strlen((char *)salt) );
|
||||
blake2b(final, MD5_SIZE, pw, strlen((char *)pw), sp, sl);
|
||||
}
|
||||
else {
|
||||
*passwd = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue