Defines | Functions
digest.c File Reference
#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"
Include dependency graph for digest.c:

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 Documentation

#define CURL_OUTPUT_DIGEST_CONV (   a,
 
)
Value:
result = Curl_convert_to_network(a, (char *)b, strlen((const char *)b)); \
  if(result) { \
    free(b); \
    return result; \
  }

Definition at line 62 of file digest.c.

#define DIGEST_QOP_VALUE_AUTH   (1 << 0)

Definition at line 50 of file digest.c.

#define DIGEST_QOP_VALUE_AUTH_CONF   (1 << 2)

Definition at line 52 of file digest.c.

#define DIGEST_QOP_VALUE_AUTH_INT   (1 << 1)

Definition at line 51 of file digest.c.

#define DIGEST_QOP_VALUE_STRING_AUTH   "auth"

Definition at line 54 of file digest.c.

#define DIGEST_QOP_VALUE_STRING_AUTH_CONF   "auth-conf"

Definition at line 56 of file digest.c.

#define DIGEST_QOP_VALUE_STRING_AUTH_INT   "auth-int"

Definition at line 55 of file digest.c.


Function Documentation

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]

Definition at line 256 of file digest.c.

static bool auth_digest_get_key_value ( const char *  chlg,
const char *  key,
char *  value,
size_t  max_val_len,
char  end_char 
) [static]

Definition at line 182 of file digest.c.

static CURLcode auth_digest_get_qop_values ( const char *  options,
int *  value 
) [static]

Definition at line 204 of file digest.c.

static void auth_digest_md5_to_ascii ( unsigned char *  source,
unsigned char *  dest 
) [static]

Definition at line 139 of file digest.c.

static char* auth_digest_string_quoted ( const char *  source) [static]

Definition at line 148 of file digest.c.

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 
)

Definition at line 662 of file digest.c.

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 
)

Definition at line 342 of file digest.c.

CURLcode Curl_auth_decode_digest_http_message ( const char *  chlg,
struct digestdata digest 
)

Definition at line 515 of file digest.c.

void Curl_auth_digest_cleanup ( struct digestdata digest)

Definition at line 885 of file digest.c.

bool Curl_auth_digest_get_pair ( const char *  str,
char *  value,
char *  content,
const char **  endptr 
)

Definition at line 70 of file digest.c.

Definition at line 318 of file digest.c.



rc_visard_driver
Author(s): Heiko Hirschmueller , Christian Emmerich , Felix Ruess
autogenerated on Thu Jun 6 2019 20:43:08