factotum: add proto-specific key prompt
R=rsc http://codereview.appspot.com/3852042
This commit is contained in:
parent
3e899d0203
commit
a2f6b810f5
1 changed files with 2 additions and 0 deletions
|
|
@ -245,6 +245,8 @@ convneedkey(Conv *c, Attr *a)
|
||||||
*/
|
*/
|
||||||
if(convgetrpc(c, -1) == nil)
|
if(convgetrpc(c, -1) == nil)
|
||||||
return -1;
|
return -1;
|
||||||
|
if(conv->proto)
|
||||||
|
a = addattrs(parseattr(c->proto->keyprompt), a);
|
||||||
flog("convneedkey %A", a);
|
flog("convneedkey %A", a);
|
||||||
rpcrespond(c, "needkey %A", a);
|
rpcrespond(c, "needkey %A", a);
|
||||||
if(convgetrpc(c, -1) == nil)
|
if(convgetrpc(c, -1) == nil)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue