Call soup_auth_fn if we don't have auth data in the URI, then call
authorAlex Graveley <alex@ximian.com>
Tue, 30 Oct 2001 01:51:16 +0000 (01:51 +0000)
committerAlex Graveley <orph@src.gnome.org>
Tue, 30 Oct 2001 01:51:16 +0000 (01:51 +0000)
commit42af5083a757ec79d7cdcfd11eb79a7010291195
tree68879ee6d8d6664249c634e8ab4c0213d20b1964
parentb80b325030d751949aebf4fd6580864a33fa25a6
Call soup_auth_fn if we don't have auth data in the URI, then call

2001-10-29  Alex Graveley  <alex@ximian.com>

* src/libsoup/soup-message.c (authorize_handler): Call
soup_auth_fn if we don't have auth data in the URI, then call
soup_auth_initialize if the callback set authenticate data on the
passed uri.

* src/libsoup/soup-auth.h: Make type be SoupAuthType.

* src/libsoup/soup-auth.c (soup_auth_initialize): Impl. To be
called after SoupAuth creation to apply auth data to the
SoupAuth. This allows us to parse the Authenticate headers to
figure out which auth scheme and realm is being used, and pass
this to the auth callback.

* src/libsoup/soup-misc.c (soup_set_authorize_callback): Impl.

* src/libsoup/soup-misc.h: Add SoupAuthType enum here.

* src/libsoup/soup-server.h: Use SoupAuthType. Remove
SoupServerAuthType.
ChangeLog
libsoup/soup-auth.c
libsoup/soup-auth.h
libsoup/soup-message.c
libsoup/soup-misc.c
libsoup/soup-misc.h
libsoup/soup-private.h
libsoup/soup-server.h