#include #include #include #include enum { Encnone, Encssl, Enctls, }; static char *encprotos[] = { [Encnone] = "clear", [Encssl] = "ssl", [Enctls] = "tls", nil, }; char *keyspec = ""; char *filterp; char *ealgs = "rc4_256 sha1"; int encproto = Encnone; AuthInfo *ai; int debug; int doauth = 1; int timedout; int connectez(char*, char*); void sysfatal(char*, ...); void usage(void); int filter(int, char *, char *); int catcher(void *v, char *msg) { timedout = 1; if(strcmp(msg, "alarm") == 0) return 1; return 0; } static int lookup(char *s, char *l[]) { int i; for (i = 0; l[i] != 0; i++) if (strcmp(l[i], s) == 0) return i; return -1; } static char* srvname(char *addr) { int i; for(i=0; i