vici: Also wipe cached PINs during clear-creds command

The PINs are not necessary anymore when we remove all loaded private keys.

Fixes: 2ceeb96db5 ("vici: Add command to load a private key from a token")
This commit is contained in:
Tobias Brunner
2026-07-24 08:47:37 +02:00
parent 14a811b6af
commit 7a1c801512
+1
View File
@@ -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);