From a2f6b810f5be2a233fc58762ccc009a15edabf8b Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Sun, 2 Jan 2011 18:50:00 -0500 Subject: factotum: add proto-specific key prompt R=rsc http://codereview.appspot.com/3852042 --- src/cmd/auth/factotum/conv.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/cmd/auth') diff --git a/src/cmd/auth/factotum/conv.c b/src/cmd/auth/factotum/conv.c index 1c92c06c..3a8cf590 100644 --- 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) -- cgit v1.2.3