From bfb1bb119241d85bb9b400881328496e12a39aed Mon Sep 17 00:00:00 2001 From: Daniel Silverstone Date: Mon, 5 Aug 2019 18:11:13 +0100 Subject: Migrate SSL certificate storage to the browser window * Fetchers now provide the certificates before headers * This is propagated all the way to the browser window * When a query occurs, we retrieve it from there and fire the query with those stored certificates. * The serial number is a bignum, store it as hex. Signed-off-by: Daniel Silverstone --- content/llcache.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'content/llcache.h') diff --git a/content/llcache.h b/content/llcache.h index dd2dadc72..b2577a6c1 100644 --- a/content/llcache.h +++ b/content/llcache.h @@ -103,6 +103,7 @@ typedef nserror (*llcache_query_response)(bool proceed, void *cbpw); /** Low-level cache event types */ typedef enum { + LLCACHE_EVENT_GOT_CERTS, /**< SSL certificates arrived */ LLCACHE_EVENT_HAD_HEADERS, /**< Received all headers */ LLCACHE_EVENT_HAD_DATA, /**< Received some data */ LLCACHE_EVENT_DONE, /**< Finished fetching data */ @@ -143,6 +144,10 @@ typedef struct { nsurl *from; /**< Redirect origin */ nsurl *to; /**< Redirect target */ } redirect; /**< Fetch URL redirect occured */ + struct { + const struct ssl_cert_info *certs; /**< The chain */ + size_t num; /**< Number of certs in chain */ + } certs; llcache_query_msg query;/**< Query event */ } data; /**< Event data */ } llcache_event; -- cgit v1.2.3