From 7a1c801512bd8ef75a2b10f24ab01d61f4ea469f Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Mon, 29 Jun 2026 15:41:08 +0200 Subject: [PATCH] vici: Also wipe cached PINs during clear-creds command The PINs are not necessary anymore when we remove all loaded private keys. Fixes: 2ceeb96db51a ("vici: Add command to load a private key from a token") --- src/libcharon/plugins/vici/vici_cred.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libcharon/plugins/vici/vici_cred.c b/src/libcharon/plugins/vici/vici_cred.c index ff450fe1f..75ab3873e 100644 --- a/src/libcharon/plugins/vici/vici_cred.c +++ b/src/libcharon/plugins/vici/vici_cred.c @@ -531,6 +531,7 @@ CALLBACK(clear_creds, vici_message_t*, private_vici_cred_t *this, char *name, u_int id, vici_message_t *message) { this->creds->clear(this->creds); + this->pins->clear(this->pins); this->authority->clear_ca_certs(this->authority); lib->credmgr->flush_cache(lib->credmgr, CERT_ANY);