diff options
author | Russ Cox <rsc@swtch.com> | 2011-01-02 18:50:00 -0500 |
---|---|---|
committer | Russ Cox <rsc@swtch.com> | 2011-01-02 18:50:00 -0500 |
commit | a2f6b810f5be2a233fc58762ccc009a15edabf8b (patch) | |
tree | 2916d3eb2429e58c4348c1941eeffbd22980fad2 | |
parent | 3e899d02030f6456d22060f929efb8260c9dd511 (diff) | |
download | plan9port-a2f6b810f5be2a233fc58762ccc009a15edabf8b.tar.gz plan9port-a2f6b810f5be2a233fc58762ccc009a15edabf8b.tar.bz2 plan9port-a2f6b810f5be2a233fc58762ccc009a15edabf8b.zip |
factotum: add proto-specific key prompt
R=rsc
http://codereview.appspot.com/3852042
-rw-r--r-- | src/cmd/auth/factotum/conv.c | 2 |
1 files changed, 2 insertions, 0 deletions
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) |