@@ -132,10 +132,10 @@ int ntlm_client_set_hostname(
132132static void free_credentials (ntlm_client * ntlm )
133133{
134134 if (ntlm -> password )
135- memzero (ntlm -> password , strlen (ntlm -> password ));
135+ ntlm_memzero (ntlm -> password , strlen (ntlm -> password ));
136136
137137 if (ntlm -> password_utf16 )
138- memzero (ntlm -> password_utf16 , ntlm -> password_utf16_len );
138+ ntlm_memzero (ntlm -> password_utf16 , ntlm -> password_utf16_len );
139139
140140 free (ntlm -> username );
141141 free (ntlm -> username_upper );
@@ -1125,7 +1125,7 @@ static bool generate_lm2_response(ntlm_client *ntlm,
11251125 size_t lm2_len = 16 ;
11261126 uint64_t local_nonce ;
11271127
1128- local_nonce = htonll (ntlm -> nonce );
1128+ local_nonce = ntlm_htonll (ntlm -> nonce );
11291129
11301130 if (!ntlm_hmac_ctx_reset (ntlm -> hmac_ctx ) ||
11311131 !ntlm_hmac_md5_init (ntlm -> hmac_ctx ,
@@ -1197,8 +1197,8 @@ static bool generate_ntlm2_response(ntlm_client *ntlm)
11971197
11981198 /* the blob's integer values are in network byte order */
11991199 signature = htonl (0x01010000 );
1200- timestamp = htonll (ntlm -> timestamp );
1201- nonce = htonll (ntlm -> nonce );
1200+ timestamp = ntlm_htonll (ntlm -> timestamp );
1201+ nonce = ntlm_htonll (ntlm -> nonce );
12021202
12031203 /* construct the blob */
12041204 memcpy (& blob [0 ], & signature , 4 );
0 commit comments