summaryrefslogtreecommitdiff
path: root/src/sp_cookie_encryption.h
diff options
context:
space:
mode:
authorSebastien Blot2017-09-20 10:11:01 +0200
committerSebastien Blot2017-09-20 10:11:01 +0200
commit868f96c759b6650d88ff9f4fbc5c048302134248 (patch)
treec0de0af318bf77a8959164ef11aeeeb2b7bab294 /src/sp_cookie_encryption.h
Initial import
Diffstat (limited to 'src/sp_cookie_encryption.h')
-rw-r--r--src/sp_cookie_encryption.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/sp_cookie_encryption.h b/src/sp_cookie_encryption.h
new file mode 100644
index 0000000..9904738
--- /dev/null
+++ b/src/sp_cookie_encryption.h
@@ -0,0 +1,17 @@
1
2#ifndef __SP_COOKIE_ENCRYPTION
3#define __SP_COOKIE_ENCRYPTION
4
5#include "SAPI.h"
6#include "tweetnacl.h"
7
8#include "sp_utils.h"
9
10#include "ext/hash/php_hash.h"
11#include "ext/hash/php_hash_sha.h"
12#include "ext/standard/base64.h"
13
14int hook_cookies();
15int decrypt_cookie(zval *pDest, int num_args, va_list args, zend_hash_key *hash_key);
16
17#endif /* __SP_COOKIE_ENCRYPTION */