• Home
  • Raw
  • Download

Lines Matching refs:ntlm

581                                              struct ntlmdata *ntlm,  in Curl_sasl_create_ntlm_type1_message()  argument
592 Curl_sasl_ntlm_cleanup(ntlm); in Curl_sasl_create_ntlm_type1_message()
600 ntlm->token_max = SecurityPackage->cbMaxToken; in Curl_sasl_create_ntlm_type1_message()
606 ntlm->output_token = malloc(ntlm->token_max); in Curl_sasl_create_ntlm_type1_message()
607 if(!ntlm->output_token) in Curl_sasl_create_ntlm_type1_message()
614 result = Curl_create_sspi_identity(userp, passwdp, &ntlm->identity); in Curl_sasl_create_ntlm_type1_message()
619 ntlm->p_identity = &ntlm->identity; in Curl_sasl_create_ntlm_type1_message()
623 ntlm->p_identity = NULL; in Curl_sasl_create_ntlm_type1_message()
626 ntlm->credentials = malloc(sizeof(CredHandle)); in Curl_sasl_create_ntlm_type1_message()
627 if(!ntlm->credentials) in Curl_sasl_create_ntlm_type1_message()
630 memset(ntlm->credentials, 0, sizeof(CredHandle)); in Curl_sasl_create_ntlm_type1_message()
636 ntlm->p_identity, NULL, NULL, in Curl_sasl_create_ntlm_type1_message()
637 ntlm->credentials, &expiry); in Curl_sasl_create_ntlm_type1_message()
642 ntlm->context = malloc(sizeof(CtxtHandle)); in Curl_sasl_create_ntlm_type1_message()
643 if(!ntlm->context) in Curl_sasl_create_ntlm_type1_message()
646 memset(ntlm->context, 0, sizeof(CtxtHandle)); in Curl_sasl_create_ntlm_type1_message()
653 type_1_buf.pvBuffer = ntlm->output_token; in Curl_sasl_create_ntlm_type1_message()
654 type_1_buf.cbBuffer = curlx_uztoul(ntlm->token_max); in Curl_sasl_create_ntlm_type1_message()
657 status = s_pSecFn->InitializeSecurityContext(ntlm->credentials, NULL, in Curl_sasl_create_ntlm_type1_message()
661 ntlm->context, &type_1_desc, in Curl_sasl_create_ntlm_type1_message()
665 s_pSecFn->CompleteAuthToken(ntlm->context, &type_1_desc); in Curl_sasl_create_ntlm_type1_message()
670 return Curl_base64_encode(NULL, (char *) ntlm->output_token, in Curl_sasl_create_ntlm_type1_message()
689 struct ntlmdata *ntlm) in Curl_sasl_decode_ntlm_type2_message() argument
714 ntlm->input_token = type2; in Curl_sasl_decode_ntlm_type2_message()
715 ntlm->input_token_len = type2_len; in Curl_sasl_decode_ntlm_type2_message()
741 struct ntlmdata *ntlm, in Curl_sasl_create_ntlm_type3_message() argument
761 type_2_buf.pvBuffer = ntlm->input_token; in Curl_sasl_create_ntlm_type3_message()
762 type_2_buf.cbBuffer = curlx_uztoul(ntlm->input_token_len); in Curl_sasl_create_ntlm_type3_message()
769 type_3_buf.pvBuffer = ntlm->output_token; in Curl_sasl_create_ntlm_type3_message()
770 type_3_buf.cbBuffer = curlx_uztoul(ntlm->token_max); in Curl_sasl_create_ntlm_type3_message()
773 status = s_pSecFn->InitializeSecurityContext(ntlm->credentials, in Curl_sasl_create_ntlm_type3_message()
774 ntlm->context, in Curl_sasl_create_ntlm_type3_message()
778 0, ntlm->context, in Curl_sasl_create_ntlm_type3_message()
789 result = Curl_base64_encode(data, (char *) ntlm->output_token, in Curl_sasl_create_ntlm_type3_message()
792 Curl_sasl_ntlm_cleanup(ntlm); in Curl_sasl_create_ntlm_type3_message()
807 void Curl_sasl_ntlm_cleanup(struct ntlmdata *ntlm) in Curl_sasl_ntlm_cleanup() argument
810 if(ntlm->context) { in Curl_sasl_ntlm_cleanup()
811 s_pSecFn->DeleteSecurityContext(ntlm->context); in Curl_sasl_ntlm_cleanup()
812 free(ntlm->context); in Curl_sasl_ntlm_cleanup()
813 ntlm->context = NULL; in Curl_sasl_ntlm_cleanup()
817 if(ntlm->credentials) { in Curl_sasl_ntlm_cleanup()
818 s_pSecFn->FreeCredentialsHandle(ntlm->credentials); in Curl_sasl_ntlm_cleanup()
819 free(ntlm->credentials); in Curl_sasl_ntlm_cleanup()
820 ntlm->credentials = NULL; in Curl_sasl_ntlm_cleanup()
824 Curl_sspi_free_identity(ntlm->p_identity); in Curl_sasl_ntlm_cleanup()
825 ntlm->p_identity = NULL; in Curl_sasl_ntlm_cleanup()
828 Curl_safefree(ntlm->input_token); in Curl_sasl_ntlm_cleanup()
829 Curl_safefree(ntlm->output_token); in Curl_sasl_ntlm_cleanup()
832 ntlm->token_max = 0; in Curl_sasl_ntlm_cleanup()