| libsoup Reference Manual |
|---|
soup-server-auth —
gboolean (*SoupServerAuthCallbackFn) (SoupServerAuthContext *auth_ctx, SoupServerAuth *auth, SoupMessage *msg, gpointer data); void soup_server_auth_context_challenge (SoupServerAuthContext *auth_ctx, SoupMessage *msg, gchar *header_name); enum SoupAuthType; struct SoupServerAuthBasic; enum SoupDigestAlgorithm; struct SoupServerAuthDigest; SoupServerAuth* soup_server_auth_new (SoupServerAuthContext *auth_ctx, const GSList *auth_hdrs, SoupMessage *msg); void soup_server_auth_free (SoupServerAuth *auth); const gchar* soup_server_auth_get_user (SoupServerAuth *auth); gboolean soup_server_auth_check_passwd (SoupServerAuth *auth, gchar *passwd);
gboolean (*SoupServerAuthCallbackFn) (SoupServerAuthContext *auth_ctx,
SoupServerAuth *auth,
SoupMessage *msg,
gpointer data);
| auth_ctx : | |
| auth : | |
| msg : | |
| data : | |
| Returns : |
void soup_server_auth_context_challenge
(SoupServerAuthContext *auth_ctx,
SoupMessage *msg,
gchar *header_name);
| auth_ctx : | |
| msg : | |
| header_name : |
struct SoupServerAuthBasic {
SoupAuthType type;
const gchar *user;
const gchar *passwd;
};
typedef enum {
SOUP_ALGORITHM_MD5 = 1 << 0,
SOUP_ALGORITHM_MD5_SESS = 1 << 1
} SoupDigestAlgorithm;
struct SoupServerAuthDigest {
SoupAuthType type;
SoupDigestAlgorithm algorithm;
gboolean integrity;
const gchar *realm;
const gchar *user;
const gchar *nonce;
gint nonce_count;
const gchar *cnonce;
const gchar *digest_uri;
const gchar *digest_response;
const gchar *request_method;
};
SoupServerAuth* soup_server_auth_new (SoupServerAuthContext *auth_ctx,
const GSList *auth_hdrs,
SoupMessage *msg);
| auth_ctx : | |
| auth_hdrs : | |
| msg : | |
| Returns : |
const gchar* soup_server_auth_get_user (SoupServerAuth *auth);
| auth : | |
| Returns : |
| << soup-misc | SoupServerMessage >> |