summaryrefslogtreecommitdiff
path: root/regress/sbin/iked
diff options
context:
space:
mode:
authortobhe <tobhe@cvs.openbsd.org>2020-11-21 19:25:09 +0000
committertobhe <tobhe@cvs.openbsd.org>2020-11-21 19:25:09 +0000
commit0e2acfc96252b0a1b2d564204742ebad377d0273 (patch)
treea37b42181749afc2ba7bbb60868cbf214697bd5b /regress/sbin/iked
parent0a0968dfaa058e27eb2add9dfebec7796630a576 (diff)
Fix ikev2_nat_detection().
Diffstat (limited to 'regress/sbin/iked')
-rw-r--r--regress/sbin/iked/parser/common.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/regress/sbin/iked/parser/common.c b/regress/sbin/iked/parser/common.c
index 92f6a578d60..f5775095edb 100644
--- a/regress/sbin/iked/parser/common.c
+++ b/regress/sbin/iked/parser/common.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: common.c,v 1.7 2020/11/18 22:24:03 tobhe Exp $ */
+/* $OpenBSD: common.c,v 1.8 2020/11/21 19:25:08 tobhe Exp $ */
/*
* A bunch of stub functions so we can compile and link ikev2_pld.c
* in a standalone program for testing purposes.
@@ -39,7 +39,7 @@ void timer_set(struct iked *, struct iked_timer *,
void timer_add(struct iked *, struct iked_timer *, int);
void timer_del(struct iked *, struct iked_timer *);
ssize_t ikev2_nat_detection(struct iked *, struct iked_message *,
- void *, size_t, u_int);
+ void *, size_t, u_int, int);
int ca_setreq(struct iked *, struct iked_sa *, struct iked_static_id *,
u_int8_t, u_int8_t, u_int8_t *, size_t, enum privsep_procid);
int ikev2_print_id(struct iked_id *, char *, size_t);
@@ -142,7 +142,7 @@ timer_del(struct iked *env, struct iked_timer *tmr)
ssize_t
ikev2_nat_detection(struct iked *env, struct iked_message *msg,
- void *ptr, size_t len, u_int type)
+ void *ptr, size_t len, u_int type, int frompeer)
{
return (0);
}