summaryrefslogtreecommitdiff
path: root/libsoup/soup-misc.c
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2003-09-10 21:39:06 +0000
committerDan Winship <danw@src.gnome.org>2003-09-10 21:39:06 +0000
commit2e90183cf7eb2b84d2952d5364acda88ec97681e (patch)
tree2ec9f71c56eca110d973c7b644a3bfad0bcb9854 /libsoup/soup-misc.c
parent2463bf785d9c995ba3662dd57aabfad0b25c2e9d (diff)
downloadlibsoup-2e90183cf7eb2b84d2952d5364acda88ec97681e.tar.gz
Add "authenticate" and "reauthenticate" signals. (invalidate_auth): Remove
* libsoup/soup-session.c: Add "authenticate" and "reauthenticate" signals. (invalidate_auth): Remove the call to soup_auth_invalidate. (authenticate_auth): soup_auth_fn is gone. If the URI doesn't contain authentication, then emit "authenticate" or "reauthenticate" (depending on whether or not this is the first time we've asked for a password for this auth). (update_auth_internal): If the server rejects our username/password, don't bail out immediately. Try doing a "reauthenticate" first. * libsoup/soup-misc.c (soup_set_authorize_callback): Gone * libsoup/soup-auth.c (soup_auth_new_from_header_list): Remove the "pref" arg. (soup_auth_invalidate): Remove this; it doesn't actually do anything useful for us. * libsoup/soup-auth-basic.c (invalidate): Remove * libsoup/soup-auth-digest.c: (invalidate): Remove * libsoup/soup-auth-ntlm.c: (invalidate): Remove * libsoup/soup-uri.c: Remove all references to "authmech". (soup_uri_set_auth): Remove this too. * tests/auth-test.c: Update to use the "authenticate" and "reauthenticate" signals instead of encoding usernames and passwords in the URIs. Add a few more test cases.
Diffstat (limited to 'libsoup/soup-misc.c')
-rw-r--r--libsoup/soup-misc.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/libsoup/soup-misc.c b/libsoup/soup-misc.c
index c25950fe..b5e81fbc 100644
--- a/libsoup/soup-misc.c
+++ b/libsoup/soup-misc.c
@@ -670,31 +670,6 @@ soup_get_ssl_cert_files (const gchar **cert_file, const gchar **key_file)
*key_file = ssl_key_file;
}
-SoupAuthorizeFn soup_auth_fn = NULL;
-gpointer soup_auth_fn_user_data = NULL;
-
-/**
- * soup_set_authorize_callback:
- * @authfn: A %SoupAuthorizeFn function to be called when authorization
- * is needed to complete a request.
- * @user_data: A pointer to be passed @authfn.
- *
- * Sets the authorization callback to be called when a %SoupMessage fails with a
- * 401 or 407 response, and no authorization data is present in the URI (and the
- * request is not covered by a prior successful authorization attempt).
- *
- * The callback should call %soup_uri_set_auth on the passed URI in order to try
- * the request again.
- **/
-void
-soup_set_authorize_callback (SoupAuthorizeFn authfn,
- gpointer user_data)
-{
- soup_auth_fn = authfn;
- soup_auth_fn_user_data = user_data;
-}
-
-
typedef struct {
gpointer instance;
guint real_id, self_id;