summaryrefslogtreecommitdiff
path: root/sbin/iked/policy.c
diff options
context:
space:
mode:
authortobhe <tobhe@cvs.openbsd.org>2020-11-18 22:24:04 +0000
committertobhe <tobhe@cvs.openbsd.org>2020-11-18 22:24:04 +0000
commitbc29bf31634fb92fecd9d3275c60397d31e18b87 (patch)
tree80e05c4d0dc06f63ece957537db627e7949addc2 /sbin/iked/policy.c
parent2b853ac4e431b56ba6be64bc449f2a4190bb4c22 (diff)
Constify sa in ikev2_pld_eap(). The parser code must not change any
sa or policy state, this should help make it clearer. ok patrick@
Diffstat (limited to 'sbin/iked/policy.c')
-rw-r--r--sbin/iked/policy.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/iked/policy.c b/sbin/iked/policy.c
index 015dcefdaff..0b86540787b 100644
--- a/sbin/iked/policy.c
+++ b/sbin/iked/policy.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: policy.c,v 1.70 2020/09/09 21:25:42 tobhe Exp $ */
+/* $OpenBSD: policy.c,v 1.71 2020/11/18 22:24:03 tobhe Exp $ */
/*
* Copyright (c) 2010-2013 Reyk Floeter <reyk@openbsd.org>
@@ -331,7 +331,7 @@ sa_stateflags(struct iked_sa *sa, unsigned int flags)
}
int
-sa_stateok(struct iked_sa *sa, int state)
+sa_stateok(const struct iked_sa *sa, int state)
{
unsigned int require;