#include "curl_setup.h"#include <curl/curl.h>#include "vauth/vauth.h"#include "vauth/digest.h"#include "urldata.h"#include "curl_base64.h"#include "curl_hmac.h"#include "curl_md5.h"#include "vtls/vtls.h"#include "warnless.h"#include "strtok.h"#include "strcase.h"#include "non-ascii.h"#include "curl_printf.h"#include "rand.h"#include "curl_memory.h"#include "memdebug.h"
Go to the source code of this file.
Defines | |
| #define | CURL_OUTPUT_DIGEST_CONV(a, b) |
| #define | DIGEST_QOP_VALUE_AUTH (1 << 0) |
| #define | DIGEST_QOP_VALUE_AUTH_CONF (1 << 2) |
| #define | DIGEST_QOP_VALUE_AUTH_INT (1 << 1) |
| #define | DIGEST_QOP_VALUE_STRING_AUTH "auth" |
| #define | DIGEST_QOP_VALUE_STRING_AUTH_CONF "auth-conf" |
| #define | DIGEST_QOP_VALUE_STRING_AUTH_INT "auth-int" |
Functions | |
| static CURLcode | auth_decode_digest_md5_message (const char *chlg64, char *nonce, size_t nlen, char *realm, size_t rlen, char *alg, size_t alen, char *qop, size_t qlen) |
| static bool | auth_digest_get_key_value (const char *chlg, const char *key, char *value, size_t max_val_len, char end_char) |
| static CURLcode | auth_digest_get_qop_values (const char *options, int *value) |
| static void | auth_digest_md5_to_ascii (unsigned char *source, unsigned char *dest) |
| static char * | auth_digest_string_quoted (const char *source) |
| CURLcode | Curl_auth_create_digest_http_message (struct Curl_easy *data, const char *userp, const char *passwdp, const unsigned char *request, const unsigned char *uripath, struct digestdata *digest, char **outptr, size_t *outlen) |
| CURLcode | Curl_auth_create_digest_md5_message (struct Curl_easy *data, const char *chlg64, const char *userp, const char *passwdp, const char *service, char **outptr, size_t *outlen) |
| CURLcode | Curl_auth_decode_digest_http_message (const char *chlg, struct digestdata *digest) |
| void | Curl_auth_digest_cleanup (struct digestdata *digest) |
| bool | Curl_auth_digest_get_pair (const char *str, char *value, char *content, const char **endptr) |
| bool | Curl_auth_is_digest_supported (void) |
| #define CURL_OUTPUT_DIGEST_CONV | ( | a, | |
| b | |||
| ) |
| #define DIGEST_QOP_VALUE_AUTH (1 << 0) |
| #define DIGEST_QOP_VALUE_AUTH_CONF (1 << 2) |
| #define DIGEST_QOP_VALUE_AUTH_INT (1 << 1) |
| #define DIGEST_QOP_VALUE_STRING_AUTH "auth" |
| #define DIGEST_QOP_VALUE_STRING_AUTH_CONF "auth-conf" |
| #define DIGEST_QOP_VALUE_STRING_AUTH_INT "auth-int" |
| static CURLcode auth_decode_digest_md5_message | ( | const char * | chlg64, |
| char * | nonce, | ||
| size_t | nlen, | ||
| char * | realm, | ||
| size_t | rlen, | ||
| char * | alg, | ||
| size_t | alen, | ||
| char * | qop, | ||
| size_t | qlen | ||
| ) | [static] |
| static bool auth_digest_get_key_value | ( | const char * | chlg, |
| const char * | key, | ||
| char * | value, | ||
| size_t | max_val_len, | ||
| char | end_char | ||
| ) | [static] |
| static CURLcode auth_digest_get_qop_values | ( | const char * | options, |
| int * | value | ||
| ) | [static] |
| static void auth_digest_md5_to_ascii | ( | unsigned char * | source, |
| unsigned char * | dest | ||
| ) | [static] |
| static char* auth_digest_string_quoted | ( | const char * | source | ) | [static] |
| CURLcode Curl_auth_create_digest_http_message | ( | struct Curl_easy * | data, |
| const char * | userp, | ||
| const char * | passwdp, | ||
| const unsigned char * | request, | ||
| const unsigned char * | uripath, | ||
| struct digestdata * | digest, | ||
| char ** | outptr, | ||
| size_t * | outlen | ||
| ) |
| CURLcode Curl_auth_create_digest_md5_message | ( | struct Curl_easy * | data, |
| const char * | chlg64, | ||
| const char * | userp, | ||
| const char * | passwdp, | ||
| const char * | service, | ||
| char ** | outptr, | ||
| size_t * | outlen | ||
| ) |
| CURLcode Curl_auth_decode_digest_http_message | ( | const char * | chlg, |
| struct digestdata * | digest | ||
| ) |
| void Curl_auth_digest_cleanup | ( | struct digestdata * | digest | ) |
| bool Curl_auth_digest_get_pair | ( | const char * | str, |
| char * | value, | ||
| char * | content, | ||
| const char ** | endptr | ||
| ) |
| bool Curl_auth_is_digest_supported | ( | void | ) |