summaryrefslogtreecommitdiff
path: root/src/sp_cookie_encryption.h
blob: 889a89cbc7a8be2edb04e8809693b76a47572f92 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19

#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 */