#include "ydef.h"
Go to the source code of this file.
Classes | |
struct | HASH_SUM |
Macros | |
#define | HTTP_AUTH_MD5_SIZE 16 |
#define | HTTP_AUTH_MD5_STRLEN (HTTP_AUTH_MD5_SIZE*2) |
Functions | |
void | bin2str (char *to, const u8 *p, u16 len, u8 addnull) |
int | CheckWSAuth (u32 nonce, const u8 *ha1, const u8 *to_verify, u8 *out) |
void | ComputeAuthHA1 (u8 *buf, const char *user, const char *pass, const char *realm) |
void | ComputeAuthHA2 (u8 *buf, const char *method, const char *url) |
void | ComputeAuthResponse (char *buf, const u8 *ha1, const char *nonce, const char *nc, const char *cnonce, const u8 *ha2) |
void | MD5AddData (HASH_SUM *theSum, const u8 *data, u32 len) |
void | MD5Calculate (HASH_SUM *theSum, u8 *result) |
void | MD5Initialize (HASH_SUM *theSum) |
void | yDigestAuthorization (char *buf, int bufsize, const char *user, const char *realm, const u8 *ha1, const char *nonce, const char *opaque, u32 *nc, const char *method, const char *uri) |
void | yInitPsk (const char *pass, const char *ssid) |
int | yIterPsk (u8 *res, const char *ssid) |
int | yParseWWWAuthenticate (char *replybuf, int replysize, char **method, char **realm, char **qop, char **nonce, char **opaque) |
u8 * | ySHA1 (const char *text) |
#define HTTP_AUTH_MD5_STRLEN (HTTP_AUTH_MD5_SIZE*2) |
int CheckWSAuth | ( | u32 | nonce, |
const u8 * | ha1, | ||
const u8 * | to_verify, | ||
u8 * | out | ||
) |
void ComputeAuthHA1 | ( | u8 * | buf, |
const char * | user, | ||
const char * | pass, | ||
const char * | realm | ||
) |
void ComputeAuthHA2 | ( | u8 * | buf, |
const char * | method, | ||
const char * | url | ||
) |
void ComputeAuthResponse | ( | char * | buf, |
const u8 * | ha1, | ||
const char * | nonce, | ||
const char * | nc, | ||
const char * | cnonce, | ||
const u8 * | ha2 | ||
) |
void MD5AddData | ( | HASH_SUM * | theSum, |
const u8 * | data, | ||
u32 | len | ||
) |
void MD5Calculate | ( | HASH_SUM * | theSum, |
u8 * | result | ||
) |
void yDigestAuthorization | ( | char * | buf, |
int | bufsize, | ||
const char * | user, | ||
const char * | realm, | ||
const u8 * | ha1, | ||
const char * | nonce, | ||
const char * | opaque, | ||
u32 * | nc, | ||
const char * | method, | ||
const char * | uri | ||
) |
int yParseWWWAuthenticate | ( | char * | replybuf, |
int | replysize, | ||
char ** | method, | ||
char ** | realm, | ||
char ** | qop, | ||
char ** | nonce, | ||
char ** | opaque | ||
) |