plan9port

fork of plan9port with libvec, libstr and libsdb
Log | Files | Refs | README | LICENSE

commit a2f6b810f5be2a233fc58762ccc009a15edabf8b
parent 3e899d02030f6456d22060f929efb8260c9dd511
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:
Msrc/cmd/auth/factotum/conv.c | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/cmd/auth/factotum/conv.c b/src/cmd/auth/factotum/conv.c @@ -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)