factotum: add proto-specific key prompt

R=rsc
http://codereview.appspot.com/3852042
This commit is contained in:
Russ Cox 2011-01-02 18:50:00 -05:00
parent 3e899d0203
commit a2f6b810f5

View file

@ -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)