*/
#include <windows.h>
+#ifndef AUTO_WINSOCK
+#ifdef WINSOCK_TWO
+#include <winsock2.h>
+#else
#include <winsock.h>
+#endif
+#endif
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
static void gui_update_stats(char *name, unsigned long size, int percentage, time_t elapsed);
/*
- * This function is needed to link with ssh.c, but it never gets called.
+ * These functions are needed to link with other modules, but
+ * (should) never get called.
*/
-void term_out(void)
-{
- abort();
-}
+void term_out(void) { abort(); }
+void begin_session(void) { }
+void write_clip (void *data, int len) { }
+void term_deselect(void) { }
/* GUI Adaptation - Sept 2000 */
void send_msg(HWND h, UINT message, WPARAM wParam)
exit(1);
}
+void connection_fatal(char *fmt, ...)
+{
+ char str[0x100]; /* Make the size big enough */
+ va_list ap;
+ va_start(ap, fmt);
+ strcpy(str, "Fatal:");
+ vsprintf(str+strlen(str), fmt, ap);
+ va_end(ap);
+ strcat(str, "\n");
+ tell_str(stderr, str);
+
+ exit(1);
+}
/*
* Print an error message and exit after closing the SSH link.
default_protocol = PROT_TELNET;
- flags = 0;
+ flags = FLAG_STDERR;
ssh_get_password = &get_password;
init_winsock();