diff options
author | Stef Walter <stef@thewalter.net> | 2013-08-27 21:20:16 +0200 |
---|---|---|
committer | Stef Walter <stef@thewalter.net> | 2013-08-29 10:30:04 +0200 |
commit | 714e4a22a82295c41360fbfa6019a31b1e2a0f30 (patch) | |
tree | 14662bb0a6b3479d1b63d85d0f7706107ae4742b /trust | |
parent | 570403f3421b222167196d380c60eb8430eb4cd7 (diff) |
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.
Diffstat (limited to 'trust')
-rw-r--r-- | trust/token.c | 4 |
1 files changed, 4 insertions, 0 deletions
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); } |