aqsync.c 535 B

12345678910111213141516171819202122
  1. /*
  2. * aqsync.c: the agent_query_synchronous() wrapper function.
  3. *
  4. * This is a very small thing to have to put in its own module, but it
  5. * wants to be shared between back ends, and exist in any SSH client
  6. * program and also Pageant, and _nowhere else_ (because it pulls in
  7. * the main agent_query).
  8. */
  9. #include <assert.h>
  10. #include "putty.h"
  11. void agent_query_synchronous(strbuf *query, void **out, int *outlen)
  12. {
  13. agent_pending_query *pending;
  14. pending = agent_query(query, out, outlen, NULL, 0);
  15. assert(!pending);
  16. }