summaryrefslogtreecommitdiff
path: root/libsoup/soup-auth.h
diff options
context:
space:
mode:
authorDan Winship <danw@gnome.org>2009-08-12 10:23:39 -0400
committerDan Winship <danw@gnome.org>2009-08-12 10:24:09 -0400
commitf81520bfd3a971f82c2b69aa9977edc1a33b20aa (patch)
treed4982013c96d9cc4507a9444e09665a866835e9d /libsoup/soup-auth.h
parent6060232ca31b0315901d68c1be1526e27513e2a4 (diff)
downloadlibsoup-f81520bfd3a971f82c2b69aa9977edc1a33b20aa.tar.gz
Add SoupPasswordManager and SoupPasswordManagerGNOME
SoupPasswordManager (and some new SoupAuth APIs) provide an interface for saving passwords, and SoupPasswordManagerGNOME provides an implementation of that interface using gnome-keyring.
Diffstat (limited to 'libsoup/soup-auth.h')
-rw-r--r--libsoup/soup-auth.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/libsoup/soup-auth.h b/libsoup/soup-auth.h
index 53eb16b3..1259df8e 100644
--- a/libsoup/soup-auth.h
+++ b/libsoup/soup-auth.h
@@ -72,6 +72,13 @@ const char *soup_auth_get_host (SoupAuth *auth);
const char *soup_auth_get_realm (SoupAuth *auth);
char *soup_auth_get_info (SoupAuth *auth);
+GSList *soup_auth_get_saved_users (SoupAuth *auth);
+const char *soup_auth_get_saved_password (SoupAuth *auth,
+ const char *user);
+void soup_auth_save_password (SoupAuth *auth,
+ const char *username,
+ const char *password);
+
void soup_auth_authenticate (SoupAuth *auth,
const char *username,
const char *password);
@@ -85,6 +92,10 @@ GSList *soup_auth_get_protection_space (SoupAuth *auth,
void soup_auth_free_protection_space (SoupAuth *auth,
GSList *space);
+void soup_auth_has_saved_password (SoupAuth *auth,
+ const char *username,
+ const char *password);
+
G_END_DECLS
#endif /* SOUP_AUTH_H */