summaryrefslogtreecommitdiff
path: root/src/sp_cookie_encryption.h
diff options
context:
space:
mode:
authorxXx-caillou-xXx2017-11-24 14:03:37 +0100
committerjvoisin2017-11-24 14:03:37 +0100
commit5a224ee0c92d1639395d6a0c629316ae64226125 (patch)
tree8925d27e2bbfa877e9fb1fc20868fbef3d009b04 /src/sp_cookie_encryption.h
parent79304a29661476dc75bba07c5a83133122bbcb5c (diff)
Implement anti csrf measures
This is done by using the "samesite" cookie attribute.
Diffstat (limited to 'src/sp_cookie_encryption.h')
-rw-r--r--src/sp_cookie_encryption.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sp_cookie_encryption.h b/src/sp_cookie_encryption.h
index 9904738..889a89c 100644
--- a/src/sp_cookie_encryption.h
+++ b/src/sp_cookie_encryption.h
@@ -11,6 +11,8 @@
11#include "ext/hash/php_hash_sha.h" 11#include "ext/hash/php_hash_sha.h"
12#include "ext/standard/base64.h" 12#include "ext/standard/base64.h"
13 13
14#define SAMESITE_COOKIE_FORMAT "; samesite="
15
14int hook_cookies(); 16int hook_cookies();
15int decrypt_cookie(zval *pDest, int num_args, va_list args, zend_hash_key *hash_key); 17int decrypt_cookie(zval *pDest, int num_args, va_list args, zend_hash_key *hash_key);
16 18