From 714e4a22a82295c41360fbfa6019a31b1e2a0f30 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Tue, 27 Aug 2013 21:20:16 +0200 Subject: trust: Do reload object removals inside a loading block So that validation/storage logic doesn't kick in if a file was removed outside of p11-kit trust module. --- trust/token.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'trust') diff --git a/trust/token.c b/trust/token.c index 427c1d5..eeebb82 100644 --- a/trust/token.c +++ b/trust/token.c @@ -137,10 +137,14 @@ loader_gone_file (p11_token *token, CK_RV rv; + p11_index_load (token->index); + /* Remove everything at this origin */ rv = p11_index_replace_all (token->index, origin, CKA_INVALID, NULL); return_if_fail (rv == CKR_OK); + p11_index_finish (token->index); + /* No longer track info about this file */ loader_not_loaded (token, filename); } -- cgit v1.1