commit a2f6b810f5be2a233fc58762ccc009a15edabf8b from: Russ Cox date: Sun Jan 02 23:50:00 2011 UTC factotum: add proto-specific key prompt R=rsc http://codereview.appspot.com/3852042 commit - 3e899d02030f6456d22060f929efb8260c9dd511 commit + a2f6b810f5be2a233fc58762ccc009a15edabf8b blob - 1c92c06c9ce1aa2415c5123054f408c90ea100ce blob + 3a8cf590d904bc21fc22eba2b3195e1adf719beb --- src/cmd/auth/factotum/conv.c +++ 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)