summaryrefslogtreecommitdiff
path: root/sbin/iked/ikev2_pld.c
diff options
context:
space:
mode:
authortobhe <tobhe@cvs.openbsd.org>2020-04-27 19:28:14 +0000
committertobhe <tobhe@cvs.openbsd.org>2020-04-27 19:28:14 +0000
commitd0151520f3dd730a7d82cd2e3d7c33a44907c4af (patch)
treea76d62cacf0fb738262e7361f7e9b77a6174859e /sbin/iked/ikev2_pld.c
parent16acbb206d625262b60ca91b67378153e2375c87 (diff)
Log with SPI_SA().
Diffstat (limited to 'sbin/iked/ikev2_pld.c')
-rw-r--r--sbin/iked/ikev2_pld.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/sbin/iked/ikev2_pld.c b/sbin/iked/ikev2_pld.c
index 9d82a38dfd6..1e6563ab5d3 100644
--- a/sbin/iked/ikev2_pld.c
+++ b/sbin/iked/ikev2_pld.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ikev2_pld.c,v 1.84 2020/04/18 19:47:45 tobhe Exp $ */
+/* $OpenBSD: ikev2_pld.c,v 1.85 2020/04/27 19:28:13 tobhe Exp $ */
/*
* Copyright (c) 2019 Tobias Heider <tobias.heider@stusta.de>
@@ -1418,7 +1418,8 @@ ikev2_pld_delete(struct iked *env, struct ikev2_payload *pld,
if ((peersas[i] = childsa_lookup(sa, spi,
del.del_protoid)) == NULL) {
log_warnx("%s: CHILD SA doesn't exist for spi %s",
- __func__, print_spi(spi, del.del_spisize));
+ SPI_SA(sa, __func__),
+ print_spi(spi, del.del_spisize));
continue;
}
@@ -1933,7 +1934,7 @@ ikev2_pld_eap(struct iked *env, struct ikev2_payload *pld,
len = betoh16(hdr.eap_length);
if (len < sizeof(*eap)) {
- log_info("%s: %s id %d length %d", __func__,
+ log_info("%s: %s id %d length %d", SPI_SA(sa, __func__),
print_map(hdr.eap_code, eap_code_map),
hdr.eap_id, betoh16(hdr.eap_length));
} else {
@@ -1943,7 +1944,7 @@ ikev2_pld_eap(struct iked *env, struct ikev2_payload *pld,
return (-1);
}
- log_info("%s: %s id %d length %d EAP-%s", __func__,
+ log_info("%s: %s id %d length %d EAP-%s", SPI_SA(sa, __func__),
print_map(eap->eap_code, eap_code_map),
eap->eap_id, betoh16(eap->eap_length),
print_map(eap->eap_type, eap_type_map));