Line 0
Link Here
|
|
|
1 |
--- src/ipdecap.c.orig 2018-10-10 02:20:40 UTC |
2 |
+++ src/ipdecap.c |
3 |
@@ -356,8 +356,8 @@ int add_flow(char *ip_src, char *ip_dst, char *crypt_n |
4 |
flow->auth_name = strdup(auth_name); |
5 |
flow->key = dec_key; |
6 |
|
7 |
- EVP_CIPHER_CTX ctx; |
8 |
- EVP_CIPHER_CTX_init(&ctx); |
9 |
+ EVP_CIPHER_CTX *ctx; |
10 |
+ EVP_CIPHER_CTX_init(ctx); |
11 |
flow->ctx = ctx; |
12 |
|
13 |
// Adding to linked list |
14 |
@@ -743,7 +743,7 @@ void process_esp_packet(u_char const *payload, const i |
15 |
char ip_src[INET_ADDRSTRLEN+1]; |
16 |
char ip_dst[INET_ADDRSTRLEN+1]; |
17 |
llflow_t *flow = NULL; |
18 |
- EVP_CIPHER_CTX ctx; |
19 |
+ EVP_CIPHER_CTX *ctx; |
20 |
const EVP_CIPHER *cipher = NULL; |
21 |
int packet_size, rc, len, remaining; |
22 |
int ivlen; |