X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/putty/blobdiff_plain/3d88e64dfcf5dc0fd361ce0c504c67a9196ce44c..f26b3d771ea81495859eb4d899af447fc9b6b3e5:/psftp.c diff --git a/psftp.c b/psftp.c index b9f63709..75161519 100644 --- a/psftp.c +++ b/psftp.c @@ -1514,6 +1514,16 @@ char *do_select(SOCKET skt, int startup) extern int select_result(WPARAM, LPARAM); /* + * In psftp, all agent requests should be synchronous, so this is a + * never-called stub. + */ +void agent_schedule_callback(void (*callback)(void *, void *, int), + void *callback_ctx, void *data, int len) +{ + assert(!"We shouldn't be here"); +} + +/* * Receive a block of data from the SSH link. Block until all data * is available. * @@ -1681,7 +1691,7 @@ static void usage(void) static int psftp_connect(char *userhost, char *user, int portnumber) { char *host, *realhost; - char *err; + const char *err; /* Separate host and username */ host = userhost; @@ -1862,7 +1872,7 @@ int main(int argc, char *argv[]) char *batchfile = NULL; int errors = 0; - flags = FLAG_STDERR | FLAG_INTERACTIVE; + flags = FLAG_STDERR | FLAG_INTERACTIVE | FLAG_SYNCAGENT; cmdline_tooltype = TOOLTYPE_FILETRANSFER; ssh_get_line = &console_get_line; init_winsock();