summaryrefslogtreecommitdiff
path: root/content/urldb.h
diff options
context:
space:
mode:
authorJohn-Mark Bell <jmb@netsurf-browser.org>2018-04-22 02:25:43 +0000
committerJohn-Mark Bell <jmb@netsurf-browser.org>2018-04-22 11:39:12 +0000
commita6014cae157107ec868816fcccf8689a5d6cc766 (patch)
tree15066e740b9139940db9899cbca45fcab591b628 /content/urldb.h
parent1c05280b5cd23c94ed10c2a9415a500393100285 (diff)
downloadnetsurf-a6014cae157107ec868816fcccf8689a5d6cc766.tar.gz
netsurf-a6014cae157107ec868816fcccf8689a5d6cc766.tar.bz2
HSTS: support policy in urldb
Diffstat (limited to 'content/urldb.h')
-rw-r--r--content/urldb.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/content/urldb.h b/content/urldb.h
index 4aa548704..0ad64267f 100644
--- a/content/urldb.h
+++ b/content/urldb.h
@@ -131,4 +131,22 @@ bool urldb_set_cookie(const char *header, struct nsurl *url, struct nsurl *refer
char *urldb_get_cookie(struct nsurl *url, bool include_http_only);
+/**
+ * Set HSTS policy for an URL
+ *
+ * \param url URL being fetched
+ * \param header Strict-Transport-Security header value
+ * \return true on success, false otherwise
+ */
+bool urldb_set_hsts_policy(struct nsurl *url, const char *header);
+
+
+/**
+ * Determine if HSTS policy is enabled for an URL
+ *
+ * \param url URL being fetched
+ * \return true if HSTS policy is enabled, false otherwise
+ */
+bool urldb_get_hsts_enabled(struct nsurl *url);
+
#endif