From d4d3e5ee1c9edb67844b693be0202ee5968d61c3 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Thu, 23 Feb 2006 15:06:54 +0000 Subject: [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 --- riscos/plugin.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'riscos/plugin.c') 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); -- cgit v1.2.3