#ifndef HTTP_AUTH_H
#define HTTP_AUTH_H
#include "array-decl.h"
struct http_auth_param;
struct http_auth_challenge;
struct http_auth_credentials;
struct http_auth_param {
const char *name;
const char *value;
};
struct http_auth_challenge {
const char *scheme;
const char *data;
};
struct http_auth_credentials {
const char *scheme;
const char *data;
};
/*
* Parsing
*/
struct http_auth_credentials *crdts);
/*
* Construction
*/
const struct http_auth_challenge *chlng);
const struct http_auth_credentials *crdts);
/*
* Manipulation
*/
struct http_auth_challenge *dst,
const struct http_auth_challenge *src);
struct http_auth_challenge *
const struct http_auth_challenge *src);
struct http_auth_credentials *dst,
const struct http_auth_credentials *src);
struct http_auth_credentials *
const struct http_auth_credentials *src);
/*
* Simple schemes
*/
const char *realm);
#endif