diff options
author | Carlos Garcia Campos <cgarcia@igalia.com> | 2020-10-07 14:03:17 +0200 |
---|---|---|
committer | Carlos Garcia Campos <cgarcia@igalia.com> | 2020-10-09 11:34:08 +0200 |
commit | 869e580033ec92cc8782f941da04d623b481e3e4 (patch) | |
tree | 657cb4fdd4d7cb055a78d43593ffeab1b427da67 /libsoup/server/soup-auth-domain-digest.h | |
parent | 6c2ef5ae4fad12caddb1ff4f07bb2f4d2af9386e (diff) | |
download | libsoup-869e580033ec92cc8782f941da04d623b481e3e4.tar.gz |
server: move SoupServer code to server directory
Diffstat (limited to 'libsoup/server/soup-auth-domain-digest.h')
-rw-r--r-- | libsoup/server/soup-auth-domain-digest.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/libsoup/server/soup-auth-domain-digest.h b/libsoup/server/soup-auth-domain-digest.h new file mode 100644 index 00000000..523497ce --- /dev/null +++ b/libsoup/server/soup-auth-domain-digest.h @@ -0,0 +1,39 @@ +/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ +/* + * Copyright (C) 2007 Novell, Inc. + */ + +#pragma once + +#include "soup-auth-domain.h" + +G_BEGIN_DECLS + +#define SOUP_TYPE_AUTH_DOMAIN_DIGEST (soup_auth_domain_digest_get_type ()) +SOUP_AVAILABLE_IN_2_4 +G_DECLARE_FINAL_TYPE (SoupAuthDomainDigest, soup_auth_domain_digest, SOUP, AUTH_DOMAIN_DIGEST, SoupAuthDomain) + +#define SOUP_AUTH_DOMAIN_DIGEST_AUTH_CALLBACK "auth-callback" +#define SOUP_AUTH_DOMAIN_DIGEST_AUTH_DATA "auth-data" + +SOUP_AVAILABLE_IN_2_4 +SoupAuthDomain *soup_auth_domain_digest_new (const char *optname1, + ...) G_GNUC_NULL_TERMINATED; + +typedef char * (*SoupAuthDomainDigestAuthCallback) (SoupAuthDomain *domain, + SoupMessage *msg, + const char *username, + gpointer user_data); + +SOUP_AVAILABLE_IN_2_4 +void soup_auth_domain_digest_set_auth_callback (SoupAuthDomain *domain, + SoupAuthDomainDigestAuthCallback callback, + gpointer user_data, + GDestroyNotify dnotify); + +SOUP_AVAILABLE_IN_2_4 +char *soup_auth_domain_digest_encode_password (const char *username, + const char *realm, + const char *password); + +G_END_DECLS |