Changeset 746 for vendor/current/libcli/auth/smbencrypt.c
- Timestamp:
- Nov 27, 2012, 4:56:06 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vendor/current/libcli/auth/smbencrypt.c
r740 r746 100 100 void E_md5hash(const uint8_t salt[16], const uint8_t nthash[16], uint8_t hash_out[16]) 101 101 { 102 struct MD5Contexttctx;102 MD5_CTX tctx; 103 103 MD5Init(&tctx); 104 104 MD5Update(&tctx, salt, 16); … … 169 169 bool ntv2_owf_gen(const uint8_t owf[16], 170 170 const char *user_in, const char *domain_in, 171 bool upper_case_domain, /* Transform the domain into UPPER case */172 171 uint8_t kr_buf[16]) 173 172 { … … 197 196 talloc_free(mem_ctx); 198 197 return false; 199 }200 201 if (upper_case_domain) {202 domain_in = strupper_talloc(mem_ctx, domain_in);203 if (domain_in == NULL) {204 talloc_free(mem_ctx);205 return false;206 }207 198 } 208 199 … … 475 466 This prevents username swapping during the auth exchange 476 467 */ 477 if (!ntv2_owf_gen(nt_hash, user, domain, true,ntlm_v2_hash)) {468 if (!ntv2_owf_gen(nt_hash, user, domain, ntlm_v2_hash)) { 478 469 return false; 479 470 } … … 624 615 void encode_or_decode_arc4_passwd_buffer(unsigned char pw_buf[532], const DATA_BLOB *psession_key) 625 616 { 626 struct MD5Contexttctx;617 MD5_CTX tctx; 627 618 unsigned char key_out[16]; 628 619 … … 704 695 { 705 696 uint8_t buffer[516]; 706 struct MD5Contextctx;697 MD5_CTX ctx; 707 698 struct wkssvc_PasswordBuffer *my_pwd_buf = NULL; 708 699 DATA_BLOB confounded_session_key; … … 742 733 { 743 734 uint8_t buffer[516]; 744 struct MD5Contextctx;735 MD5_CTX ctx; 745 736 size_t pwd_len; 746 737
Note:
See TracChangeset
for help on using the changeset viewer.