Lines Matching refs:digest
325 struct digestdata *digest) in Curl_auth_decode_digest_http_message() argument
331 if(digest->input_token) { in Curl_auth_decode_digest_http_message()
360 Curl_auth_digest_cleanup(digest); in Curl_auth_decode_digest_http_message()
366 digest->input_token = (BYTE *) Curl_memdup(chlg, chlglen + 1); in Curl_auth_decode_digest_http_message()
367 if(!digest->input_token) in Curl_auth_decode_digest_http_message()
370 digest->input_token_len = chlglen; in Curl_auth_decode_digest_http_message()
400 struct digestdata *digest, in Curl_auth_create_digest_http_message() argument
437 if((userp && !digest->user) || (!userp && digest->user) || in Curl_auth_create_digest_http_message()
438 (passwdp && !digest->passwd) || (!passwdp && digest->passwd) || in Curl_auth_create_digest_http_message()
439 (userp && digest->user && Curl_timestrcmp(userp, digest->user)) || in Curl_auth_create_digest_http_message()
440 (passwdp && digest->passwd && Curl_timestrcmp(passwdp, digest->passwd))) { in Curl_auth_create_digest_http_message()
441 if(digest->http_context) { in Curl_auth_create_digest_http_message()
442 Curl_pSecFn->DeleteSecurityContext(digest->http_context); in Curl_auth_create_digest_http_message()
443 Curl_safefree(digest->http_context); in Curl_auth_create_digest_http_message()
445 Curl_safefree(digest->user); in Curl_auth_create_digest_http_message()
446 Curl_safefree(digest->passwd); in Curl_auth_create_digest_http_message()
449 if(digest->http_context) { in Curl_auth_create_digest_http_message()
469 status = Curl_pSecFn->MakeSignature(digest->http_context, 0, &chlg_desc, in Curl_auth_create_digest_http_message()
476 Curl_pSecFn->DeleteSecurityContext(digest->http_context); in Curl_auth_create_digest_http_message()
477 Curl_safefree(digest->http_context); in Curl_auth_create_digest_http_message()
481 if(!digest->http_context) { in Curl_auth_create_digest_http_message()
492 Curl_safefree(digest->user); in Curl_auth_create_digest_http_message()
493 Curl_safefree(digest->passwd); in Curl_auth_create_digest_http_message()
503 if(Curl_override_sspi_http_realm((const char *) digest->input_token, in Curl_auth_create_digest_http_message()
517 digest->user = strdup(userp); in Curl_auth_create_digest_http_message()
519 if(!digest->user) { in Curl_auth_create_digest_http_message()
526 digest->passwd = strdup(passwdp); in Curl_auth_create_digest_http_message()
528 if(!digest->passwd) { in Curl_auth_create_digest_http_message()
530 Curl_safefree(digest->user); in Curl_auth_create_digest_http_message()
553 chlg_buf[0].pvBuffer = digest->input_token; in Curl_auth_create_digest_http_message()
554 chlg_buf[0].cbBuffer = curlx_uztoul(digest->input_token_len); in Curl_auth_create_digest_http_message()
581 digest->http_context = calloc(1, sizeof(CtxtHandle)); in Curl_auth_create_digest_http_message()
582 if(!digest->http_context) in Curl_auth_create_digest_http_message()
590 digest->http_context, in Curl_auth_create_digest_http_message()
607 Curl_safefree(digest->http_context); in Curl_auth_create_digest_http_message()
657 void Curl_auth_digest_cleanup(struct digestdata *digest) in Curl_auth_digest_cleanup() argument
660 Curl_safefree(digest->input_token); in Curl_auth_digest_cleanup()
663 digest->input_token_len = 0; in Curl_auth_digest_cleanup()
666 if(digest->http_context) { in Curl_auth_digest_cleanup()
667 Curl_pSecFn->DeleteSecurityContext(digest->http_context); in Curl_auth_digest_cleanup()
668 Curl_safefree(digest->http_context); in Curl_auth_digest_cleanup()
672 Curl_safefree(digest->user); in Curl_auth_digest_cleanup()
673 Curl_safefree(digest->passwd); in Curl_auth_digest_cleanup()