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 --- content/content.h | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'content/content.h') diff --git a/content/content.h b/content/content.h index f40888009..21c4f399c 100644 --- a/content/content.h +++ b/content/content.h @@ -139,6 +139,7 @@ struct cache_data; struct content; struct fetch; struct object_params; +struct ssl_cert_info; /** Used in callbacks to indicate what has occurred. */ @@ -154,7 +155,10 @@ typedef enum { CONTENT_MSG_NEWPTR, /**< address of structure has changed */ CONTENT_MSG_REFRESH, /**< wants refresh */ #ifdef WITH_AUTH - CONTENT_MSG_AUTH /**< authentication required */ + CONTENT_MSG_AUTH, /**< authentication required */ +#endif +#ifdef WITH_SSL + CONTENT_MSG_SSL /**< SSL cert verify failed */ #endif } content_msg; @@ -175,8 +179,13 @@ union content_msg_data { /** Dimensions to plot object with. */ float object_width, object_height; } redraw; - char *auth_realm; /**< Realm, for CONTENT_MSG_AUTH. */ + const char *auth_realm; /**< Realm, for CONTENT_MSG_AUTH. */ int delay; /**< Minimum delay, for CONTENT_MSG_REFRESH */ + struct { + /** Certificate chain (certs[0] == server) */ + const struct ssl_cert_info *certs; + unsigned long num; /**< Number of certs in chain */ + } ssl; }; /** Linked list of users of a content. */ -- cgit v1.2.3