blob: 6d204bb22f2633c9779499298da1ff784c154c1d (
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();
int decrypt_cookie(zval *pDest, int num_args, va_list args,
zend_hash_key *hash_key);
#endif /* __SP_COOKIE_ENCRYPTION */
|