tfactotum: add proto-specific key prompt - plan9port - [fork] Plan 9 from user space
(HTM) git clone git://src.adamsgaard.dk/plan9port
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit a2f6b810f5be2a233fc58762ccc009a15edabf8b
(DIR) parent 3e899d02030f6456d22060f929efb8260c9dd511
(HTM) Author: Russ Cox <rsc@swtch.com>
Date: Sun, 2 Jan 2011 18:50:00 -0500
factotum: add proto-specific key prompt
R=rsc
http://codereview.appspot.com/3852042
Diffstat:
M src/cmd/auth/factotum/conv.c | 2 ++
1 file changed, 2 insertions(+), 0 deletions(-)
---
(DIR) diff --git a/src/cmd/auth/factotum/conv.c b/src/cmd/auth/factotum/conv.c
t@@ -245,6 +245,8 @@ convneedkey(Conv *c, Attr *a)
*/
if(convgetrpc(c, -1) == nil)
return -1;
+ if(conv->proto)
+ a = addattrs(parseattr(c->proto->keyprompt), a);
flog("convneedkey %A", a);
rpcrespond(c, "needkey %A", a);
if(convgetrpc(c, -1) == nil)