summaryrefslogtreecommitdiff
path: root/riscos/401login.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix for hlcacheJohn Mark Bell2010-04-051-3/+5
| | | | svn path=/trunk/netsurf/; revision=10248
* - content/urldb.c(auth_data): Removed;John Tytgat2009-08-041-3/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (prot_space_data): Added, it lives linked in the leaf host_part struct and together with its scheme and port (which defins canonical root url) and realm this defines a protection space. (path_data): Removed auth_data field and replaced by a prot_space_data pointer. (host_part::prot_space): Added linked list of protection space data structs. (urldb_get_auth_details): Given an URL fetch fetches its auth. (urldb_set_auth_details): Creates or updates the contents of a protection space to which given URL belongs. (urldb_destroy_host_tree): Delete protection data space structures using urldb_destroy_prot_space. (urldb_destroy_prot_space): Added. - content/urldb.h(urldb_get_auth_details): Added realm parameter. - content/fetchers/fetch_curl.c(fetch_curl_set_options): Update urldb_get_auth_details call (we don't know realm at this point). - content/fetchcache.c(fetchcache_callback, fetchcache_auth): At FETCH_AUTH, use realm to determine if we really don't know auth data and if so, refetch content. - content/content.h(struct content): Add content::tried_with_auth. - content/content.c(content_create): Initialize content::tried_with_auth. - riscos/401login.c(ro_gui_401login_open): Show known authentication data in dialogue so user can see what was wrong with it and correct it. Solves bug #2830829. svn path=/trunk/netsurf/; revision=9045
* Avoid dereferencing NULL pointer. Tighten up other icon string ↵John Mark Bell2009-05-281-16/+16
| | | | | | initialisation, too. svn path=/trunk/netsurf/; revision=7592
* Purge WITH_AUTHJohn Mark Bell2009-02-221-2/+0
| | | | svn path=/trunk/netsurf/; revision=6600
* - Include utils/config.h before each WITH_* test entiry enabling/disabling ↵John Tytgat2008-07-261-2/+3
| | | | | | | | | | the object file. - Add same test in corresponding header file (if there is one) - riscos/uri.c: include riscos/uri.h and have function definitions matching the declarations. - Disable PDF debug logging. svn path=/trunk/netsurf/; revision=4769
* - Compiler warning squashJohn Tytgat2008-07-261-1/+1
| | | | | | | - Changed a lineending \n\r -> \n for a couple of files. - More code style conformance. svn path=/trunk/netsurf/; revision=4762
* The core code has always assumed a locale of "C".John Mark Bell2008-05-131-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Do not change the locale globally, else things will break in weird and wonderful ways. Introduce utils/locale.[ch], which provide locale-specific wrappers for various functions (currently just the <ctype.h> ones). Fix up the few places I can see that actually require that the underlying locale is paid attention to. Some notes: 1) The GTK frontend code has not been touched. It is possible that reading of numeric values (e.g. from the preferences dialogue) may break with this change, particularly in locales that use something other than '.' as their decimal separator. 2) The search code is left unchanged (i.e. assuming a locale of "C"). This may break case insensitive matching of non-ASCII characters. I doubt that ever actually worked, anyway. In future, it should use Unicode case conversion to achieve the same effect. 3) The text input handling in the core makes use of isspace() to detect word boundaries. This is fine for western languages (even in the C locale, which it's currently assuming). It will, however, break for CJK et. al. (this has always been the case, rather than being a new issue) 4) text-transform uses locale-specific variants of to{lower,upper}. In future this should probably be performing Unicode case conversion. This is the only part of the core code that makes use of locale information. In future, if you require locale-specific behaviour, do the following: setlocale(LC_<whatever>, ""); <your operation(s) here> setlocale(LC_<whatever>, "C"); The first setlocale will change the current locale to the native environment. The second setlocale will reset the current locale to "C". Any value other than "" or "C" is probably a bug, unless there's a really good reason for it. In the long term, it is expected that all locale-dependent code will reside in platform frontends -- the core being wholly locale agnostic (though assuming "C" for things like decimal separators). svn path=/trunk/netsurf/; revision=4153
* Update all source code file headers to reflect GPL version 2 only and ↵Vincent Sanders2007-08-081-4/+14
| | | | | | contain appropriate licence text svn path=/trunk/netsurf/; revision=3486
* Remove the netsurf/ from the include paths and rationalise use of <> vs "" ↵Daniel Silverstone2007-05-301-12/+12
| | | | | | | | | | | | | | in includes NetSurf includes are now done with ""s and other system includes with <>s as C intended. The scandeps tool has been updated to only look for ""ed includes, and to verify that the files exist in the tree before adding them to the dependency lines. The depend rule has therefore been augmented to make sure the autogenerated files are built before it is run. This is untested under self-hosted RISC OS builds. All else tested and works. svn path=/trunk/netsurf/; revision=3307
* Remove redundant close window calls.Richard Wilson2007-04-071-1/+0
| | | | svn path=/trunk/netsurf/; revision=3247
* Update project URL.Michael Drake2006-11-271-1/+1
| | | | svn path=/trunk/netsurf/; revision=3073
* Finish event based GUI system transition and begin code cleanup.Richard Wilson2006-09-061-5/+14
| | | | svn path=/trunk/netsurf/; revision=2922
* Handle omitted realmJohn Mark Bell2006-05-141-1/+1
| | | | svn path=/trunk/netsurf/; revision=2602
* Finish history cloning.Richard Wilson2006-04-221-1/+1
| | | | svn path=/trunk/netsurf/; revision=2547
* Unify information databasesJohn Mark Bell2006-04-091-6/+2
| | | | svn path=/trunk/netsurf/; revision=2519
* [project @ 2006-02-23 15:06:53 by jmb]John Mark Bell2006-02-231-5/+5
| | | | | | | | | | Handle invalid SSL certificates better - UI still needs work. Modify fetch callback data parameter type to remove compiler warnings. Constify things. Lose global ssl_verify_certificates option. Fix issue when closing a dialog without input focus. svn path=/import/netsurf/; revision=2092
* [project @ 2006-02-19 18:26:23 by jmb]John Mark Bell2006-02-191-37/+52
| | | | | | | | Rewrite HTTP authentication. Fix extraction of realm from WWW-Authenticate header. Tidy up login dialog code. svn path=/import/netsurf/; revision=2085
* [project @ 2005-12-31 04:34:38 by rjw]Richard Wilson2005-12-311-50/+90
| | | | | | Allow multiple login windows. Plug memory leaks. svn path=/import/netsurf/; revision=1911
* [project @ 2005-07-16 05:54:45 by adrianl]Adrian Lees2005-07-161-1/+1
| | | | | | Thumbnails displayed and dragged for full page save; spelling correction svn path=/import/netsurf/; revision=1793
* [project @ 2005-01-24 22:14:59 by bursa]James Bursa2005-01-241-2/+2
| | | | | | Simplify browser_window_go(). Replace browser_window_go_post() with browser_window_go() where possible. svn path=/import/netsurf/; revision=1466
* [project @ 2005-01-03 02:09:20 by jmb]John Mark Bell2005-01-031-2/+2
| | | | | | Shift + Click == download svn path=/import/netsurf/; revision=1429
* [project @ 2005-01-02 03:58:20 by jmb]John Mark Bell2005-01-021-3/+3
| | | | | | xcalloc/xrealloc/xstrdup-purge - Lose remaining calls (and purge the relevant functions from utils.c) svn path=/import/netsurf/; revision=1419
* [project @ 2005-01-01 22:14:06 by bursa]James Bursa2005-01-011-3/+9
| | | | | | xcalloc/xrealloc/xstrdup-purge week. svn path=/import/netsurf/; revision=1417
* [project @ 2004-12-09 10:30:43 by rjw]Richard Wilson2004-12-091-6/+7
| | | | | | Re-implementation of hotlist via general tree code. Animations can be stopped once more. Purged a few xcalloc() calls. svn path=/import/netsurf/; revision=1394
* [project @ 2004-10-01 21:31:55 by jmb]John Mark Bell2004-10-011-2/+2
| | | | | | | | | | | | A somewhat better implementation of referrers which no longer sends the referer if the URL schemes don't match. Things to do: 1) Preservation of referer across redirects (see comment in browser.c:284) 2) GUI templates/code for configuration of referer sending (simple on/off toggle only) 3) Make referer sending when fetching objects/stylesheets for a page pay attention to option_send_referer? 4) Handle the case where the referer is in the form of http://moo:foo@mysite.com/ (ie the login details embedded in the referer - not good). svn path=/import/netsurf/; revision=1297
* [project @ 2004-10-01 00:06:49 by jmb]John Mark Bell2004-10-011-2/+2
| | | | | | Send HTTP referer header. This is _only_ sent when a link is clicked (theoretically, at least). svn path=/import/netsurf/; revision=1296
* [project @ 2004-08-09 16:11:58 by jmb]John Mark Bell2004-08-091-2/+3
| | | | | | | Rework the interface of the URL handing module to allow for multiple error types. Modify save_complete URL rewriting appropriately. svn path=/import/netsurf/; revision=1206
* [project @ 2004-07-16 16:33:44 by rjw]Richard Wilson2004-07-161-8/+3
| | | | | | Various fixes for the GUI. Persistant windows are closed when upon a change of content. Hotlist saves in the same format as !Browse. Neater login window. Support for interactive help from hotlist windows. svn path=/import/netsurf/; revision=1081
* [project @ 2004-06-20 19:49:40 by joty]John Tytgat2004-06-201-47/+46
| | | | | | Src cleanup. svn path=/import/netsurf/; revision=981
* [project @ 2004-05-08 20:44:00 by bursa]James Bursa2004-05-081-19/+3
| | | | | | Break out ro_gui_dialog_load_template(). Replace xcalloc() with malloc() and add some error handling. svn path=/import/netsurf/; revision=844
* [project @ 2004-03-02 18:02:17 by bursa]James Bursa2004-03-021-1/+2
| | | | | | Add new url functions and modify to use them. svn path=/import/netsurf/; revision=578
* [project @ 2004-02-25 15:12:57 by bursa]James Bursa2004-02-251-2/+2
| | | | | | Implement scaling; rewrite desktop/browser; add riscos/thumbnail; rewrite history. svn path=/import/netsurf/; revision=566
* [project @ 2004-01-05 02:10:59 by jmb]John Mark Bell2004-01-051-0/+5
| | | | | | | Add ability to turn off browser features in build. This may be useful when hunting down bugs. svn path=/import/netsurf/; revision=480
* [project @ 2003-12-31 17:09:03 by jmb]John Mark Bell2003-12-311-4/+2
| | | | | | | Rename login template to "login". Use OS_GBPB9 to get filename of plugin logos. svn path=/import/netsurf/; revision=474
* [project @ 2003-12-29 22:50:43 by jmb]John Mark Bell2003-12-291-3/+9
| | | | | | Add some debugging. svn path=/import/netsurf/; revision=470
* [project @ 2003-12-27 00:35:54 by jmb]John Mark Bell2003-12-271-1/+1
| | | | | | Return true after handling escape keypress. svn path=/import/netsurf/; revision=452
* [project @ 2003-12-26 22:12:39 by jmb]John Mark Bell2003-12-261-5/+10
| | | | | | | | Move constant global data into a new file. This makes things a bit tidier. Add help: and home: shortcut URLs. svn path=/import/netsurf/; revision=449
* [project @ 2003-12-26 18:18:17 by jmb]John Mark Bell2003-12-261-0/+12
| | | | | | Keypress handling in dialog boxes. svn path=/import/netsurf/; revision=446
* [project @ 2003-12-26 16:21:46 by bursa]James Bursa2003-12-261-0/+1
| | | | | | Rewrite get_host_from_url() to use uri library. svn path=/import/netsurf/; revision=444
* [project @ 2003-10-26 12:41:51 by jmb]John Mark Bell2003-10-261-14/+4
| | | | | | | | Make fetch abort finish when auth is required. Lose the right click performs the opposite action stuff in the login dialog. svn path=/import/netsurf/; revision=391
* [project @ 2003-10-26 11:40:50 by bursa]James Bursa2003-10-261-14/+19
| | | | | | Fix caret and buffer allocations. svn path=/import/netsurf/; revision=390
* [project @ 2003-10-26 00:09:27 by jmb]John Mark Bell2003-10-261-1/+1
| | | | | | | Fix bug involving while loop exiting early. Move the xstrdup of the realm into riscos/401login.c svn path=/import/netsurf/; revision=389
* [project @ 2003-10-25 19:20:13 by jmb]John Mark Bell2003-10-251-27/+25
| | | | | | | HTTP Auth login improved (greatly). Addresses all three issues in the previous version. svn path=/import/netsurf/; revision=382
* [project @ 2003-10-25 14:13:49 by bursa]James Bursa2003-10-251-1/+1
| | | | | | URL encoded POST support. svn path=/import/netsurf/; revision=375
* [project @ 2003-10-23 00:09:16 by jmb]John Mark Bell2003-10-231-0/+140
Enable logging into sites which require Basic Authentication Has a couple of issues: 1) Opens the page in the first window in the list 2) Doesn't save the login details so you have to log in to each page. 3) The call to ro_gui_401login_open shouldn't be there. svn path=/import/netsurf/; revision=372