summaryrefslogtreecommitdiff
path: root/sbin/iked
diff options
context:
space:
mode:
authortobhe <tobhe@cvs.openbsd.org>2020-03-27 12:53:32 +0000
committertobhe <tobhe@cvs.openbsd.org>2020-03-27 12:53:32 +0000
commit329462f367cf9b2a3bda53ce27667fc7c457f12e (patch)
tree4acd5bfb30845094b4d210be981fef3b00d83102 /sbin/iked
parent9b7f1c0d3a65310f64409649a0a296cb22b3c236 (diff)
Adjust cert type when choosing public key fallback.
ok patrick@
Diffstat (limited to 'sbin/iked')
-rw-r--r--sbin/iked/ca.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sbin/iked/ca.c b/sbin/iked/ca.c
index 0f3aed1f480..2950a018309 100644
--- a/sbin/iked/ca.c
+++ b/sbin/iked/ca.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ca.c,v 1.52 2020/03/24 19:14:53 tobhe Exp $ */
+/* $OpenBSD: ca.c,v 1.53 2020/03/27 12:53:31 tobhe Exp $ */
/*
* Copyright (c) 2010-2013 Reyk Floeter <reyk@openbsd.org>
@@ -511,6 +511,7 @@ ca_getreq(struct iked *env, struct imsg *imsg)
if (store->ca_pubkey.id_buf == NULL)
return (-1);
buf = ibuf_dup(store->ca_pubkey.id_buf);
+ type = store->ca_pubkey.id_type;
log_debug("%s: using local public key of type %s",
__func__, print_map(type, ikev2_cert_map));
break;