no-agent.c 400 B

123456789101112
  1. #include "putty.h"
  2. bool agent_exists(void) { return false; }
  3. Socket *agent_connect(Plug *plug) {
  4. return new_error_socket_fmt(
  5. plug, "no actual networking in this application");
  6. }
  7. void agent_cancel_query(agent_pending_query *pq) {}
  8. agent_pending_query *agent_query(
  9. strbuf *query, void **out, int *outlen,
  10. void (*callback)(void *, void *, int), void *callback_ctx) {return NULL;}