libavformat/httpauth.c File Reference

#include "httpauth.h"
#include "libavutil/base64.h"
#include "libavutil/avstring.h"
#include "internal.h"
#include "libavutil/random_seed.h"
#include "libavutil/md5.h"
#include "avformat.h"
#include <ctype.h>

Go to the source code of this file.

Functions

static void parse_key_value (const char *params, void(*callback_get_buf)(HTTPAuthState *state, const char *key, int key_len, char **dest, int *dest_len), HTTPAuthState *state)
static void handle_basic_params (HTTPAuthState *state, const char *key, int key_len, char **dest, int *dest_len)
static void handle_digest_params (HTTPAuthState *state, const char *key, int key_len, char **dest, int *dest_len)
static void handle_digest_update (HTTPAuthState *state, const char *key, int key_len, char **dest, int *dest_len)
static void choose_qop (char *qop, int size)
void ff_http_auth_handle_header (HTTPAuthState *state, const char *key, const char *value)
static void update_md5_strings (struct AVMD5 *md5ctx,...)
static char * make_digest_auth (HTTPAuthState *state, const char *username, const char *password, const char *uri, const char *method)
char * ff_http_auth_create_response (HTTPAuthState *state, const char *auth, const char *path, const char *method)


Function Documentation

static void choose_qop ( char *  qop,
int  size 
) [static]

Definition at line 130 of file httpauth.c.

Referenced by ff_http_auth_handle_header().

char* ff_http_auth_create_response ( HTTPAuthState state,
const char *  auth,
const char *  path,
const char *  method 
)

Definition at line 288 of file httpauth.c.

Referenced by http_connect().

void ff_http_auth_handle_header ( HTTPAuthState state,
const char *  key,
const char *  value 
)

Definition at line 143 of file httpauth.c.

Referenced by process_line().

static void handle_basic_params ( HTTPAuthState state,
const char *  key,
int  key_len,
char **  dest,
int *  dest_len 
) [static]

Definition at line 87 of file httpauth.c.

Referenced by ff_http_auth_handle_header().

static void handle_digest_params ( HTTPAuthState state,
const char *  key,
int  key_len,
char **  dest,
int *  dest_len 
) [static]

Definition at line 96 of file httpauth.c.

Referenced by ff_http_auth_handle_header().

static void handle_digest_update ( HTTPAuthState state,
const char *  key,
int  key_len,
char **  dest,
int *  dest_len 
) [static]

Definition at line 119 of file httpauth.c.

Referenced by ff_http_auth_handle_header().

static char* make_digest_auth ( HTTPAuthState state,
const char *  username,
const char *  password,
const char *  uri,
const char *  method 
) [static]

Definition at line 183 of file httpauth.c.

Referenced by ff_http_auth_create_response().

static void parse_key_value ( const char *  params,
void(*)(HTTPAuthState *state, const char *key, int key_len, char **dest, int *dest_len)  callback_get_buf,
HTTPAuthState state 
) [static]

Definition at line 31 of file httpauth.c.

Referenced by ff_http_auth_handle_header().

static void update_md5_strings ( struct AVMD5 md5ctx,
  ... 
) [static]

Definition at line 168 of file httpauth.c.

Referenced by make_digest_auth().


Generated on Fri Oct 26 02:36:54 2012 for FFmpeg by  doxygen 1.5.8