• Home
  • Raw
  • Download

Lines Matching refs:digest

319                                               struct digestdata *digest)  in Curl_auth_decode_digest_http_message()  argument
325 if(digest->input_token) { in Curl_auth_decode_digest_http_message()
354 Curl_auth_digest_cleanup(digest); in Curl_auth_decode_digest_http_message()
360 digest->input_token = (BYTE *) Curl_memdup(chlg, chlglen + 1); in Curl_auth_decode_digest_http_message()
361 if(!digest->input_token) in Curl_auth_decode_digest_http_message()
364 digest->input_token_len = chlglen; in Curl_auth_decode_digest_http_message()
394 struct digestdata *digest, in Curl_auth_create_digest_http_message() argument
430 if((userp && !digest->user) || (!userp && digest->user) || in Curl_auth_create_digest_http_message()
431 (passwdp && !digest->passwd) || (!passwdp && digest->passwd) || in Curl_auth_create_digest_http_message()
432 (userp && digest->user && strcmp(userp, digest->user)) || in Curl_auth_create_digest_http_message()
433 (passwdp && digest->passwd && strcmp(passwdp, digest->passwd))) { in Curl_auth_create_digest_http_message()
434 if(digest->http_context) { in Curl_auth_create_digest_http_message()
435 s_pSecFn->DeleteSecurityContext(digest->http_context); in Curl_auth_create_digest_http_message()
436 Curl_safefree(digest->http_context); in Curl_auth_create_digest_http_message()
438 Curl_safefree(digest->user); in Curl_auth_create_digest_http_message()
439 Curl_safefree(digest->passwd); in Curl_auth_create_digest_http_message()
442 if(digest->http_context) { in Curl_auth_create_digest_http_message()
462 status = s_pSecFn->MakeSignature(digest->http_context, 0, &chlg_desc, 0); in Curl_auth_create_digest_http_message()
468 s_pSecFn->DeleteSecurityContext(digest->http_context); in Curl_auth_create_digest_http_message()
469 Curl_safefree(digest->http_context); in Curl_auth_create_digest_http_message()
473 if(!digest->http_context) { in Curl_auth_create_digest_http_message()
484 Curl_safefree(digest->user); in Curl_auth_create_digest_http_message()
485 Curl_safefree(digest->passwd); in Curl_auth_create_digest_http_message()
495 if(Curl_override_sspi_http_realm((const char *) digest->input_token, in Curl_auth_create_digest_http_message()
509 digest->user = strdup(userp); in Curl_auth_create_digest_http_message()
511 if(!digest->user) { in Curl_auth_create_digest_http_message()
518 digest->passwd = strdup(passwdp); in Curl_auth_create_digest_http_message()
520 if(!digest->passwd) { in Curl_auth_create_digest_http_message()
522 Curl_safefree(digest->user); in Curl_auth_create_digest_http_message()
545 chlg_buf[0].pvBuffer = digest->input_token; in Curl_auth_create_digest_http_message()
546 chlg_buf[0].cbBuffer = curlx_uztoul(digest->input_token_len); in Curl_auth_create_digest_http_message()
573 digest->http_context = calloc(1, sizeof(CtxtHandle)); in Curl_auth_create_digest_http_message()
574 if(!digest->http_context) in Curl_auth_create_digest_http_message()
582 digest->http_context, in Curl_auth_create_digest_http_message()
599 Curl_safefree(digest->http_context); in Curl_auth_create_digest_http_message()
647 void Curl_auth_digest_cleanup(struct digestdata *digest) in Curl_auth_digest_cleanup() argument
650 Curl_safefree(digest->input_token); in Curl_auth_digest_cleanup()
653 digest->input_token_len = 0; in Curl_auth_digest_cleanup()
656 if(digest->http_context) { in Curl_auth_digest_cleanup()
657 s_pSecFn->DeleteSecurityContext(digest->http_context); in Curl_auth_digest_cleanup()
658 Curl_safefree(digest->http_context); in Curl_auth_digest_cleanup()
662 Curl_safefree(digest->user); in Curl_auth_digest_cleanup()
663 Curl_safefree(digest->passwd); in Curl_auth_digest_cleanup()