add "realm" field to the struct. (SoupAuthClass) remove "get_realm"
authorDan Winship <danw@src.gnome.org>
Tue, 25 Sep 2007 03:11:18 +0000 (03:11 +0000)
committerDan Winship <danw@src.gnome.org>
Tue, 25 Sep 2007 03:11:18 +0000 (03:11 +0000)
commit1ef84727183daf0fcf8043383c012834576ee359
treef08d1d4f6bf343f822c87288673f48cd7ea43bbf
parentb8b3779563f8f49a81b0bf117ba8f0256671ee14
add "realm" field to the struct. (SoupAuthClass) remove "get_realm"

* libsoup/soup-auth.h (SoupAuth): add "realm" field to the struct.
(SoupAuthClass) remove "get_realm" virtual method.

* libsoup/soup-auth.c (soup_auth_new_from_header_list): Parse the
WWW-Authenticate/Proxy-Authenticate header here, set realm, and
pass the params hash to the construct method.
(soup_auth_get_info): Return an identifier for the auth:
"SCHEME:REALM"

* libsoup/soup-auth-basic.c:
* libsoup/soup-auth-digest.c: update

* libsoup/soup-session.c (invalidate_auth, update_auth_internal):
use soup_auth_get_info().

svn path=/trunk/; revision=934
ChangeLog
libsoup/soup-auth-basic.c
libsoup/soup-auth-digest.c
libsoup/soup-auth.c
libsoup/soup-auth.h
libsoup/soup-session.c