summaryrefslogtreecommitdiffstats
path: root/src/registry.h
diff options
context:
space:
mode:
authorCosta Tsaousis <costa@tsaousis.gr>2016-06-02 16:27:05 +0300
committerCosta Tsaousis <costa@tsaousis.gr>2016-06-02 16:27:05 +0300
commit452901c7a948022ee0a9d895377db0b27aa111bb (patch)
tree94ecb5810986d3a76790798b90d2e9cbec907563 /src/registry.h
parente26fedfc7a43f30e5fdfdf624c01171d28ce807a (diff)
registry now verifies the browser support cookies - to protect its database from being flooded with new persons
Diffstat (limited to 'src/registry.h')
-rw-r--r--src/registry.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/registry.h b/src/registry.h
index d95383b5df..9e7a13ecbf 100644
--- a/src/registry.h
+++ b/src/registry.h
@@ -5,6 +5,10 @@
#define NETDATA_REGISTRY_COOKIE_NAME "netdata_registry_id"
+extern void registry_set_cookie(struct web_client *w, const char *guid);
+extern const char *registry_to_announce(void);
+extern int registry_verify_cookies_redirects(void);
+
extern int registry_request_access_json(struct web_client *w, char *person_guid, char *machine_guid, char *url, char *name, time_t when);
extern int registry_request_delete_json(struct web_client *w, char *person_guid, char *machine_guid, char *url, char *delete_url, time_t when);
extern int registry_request_search_json(struct web_client *w, char *person_guid, char *machine_guid, char *url, char *request_machine, time_t when);