44 void bin2str(
char *to,
const u8 *p, u16 len,u8 addnull);
48 #define HTTP_AUTH_MD5_SIZE 16 49 #define HTTP_AUTH_MD5_STRLEN (HTTP_AUTH_MD5_SIZE*2) 51 void ComputeAuthHA1(u8 *buf,
const char *user,
const char *pass,
const char *realm);
52 void ComputeAuthHA2(u8 *buf,
const char *method,
const char *url) ;
53 void ComputeAuthResponse(
char *buf,
const u8 * ha1,
const char *nonce,
const char *nc,
const char *cnonce,
const u8 *ha2);
54 int CheckWSAuth(u32 nonce,
const u8 *ha1,
const u8 *to_verify, u8 *out);
60 int yParseWWWAuthenticate(
char *replybuf,
int replysize,
char **method,
char **realm,
char **qop,
char **nonce,
char **opaque);
63 void yDigestAuthorization(
char *buf,
int bufsize,
const char *user,
const char *realm,
const u8 *ha1,
64 const char *nonce,
const char *opaque, u32 *nc,
const char *method,
const char *uri);
68 void yInitPsk(
const char *pass,
const char *ssid);
69 int yIterPsk(u8 *res,
const char *ssid);
70 u8 *
ySHA1(
const char *text);
void ComputeAuthHA2(u8 *buf, const char *method, const char *url)
void ComputeAuthHA1(u8 *buf, const char *user, const char *pass, const char *realm)
int yParseWWWAuthenticate(char *replybuf, int replysize, char **method, char **realm, char **qop, char **nonce, char **opaque)
int CheckWSAuth(u32 nonce, const u8 *ha1, const u8 *to_verify, u8 *out)
void bin2str(char *to, const u8 *p, u16 len, u8 addnull)
void MD5AddData(HASH_SUM *theSum, const u8 *data, u32 len)
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)
u8 * ySHA1(const char *text)
int yIterPsk(u8 *res, const char *ssid)
void ComputeAuthResponse(char *buf, const u8 *ha1, const char *nonce, const char *nc, const char *cnonce, const u8 *ha2)
void yInitPsk(const char *pass, const char *ssid)
void MD5Calculate(HASH_SUM *theSum, u8 *result)
void MD5Initialize(HASH_SUM *theSum)