diff options
author | tobhe <tobhe@cvs.openbsd.org> | 2020-11-18 22:24:04 +0000 |
---|---|---|
committer | tobhe <tobhe@cvs.openbsd.org> | 2020-11-18 22:24:04 +0000 |
commit | bc29bf31634fb92fecd9d3275c60397d31e18b87 (patch) | |
tree | 80e05c4d0dc06f63ece957537db627e7949addc2 /sbin/iked/policy.c | |
parent | 2b853ac4e431b56ba6be64bc449f2a4190bb4c22 (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.c | 4 |
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; |