#include "setup.h"#include <stdio.h>#include <string.h>#include <stdarg.h>#include <stdlib.h>#include <ctype.h>#include "urldata.h"#include "sendf.h"#include "strequal.h"#include "base64.h"#include "md5.h"#include "http_digest.h"#include "strtok.h"#include "url.h"#include "memory.h"#include "easyif.h"#include <curl/mprintf.h>#include "memdebug.h"Go to the source code of this file.
Defines | |
| #define | _MPRINTF_REPLACE |
| #define | CURL_OUTPUT_DIGEST_CONV(a, b) |
Functions | |
| CURLdigest | Curl_input_digest (struct connectdata *conn, bool proxy, char *header) |
| static void | md5_to_ascii (unsigned char *source, unsigned char *dest) |
| CURLcode | Curl_output_digest (struct connectdata *conn, bool proxy, unsigned char *request, unsigned char *uripath) |
| void | Curl_digest_cleanup_one (struct digestdata *d) |
| void | Curl_digest_cleanup (struct SessionHandle *data) |
| #define _MPRINTF_REPLACE |
Definition at line 44 of file http_digest.c.
Referenced by Curl_output_digest().
| void Curl_digest_cleanup | ( | struct SessionHandle * | data | ) |
Definition at line 498 of file http_digest.c.
References Curl_digest_cleanup_one(), UrlState::digest, UrlState::proxydigest, and SessionHandle::state.
Referenced by Curl_close().
| void Curl_digest_cleanup_one | ( | struct digestdata * | d | ) |
Definition at line 466 of file http_digest.c.
References digestdata::algo, digestdata::algorithm, digestdata::cnonce, CURLDIGESTALGO_MD5, FALSE, free, digestdata::nc, digestdata::nonce, NULL, digestdata::opaque, digestdata::qop, digestdata::realm, and digestdata::stale.
Referenced by Curl_digest_cleanup(), and Curl_input_digest().
| CURLdigest Curl_input_digest | ( | struct connectdata * | conn, | |
| bool | proxy, | |||
| char * | header | |||
| ) |
Definition at line 57 of file http_digest.c.
References digestdata::algo, digestdata::algorithm, checkprefix, Curl_digest_cleanup_one(), CURLDIGEST_BAD, CURLDIGEST_BADALGO, CURLDIGEST_FINE, CURLDIGEST_NOMEM, CURLDIGEST_NONE, CURLDIGESTALGO_MD5, CURLDIGESTALGO_MD5SESS, connectdata::data, UrlState::digest, FALSE, free, ISSPACE, digestdata::nc, digestdata::nonce, NULL, digestdata::opaque, UrlState::proxydigest, digestdata::qop, digestdata::realm, digestdata::stale, SessionHandle::state, strdup, strequal, strtok_r, and TRUE.
Referenced by Curl_http_input_auth().
| CURLcode Curl_output_digest | ( | struct connectdata * | conn, | |
| bool | proxy, | |||
| unsigned char * | request, | |||
| unsigned char * | uripath | |||
| ) |
Definition at line 213 of file http_digest.c.
References digestdata::algo, digestdata::algorithm, connectdata::allocptr, UrlState::authhost, UrlState::authproxy, digestdata::cnonce, Curl_base64_encode(), Curl_md5it(), CURL_OUTPUT_DIGEST_CONV, Curl_safefree(), Curl_tvnow, CURLDIGESTALGO_MD5SESS, CURLE_OK, CURLE_OUT_OF_MEMORY, connectdata::data, UrlState::digest, auth::done, FALSE, free, malloc, md5_to_ascii(), digestdata::nc, digestdata::nonce, NULL, digestdata::opaque, connectdata::passwd, UrlState::proxydigest, connectdata::proxypasswd, connectdata::proxyuser, connectdata::dynamically_allocated_data::proxyuserpwd, digestdata::qop, realloc, digestdata::realm, SessionHandle::state, strequal, TRUE, timeval::tv_sec, connectdata::user, and connectdata::dynamically_allocated_data::userpwd.
Referenced by Curl_http_output_auth().
| static void md5_to_ascii | ( | unsigned char * | source, | |
| unsigned char * | dest | |||
| ) | [static] |
1.5.6