diff options
| author | Xiyue Deng <manphiz@debian.org> | 2026-05-24 19:23:48 -0700 |
|---|---|---|
| committer | Eli Zaretskii <eliz@gnu.org> | 2026-06-04 08:37:25 +0300 |
| commit | d852d36c77fa5f9e7b762ce6b6ff0972a8fcc8ac (patch) | |
| tree | 2e23c67ceca5e795668abb4c358a7562cea2f8dc /test | |
| parent | c9dfe2abe6339c7b48a9f62c7843d8c75ce7e644 (diff) | |
Decrypt plstore when needed in 'plstore-delete'
When a plstore has entries with secret keys, processing the plstore
file would require decryption first. However, unlike other functions
like 'plstore-get', 'plstore-put', etc., 'plstore-delete' does not
check for secret keys and decrypt the file, which would corrupt the
file when deleting any entries with secret keys.
This patch adds checking for secret keys and decrypt the file when
needed before removing the entry with name.
* lisp/plstore.el (plstore--has-secret-keys): New.
* lisp/plstore.el (plstore-delete): Check for secret keys of the entry
and decrypt plstore before performing the deletion. (Bug#81061)
Diffstat (limited to 'test')
0 files changed, 0 insertions, 0 deletions
