blob: aede47957e3b6d9b109555afeef41a1ab4f20ea3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#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"
#define SAMESITE_COOKIE_FORMAT "; samesite="
int hook_cookies(void);
int decrypt_cookie(zval *pDest, int num_args, va_list args,
zend_hash_key *hash_key);
#endif /* __SP_COOKIE_ENCRYPTION */
|