diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2006-02-23 15:06:54 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2006-02-23 15:06:54 +0000 |
commit | d4d3e5ee1c9edb67844b693be0202ee5968d61c3 (patch) | |
tree | f8583d475d39172ff3b19473812ff6ce72de8452 /riscos/plugin.c | |
parent | 70fbf97688666f6ab37c4cc427f1e8c9929cc4b1 (diff) | |
download | netsurf-d4d3e5ee1c9edb67844b693be0202ee5968d61c3.tar.gz netsurf-d4d3e5ee1c9edb67844b693be0202ee5968d61c3.tar.bz2 |
[project @ 2006-02-23 15:06:53 by jmb]
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
Diffstat (limited to 'riscos/plugin.c')
-rw-r--r-- | riscos/plugin.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/riscos/plugin.c b/riscos/plugin.c index b1c26df2c..115045b7c 100644 --- a/riscos/plugin.c +++ b/riscos/plugin.c @@ -164,7 +164,7 @@ static void plugin_stream_free(struct plugin_stream *p); static bool plugin_start_fetch(struct plugin_stream *p, const char *url); static void plugin_stream_callback(content_msg msg, struct content *c, intptr_t p1, intptr_t p2, union content_msg_data data); -static void plugin_fetch_callback(fetch_msg msg, void *p, const char *data, +static void plugin_fetch_callback(fetch_msg msg, void *p, const void *data, unsigned long size); /** @@ -1707,6 +1707,12 @@ void plugin_stream_callback(content_msg msg, struct content *c, /* ignore this */ break; +#ifdef WITH_SSL + case CONTENT_MSG_SSL: + plugin_destroy_stream(p, plugin_STREAM_DESTROY_ERROR); + break; +#endif + case CONTENT_MSG_READY: case CONTENT_MSG_DONE: case CONTENT_MSG_REFORMAT: @@ -1721,7 +1727,7 @@ void plugin_stream_callback(content_msg msg, struct content *c, /** * Callback for plugin fetch */ -void plugin_fetch_callback(fetch_msg msg, void *p, const char *data, +void plugin_fetch_callback(fetch_msg msg, void *p, const void *data, unsigned long size) { struct plugin_stream *s = p; @@ -1754,6 +1760,9 @@ void plugin_fetch_callback(fetch_msg msg, void *p, const char *data, case FETCH_REDIRECT: case FETCH_NOTMODIFIED: case FETCH_AUTH: +#ifdef WITH_SSL + case FETCH_CERT_ERR: +#endif default: /* not possible */ assert(0); |