From 8469f4cc8e62e80a3165a1d4f13b62b5b4a04720 Mon Sep 17 00:00:00 2001 From: Daniel Silverstone Date: Tue, 6 Aug 2019 11:25:11 +0100 Subject: 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 --- content/fetch.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'content/fetch.h') diff --git a/content/fetch.h b/content/fetch.h index 174e07bf6..7c02fb0d7 100644 --- a/content/fetch.h +++ b/content/fetch.h @@ -184,6 +184,30 @@ void fetch_multipart_data_destroy(struct fetch_multipart_data *list); */ struct fetch_multipart_data *fetch_multipart_data_clone(const struct fetch_multipart_data *list); +/** + * Find an entry in a fetch_multipart_data + * + * \param list Pointer to the multipart list + * \param name The name to look for in the list + * \return The value found, or NULL if not present + */ +const char *fetch_multipart_data_find(const struct fetch_multipart_data *list, + const char *name); + +/** + * Create an entry for a fetch_multipart_data + * + * If an entry exists of the same name, it will *NOT* be overwritten + * + * \param list Pointer to the pointer to the current multipart list + * \param name The name of the entry to create + * \param value The value of the entry to create + * \return The result of the attempt + */ +nserror fetch_multipart_data_new_kv(struct fetch_multipart_data **list, + const char *name, + const char *value); + /** * send message to fetch */ -- cgit v1.2.3