summaryrefslogtreecommitdiff
path: root/src/hsts.h
diff options
context:
space:
mode:
authorcorvid <devnull@localhost>2015-06-29 15:36:46 +0000
committercorvid <devnull@localhost>2015-06-29 15:36:46 +0000
commit41f2b84001bb63d705c7981492a9637d4d48f5f7 (patch)
treef7b95cb6c4a8a04e59f62a43c3b432ea1bfe569d /src/hsts.h
parentb3b8727a42e89d8702c9702226d1140836f1146e (diff)
HTTP Strict Transport Security
I'm not including the preload file yet.
Diffstat (limited to 'src/hsts.h')
-rw-r--r--src/hsts.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/hsts.h b/src/hsts.h
new file mode 100644
index 00000000..693aec10
--- /dev/null
+++ b/src/hsts.h
@@ -0,0 +1,19 @@
+#ifndef __HSTS_H__
+#define __HSTS_H__
+
+#include "d_size.h"
+#include "url.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
+void a_Hsts_init(FILE *fp);
+void a_Hsts_set(const char *header, const DilloUrl *url);
+bool_t a_Hsts_require_https(const char *host);
+void a_Hsts_freeall( void );
+
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+#endif /* !__HSTS_H__ */