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

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

[Monotone-commits-diffs] Revision c0152bc572d145eecdf63706c0dd47019cf70f


From: monotone
Subject: [Monotone-commits-diffs] Revision c0152bc572d145eecdf63706c0dd47019cf70fd9
Date: Wed, 30 Apr 2008 17:06:01 +0200

-----------------------------------------------------------------
Revision: c0152bc572d145eecdf63706c0dd47019cf70fd9
Ancestor: ab7577a75bab490f08b2ba5bd0146e6fea9aeece
Author: address@hidden
Date: 2008-04-30T14:16:06
Branch: net.venge.monotone.automate-netsync

Modified files:
        cmd_netsync.cc key_store.cc key_store.hh options_list.hh

ChangeLog: 

* option_list.hh: new option "--do-not-enforce-ssh-agent" which stops
certain automate commands from requiring the existence of a running
ssh agent to do the dirty authentication work
* key_store.hh/cc: two new methods:
enforce_ssh_agent(): this is basically the same as if the caller gives
--ssh-sign=only via command line, which means that we're only using
ssh-agent to decrypt and sign our keys and do not use the get_passphrase
lua hook or even password prompting to decrypt the key. This is most
useful for commands which run inside stdio and therefor are not
capable of handling interactivity
agent_knows_key(rsa_keypair_id const & ident): this checks if a certain
key ident is already known to any running ssh-agent instance, so the
key can be used to sign stuff and authenticate against netsync servers 
* cmd_netsync.cc(pull): ...use both here; if the option is not used,
we look for a running ssh agent instance and also if this agent knows
already of the key we're about to use for the pull; if either of these
things are not working out, we're refusing the pull and fail early.

Attachment: txtxDWC_E63VB.txt
Description: Diff [ab7577a75bab490f08b2ba5bd0146e6fea9aeece] -> [c0152bc572d145eecdf63706c0dd47019cf70fd9]


reply via email to

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