summaryrefslogtreecommitdiff
path: root/content/urldb.h
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2012-11-09 11:38:46 +0000
committerDaniel Silverstone <dsilvers@digital-scurf.org>2012-11-09 11:38:46 +0000
commit413248d0fc33d3615db618628e79837f22a6bb6e (patch)
treea2c500ed60e17422d72a9fcb0d1c3a2e4c1f779c /content/urldb.h
parent9318e664490420bdbfbd7695d203225087b59c07 (diff)
downloadnetsurf-413248d0fc33d3615db618628e79837f22a6bb6e.tar.gz
netsurf-413248d0fc33d3615db618628e79837f22a6bb6e.tar.bz2
Rough implementation of httponly cookie support
Diffstat (limited to 'content/urldb.h')
-rw-r--r--content/urldb.h3
1 files changed, 2 insertions, 1 deletions
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);