summaryrefslogtreecommitdiff
path: root/content/content.h
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2006-02-23 15:06:54 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2006-02-23 15:06:54 +0000
commitd4d3e5ee1c9edb67844b693be0202ee5968d61c3 (patch)
treef8583d475d39172ff3b19473812ff6ce72de8452 /content/content.h
parent70fbf97688666f6ab37c4cc427f1e8c9929cc4b1 (diff)
downloadnetsurf-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 'content/content.h')
-rw-r--r--content/content.h13
1 files changed, 11 insertions, 2 deletions
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. */