From 868f96c759b6650d88ff9f4fbc5c048302134248 Mon Sep 17 00:00:00 2001 From: Sebastien Blot Date: Wed, 20 Sep 2017 10:11:01 +0200 Subject: Initial import --- src/sp_cookie_encryption.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/sp_cookie_encryption.h (limited to 'src/sp_cookie_encryption.h') 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 @@ + +#ifndef __SP_COOKIE_ENCRYPTION +#define __SP_COOKIE_ENCRYPTION + +#include "SAPI.h" +#include "tweetnacl.h" + +#include "sp_utils.h" + +#include "ext/hash/php_hash.h" +#include "ext/hash/php_hash_sha.h" +#include "ext/standard/base64.h" + +int hook_cookies(); +int decrypt_cookie(zval *pDest, int num_args, va_list args, zend_hash_key *hash_key); + +#endif /* __SP_COOKIE_ENCRYPTION */ -- cgit v1.3