mirror of
https://github.com/proxytunnel/proxytunnel.git
synced 2026-01-23 02:34:59 +00:00
Replace deprecated functions bzero/bcopy by memset/memcpy.
This commit is contained in:
parent
abb82a7807
commit
e999ab0acd
1 changed files with 4 additions and 4 deletions
8
ntlm.c
8
ntlm.c
|
|
@ -294,10 +294,10 @@ unsigned char digest[16]; /* caller digest to be filled in */
|
|||
*/
|
||||
|
||||
/* start out by storing key in pads */
|
||||
bzero( k_ipad, sizeof k_ipad);
|
||||
bzero( k_opad, sizeof k_opad);
|
||||
bcopy( key, k_ipad, key_len);
|
||||
bcopy( key, k_opad, key_len);
|
||||
memset(k_ipad, 0, sizeof(k_ipad));
|
||||
memset(k_opad, 0, sizeof(k_opad));
|
||||
memcpy(k_ipad, key, key_len);
|
||||
memcpy(k_opad, key, key_len);
|
||||
|
||||
/* XOR key with ipad and opad values */
|
||||
for (i=0; i<64; i++) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue