First half of `pageant-async' work. agent_query() is now passed a
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Mon, 28 Apr 2003 11:41:39 +0000 (11:41 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Mon, 28 Apr 2003 11:41:39 +0000 (11:41 +0000)
commit839f10dbef33ef2982689a05f8305690aba92734
treed3274c19c7a9a5ee3d7d097e6bd25d9083ff7a23
parent6c08dea9d05f59f558a373422894589a7f2d2879
First half of `pageant-async' work. agent_query() is now passed a
callback function; it may return 0 to indicate that it doesn't have
an answer _yet_, in which case it will call the callback later on
when it does, or it may return 1 to indicate that it's got an answer
right now. The Windows agent_query() implementation is functionally
unchanged and still synchronous, but the Unix one is async (since
that one was really easy to do via uxsel). ssh.c copes cheerfully
with either return value, so other ports are at liberty to be sync
or async as they choose.

git-svn-id: svn://svn.tartarus.org/sgt/putty@3153 cda61777-01e9-0310-a592-d414129be87e
pageant.c
pageantc.c
putty.h
ssh.c
unix/uxagentc.c