View | Details | Raw Unified | Return to bug 232144 | Differences between
and this patch

Collapse All | Expand All

(-)net/ipdecap/Makefile (-1 / +1 lines)
Lines 3-9 Link Here
3
PORTNAME=	ipdecap
3
PORTNAME=	ipdecap
4
PORTVERSION=	0.7.1
4
PORTVERSION=	0.7.1
5
DISTVERSIONPREFIX=	v
5
DISTVERSIONPREFIX=	v
6
PORTREVISION=	1
6
PORTREVISION=	2
7
CATEGORIES=	net
7
CATEGORIES=	net
8
8
9
MAINTAINER=	loic-freebsd@loicp.eu
9
MAINTAINER=	loic-freebsd@loicp.eu
(-)net/ipdecap/files/patch-configure.ac (+11 lines)
Line 0 Link Here
1
--- configure.ac.orig	2018-10-10 02:16:26 UTC
2
+++ configure.ac
3
@@ -23,7 +23,7 @@ esac
4
 # Checks for libraries.
5
 AC_CHECK_LIB(pcap, pcap_offline_filter, [],
6
              AC_MSG_ERROR(pcap library not found ))
7
-AC_CHECK_LIB(crypto, EVP_CIPHER_CTX_init, [],
8
+AC_CHECK_LIB(crypto, EVP_CIPHER_CTX_new, [],
9
              AC_MSG_ERROR(OpenSSL library not found))
10
 
11
 # Checks for header files.
(-)net/ipdecap/files/patch-src_esp.h (+11 lines)
Line 0 Link Here
1
--- src/esp.h.orig	2018-10-10 02:21:27 UTC
2
+++ src/esp.h
3
@@ -47,7 +47,7 @@ typedef struct auth_method_t {
4
 typedef struct llflow_t {
5
   address_t addr_src;
6
   address_t addr_dst;
7
-  EVP_CIPHER_CTX ctx;
8
+  EVP_CIPHER_CTX *ctx;
9
   unsigned char *key;
10
   u_int32_t spi;
11
   char *crypt_name;
(-)net/ipdecap/files/patch-src_ipdecap.c (+22 lines)
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;

Return to bug 232144