[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Monotone-commits-diffs] Revision bfb11eb5801e5a6ded2bf73536d9c1543e9e84
From: |
monotone |
Subject: |
[Monotone-commits-diffs] Revision bfb11eb5801e5a6ded2bf73536d9c1543e9e8475 |
Date: |
Wed, 6 Feb 2008 10:08:06 +0100 |
-----------------------------------------------------------------
Revision: bfb11eb5801e5a6ded2bf73536d9c1543e9e8475
Ancestor: 0821f743ea6dcb2cf0c9cefba746665f0aceba51
Author: address@hidden
Date: 2008-02-06T04:53:05
Branch: net.venge.monotone.experiment.encapsulation
Modified files:
database_check.cc key_store.cc key_store.hh keys.cc keys.hh
rcs_import.cc ssh_agent.cc
ChangeLog:
* key_store.cc (key_store_state): Make a struct. Remove friend-decl.
Replace 'signers' with 'privkey_cache' and 'signer_cache'. All private
methods of key_store converted to methods of key_store_state. Add
maybe_get_key_pair, put_key_pair, migrate_key_pair methods, identical
to the methods of the same name in key_store (which are now wrappers).
(keyreader): Needs only a reference to key_store_state.
(key_store::set_key_dir): If the key_dir changes, clear all in-memory
caches.
(read_key_dir): Fold into sole caller.
(key_store_state::decrypt_private_key): New method, replaces
global function get_private_key.
(key_store::cache_decrypted_key): New method.
(key_store::hook_get_passphrase, key_store::hook_persist_phrase_ok): Delete.
* key_store.hh: Update to match.
* keys.cc: Prune includes and using-declarations.
(get_passphrase): Delete variant that takes a key_store argument.
(get_user_key): Don't set keys.signing_key. Do cache the key even if we
don't have a database. Use cache_decrypted_key instead of make_signature.
(get_private_key): Delete.
* keys.hh: Prune includes and using-declarations. Update to match keys.cc.
* database_check.cc, rcs_import.cc, ssh_agent.cc: Remove unnecessary
include of keys.hh.
txtp3VwmkAI79.txt
Description: Diff [0821f743ea6dcb2cf0c9cefba746665f0aceba51] -> [bfb11eb5801e5a6ded2bf73536d9c1543e9e8475]
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Monotone-commits-diffs] Revision bfb11eb5801e5a6ded2bf73536d9c1543e9e8475,
monotone <=