From 413248d0fc33d3615db618628e79837f22a6bb6e Mon Sep 17 00:00:00 2001 From: Daniel Silverstone Date: Fri, 9 Nov 2012 11:38:46 +0000 Subject: Rough implementation of httponly cookie support --- content/urldb.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'content/urldb.h') diff --git a/content/urldb.h b/content/urldb.h index 00af8e312..9c88903b1 100644 --- a/content/urldb.h +++ b/content/urldb.h @@ -54,6 +54,7 @@ struct cookie_data { const time_t expires; /**< Expiry timestamp, or 1 for session */ const time_t last_used; /**< Last used time */ const bool secure; /**< Only send for HTTPS requests */ + const bool http_only; /**< Only expose to HTTP(S) requests */ cookie_version version; /**< Specification compliance */ const bool no_destroy; /**< Never destroy this cookie, * unless it's expired */ @@ -115,7 +116,7 @@ void urldb_dump(void); /* Cookies */ bool urldb_set_cookie(const char *header, nsurl *url, nsurl *referer); -char *urldb_get_cookie(nsurl *url); +char *urldb_get_cookie(nsurl *url, bool include_http_only); void urldb_delete_cookie(const char *domain, const char *path, const char *name); void urldb_load_cookies(const char *filename); void urldb_save_cookies(const char *filename); -- cgit v1.2.3