monotone-commits-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Monotone-commits-diffs] Revision 0223c835b764a50f68cdd3a00a0656e6cd5b3e


From: monotone
Subject: [Monotone-commits-diffs] Revision 0223c835b764a50f68cdd3a00a0656e6cd5b3eda
Date: Tue, 5 Feb 2008 05:05:34 +0100

-----------------------------------------------------------------
Revision: 0223c835b764a50f68cdd3a00a0656e6cd5b3eda
Ancestor: 0213fcfd90133f6a7c05c85e8866eafcc52b0eb9
Author: address@hidden
Date: 2008-02-05T03:17:49
Branch: net.venge.monotone.experiment.encapsulation

Modified files:
        app_state.hh cmd_key_cert.cc database.cc database.hh
        key_store.cc key_store.hh keys.cc ssh_agent.cc ssh_agent.hh

ChangeLog: 

* app_state.hh: Don't include ssh_agent.hh.
  (app_state): Remove ssh_agent object.

* key_store.hh (key_store): Use a scoped_ptr for the s member.
  Prototype new functions.
* key_store.cc: Include ssh_agent.hh.
  (key_store_state): Add a scoped_ptr<ssh_agent> member, and a
  get_agent() function that initializes it on demand.
  (key_store::~key_store): No need to delete s.
  (key_store::make_signature): Use get_agent.
  (key_store::add_key_to_agent, key_store::export_key_for_agent):
  New functions replacing code in cmd_key_cert.cc.
* cmd_key_cert.cc: Prune #includes and using-declarations.
  (ssh_agent_export): Use keys.export_key_for_agent.
  (ssh_agent_add): Use keys.add_key_to_agent.
* keys.cc: Don't include ssh_agent.hh.

* ssh_agent.hh: Use a scoped_ptr for the s member.
* ssh_agent.cc (ssh_agent::~ssh_agent): No need to delete s.

* database.hh (database): Use a scoped_ptr for the imp member.
  (conditional_transaction_guard): Remember the database, not the impl.
* database.cc: Tweaks for above.
  (database_impl): Make constructor and destructor public.
  (database::~database): No need to delete imp.
  (conditional_transaction_guard methods): s/imp/db.imp/

Attachment: txtqNnU1dVrAK.txt
Description: Diff [0213fcfd90133f6a7c05c85e8866eafcc52b0eb9] -> [0223c835b764a50f68cdd3a00a0656e6cd5b3eda]


reply via email to

[Prev in Thread] Current Thread [Next in Thread]