Lines Matching refs:ntlm

160                                          struct ntlmdata *ntlm)  in ntlm_decode_type2_target()  argument
183 free(ntlm->target_info); /* replace any previous data */ in ntlm_decode_type2_target()
184 ntlm->target_info = Curl_memdup(&type2[target_info_offset], in ntlm_decode_type2_target()
186 if(!ntlm->target_info) in ntlm_decode_type2_target()
191 ntlm->target_info_len = target_info_len; in ntlm_decode_type2_target()
243 struct ntlmdata *ntlm) in Curl_auth_decode_ntlm_type2_message() argument
271 ntlm->flags = 0; in Curl_auth_decode_ntlm_type2_message()
281 ntlm->flags = Curl_read32_le(&type2[20]); in Curl_auth_decode_ntlm_type2_message()
282 memcpy(ntlm->nonce, &type2[24], 8); in Curl_auth_decode_ntlm_type2_message()
284 if(ntlm->flags & NTLMFLAG_NEGOTIATE_TARGET_INFO) { in Curl_auth_decode_ntlm_type2_message()
285 result = ntlm_decode_type2_target(data, type2ref, ntlm); in Curl_auth_decode_ntlm_type2_message()
293 fprintf(stderr, "**** TYPE2 header flags=0x%08.8lx ", ntlm->flags); in Curl_auth_decode_ntlm_type2_message()
294 ntlm_print_flags(stderr, ntlm->flags); in Curl_auth_decode_ntlm_type2_message()
296 ntlm_print_hex(stderr, (char *)ntlm->nonce, 8); in Curl_auth_decode_ntlm_type2_message()
338 struct ntlmdata *ntlm, in Curl_auth_create_ntlm_type1_message() argument
372 Curl_auth_cleanup_ntlm(ntlm); in Curl_auth_create_ntlm_type1_message()
457 struct ntlmdata *ntlm, in Curl_auth_create_ntlm_type3_message() argument
488 bool unicode = (ntlm->flags & NTLMFLAG_NEGOTIATE_UNICODE); in Curl_auth_create_ntlm_type3_message()
518 if(ntlm->flags & NTLMFLAG_NEGOTIATE_NTLM2_KEY) { in Curl_auth_create_ntlm_type3_message()
542 &ntlm->nonce[0], lmresp); in Curl_auth_create_ntlm_type3_message()
548 ntlm, &ntlmv2resp, &ntresplen); in Curl_auth_create_ntlm_type3_message()
565 Curl_ntlm_core_lm_resp(ntbuffer, &ntlm->nonce[0], ntresp); in Curl_auth_create_ntlm_type3_message()
571 Curl_ntlm_core_lm_resp(lmbuffer, &ntlm->nonce[0], lmresp); in Curl_auth_create_ntlm_type3_message()
572 ntlm->flags &= ~(unsigned int)NTLMFLAG_NEGOTIATE_NTLM2_KEY; in Curl_auth_create_ntlm_type3_message()
667 LONGQUARTET(ntlm->flags)); in Curl_auth_create_ntlm_type3_message()
701 LONGQUARTET(ntlm->flags), ntlm->flags); in Curl_auth_create_ntlm_type3_message()
702 ntlm_print_flags(stderr, ntlm->flags); in Curl_auth_create_ntlm_type3_message()
740 Curl_auth_cleanup_ntlm(ntlm); in Curl_auth_create_ntlm_type3_message()
755 void Curl_auth_cleanup_ntlm(struct ntlmdata *ntlm) in Curl_auth_cleanup_ntlm() argument
758 Curl_safefree(ntlm->target_info); in Curl_auth_cleanup_ntlm()
761 ntlm->target_info_len = 0; in Curl_auth_cleanup_ntlm()