X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/c44bf5bd7bf680c21356864ac5ae72ab29e55ce6..a5dd84675905dfc4274cf45424e6f3a9e385e1a7:/pageantc.c diff --git a/pageantc.c b/pageantc.c index 3d5e61f2..f647eefa 100644 --- a/pageantc.c +++ b/pageantc.c @@ -2,7 +2,6 @@ * Pageant client code. */ -#include #include #include @@ -27,6 +26,13 @@ int agent_exists(void) return TRUE; } +/* + * Unfortunately, this asynchronous agent request mechanism doesn't + * appear to work terribly well. I'm going to comment it out for + * the moment, and see if I can come up with a better one :-/ + */ +#ifdef WINDOWS_ASYNC_AGENT + struct agent_query_data { COPYDATASTRUCT cds; unsigned char *mapping; @@ -64,6 +70,8 @@ DWORD WINAPI agent_query_thread(LPVOID param) return 0; } +#endif + int agent_query(void *in, int inlen, void **out, int *outlen, void (*callback)(void *, void *, int), void *callback_ctx) { @@ -90,6 +98,7 @@ int agent_query(void *in, int inlen, void **out, int *outlen, cds.dwData = AGENT_COPYDATA_ID; cds.cbData = 1 + strlen(mapname); cds.lpData = mapname; +#ifdef WINDOWS_ASYNC_AGENT if (callback != NULL && !(flags & FLAG_SYNCAGENT)) { /* * We need an asynchronous Pageant request. Since I know of @@ -112,6 +121,7 @@ int agent_query(void *in, int inlen, void **out, int *outlen, return 0; sfree(data); } +#endif /* * The user either passed a null callback (indicating that the