The /etc/iked/certs/ directory is used for both local and peer
authortobhe <tobhe@openbsd.org>
Wed, 8 Dec 2021 19:17:35 +0000 (19:17 +0000)
committertobhe <tobhe@openbsd.org>
Wed, 8 Dec 2021 19:17:35 +0000 (19:17 +0000)
commite66974bca7d34d266529540d58f4df6084f4262b
tree25d6594143dcebb631abb2d28013a883a90457ec
parenta461f665d61b25a402d8c20760133c04b5563824
The /etc/iked/certs/ directory is used for both local and peer
certificates.  Check if we have a matching key before using a
certificate as local to prevent cryptic error messages later
when the signature is checked.

ok markus@ patrick@
sbin/iked/ca.c