diff options
author | Daniel Silverstone <dsilvers@digital-scurf.org> | 2019-08-06 11:25:11 +0100 |
---|---|---|
committer | Daniel Silverstone <dsilvers@digital-scurf.org> | 2019-08-06 11:26:47 +0100 |
commit | 8469f4cc8e62e80a3165a1d4f13b62b5b4a04720 (patch) | |
tree | 707b46c3cf0b373b53adf8c54d290e4c546ebb2c /desktop/gui_factory.c | |
parent | 9c9c26a308995c22210c90e3772e86f49a1948b9 (diff) | |
download | netsurf-8469f4cc8e62e80a3165a1d4f13b62b5b4a04720.tar.gz netsurf-8469f4cc8e62e80a3165a1d4f13b62b5b4a04720.tar.bz2 |
Reimplement handling of BAD_AUTH inside browser_window
We now handle authentication requests via an `about:` page
which presents a nice form built into the browser window.
In order to do this, we add internal navigation as a concept
to the browser window and we strip the 401login support from all
frontends except monkey.
The 401login callback is now intended for password safe type support
rather than an immediately interactive prompt.
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
Diffstat (limited to 'desktop/gui_factory.c')
-rw-r--r-- | desktop/gui_factory.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/desktop/gui_factory.c b/desktop/gui_factory.c index 5628caad5..bd8d35bc5 100644 --- a/desktop/gui_factory.c +++ b/desktop/gui_factory.c @@ -691,12 +691,14 @@ static nserror gui_default_cert_verify(nsurl *url, return NSERROR_NOT_IMPLEMENTED; } -static nserror gui_default_401login_open(nsurl *url, const char *realm, - const char *username, const char *password, - nserror (*cb)(const char *username, - const char *password, - void *pw), - void *cbpw) +static nserror gui_default_401login_open( + nsurl *url, const char *realm, + const char *username, const char *password, + nserror (*cb)(nsurl *url, const char * realm, + const char *username, + const char *password, + void *pw), + void *cbpw) { return NSERROR_NOT_IMPLEMENTED; } |