#ifndef _CMDLINE_H_ce4357b6_ #define _CMDLINE_H_ce4357b6_ #include "algs.h" typedef struct tcpfwd TCPFWD; typedef struct tcpfwdarr TCPFWDARR; struct tcpfwdarr { TCPFWD **arr; int alloc; int len; } ; struct tcpfwd { int dir; #define FD_LTOR 1 #define FD_RTOL 2 char *listenhost; unsigned int listenport; char *connhost; unsigned int connport; char *text; int refs; } ; extern const char *host; extern const char **ports; extern int nports; extern const char *remuser; extern int showoffer; extern ALGLIST *algs_kex; extern ALGLIST *algs_hk; extern ALGLIST *algs_enc_c2s; extern ALGLIST *algs_enc_s2c; extern ALGLIST *algs_mac_c2s; extern ALGLIST *algs_mac_s2c; extern ALGLIST *algs_comp_c2s; extern ALGLIST *algs_comp_s2c; extern const char *lang_c2s; extern const char *lang_s2c; extern const char *hostkeydb; extern int savehostkey; extern const char *randpoolfile; extern const char **authkeys; extern int nauthkeys; extern const char *authkeydir; extern int nokeyauth; extern const char *hostkeydir; extern int noagent; extern const char *sshdir; extern char **argsbegin; extern int argscount; extern const char *keytype; extern const char *keysize; extern const char *keyfile; extern const char *keyfile_pub; extern const char *keyfile_priv; extern int opmode; #define OPMODE_RUN 1 #define OPMODE_KEYGEN 2 #define OPMODE_AGENT 3 #define OPMODE_SERVER 4 #define OPMODE_SETPASS 5 #define OPMODE_SETCOMM 6 #define OPMODE_ADD 7 #define OPMODE_LIST 8 #define OPMODE_DELETE 9 #define OPMODE_DELETE_ALL 10 extern const char *escchar; extern char *passphrase; extern const char *comment; extern char *newvalue; extern int oneconn; extern TCPFWDARR tcpfwd; extern int verbose; extern void handleargs(int, char **); extern const char *get_sshdir(const char *, ...) __attribute__((__format__(__printf__,1,2))); extern void parse_fwd(const char *, int, TCPFWD *, void (*)(const char *, ...)); extern TCPFWD **tcpfwdarr_get(TCPFWDARR *, int); extern int tcpfwdarr_len(TCPFWDARR *); extern void tcpfwdarr_del(TCPFWDARR *, int); extern void tcpfwd_ref(TCPFWD *); extern void tcpfwd_deref(TCPFWD *); #endif