comparison cli-runopts.c @ 225:ca7e76d981d9 agent-client

- progress towards client agent forwarding (incomplete and does not compile)
author Matt Johnston <matt@ucc.asn.au>
date Mon, 18 Jul 2005 14:32:52 +0000
parents aad4b3f58556
children 79bf1023cf11
comparison
equal deleted inserted replaced
224:1dbd2473482f 225:ca7e76d981d9
50 "-t Allocate a pty\n" 50 "-t Allocate a pty\n"
51 "-T Don't allocate a pty\n" 51 "-T Don't allocate a pty\n"
52 #ifdef ENABLE_CLI_PUBKEY_AUTH 52 #ifdef ENABLE_CLI_PUBKEY_AUTH
53 "-i <identityfile> (multiple allowed)\n" 53 "-i <identityfile> (multiple allowed)\n"
54 #endif 54 #endif
55 #ifdef ENABLE_CLI_AGENTFWD
56 "-A Enable agent auth forwarding\n"
57 #endif
55 #ifdef ENABLE_CLI_LOCALTCPFWD 58 #ifdef ENABLE_CLI_LOCALTCPFWD
56 "-L <listenport:remotehost:remoteport> Local port forwarding\n" 59 "-L <listenport:remotehost:remoteport> Local port forwarding\n"
57 #endif 60 #endif
58 #ifdef ENABLE_CLI_REMOTETCPFWD 61 #ifdef ENABLE_CLI_REMOTETCPFWD
59 "-R <listenport:remotehost:remoteport> Remote port forwarding\n" 62 "-R <listenport:remotehost:remoteport> Remote port forwarding\n"
94 #ifdef ENABLE_CLI_LOCALTCPFWD 97 #ifdef ENABLE_CLI_LOCALTCPFWD
95 cli_opts.localfwds = NULL; 98 cli_opts.localfwds = NULL;
96 #endif 99 #endif
97 #ifdef ENABLE_CLI_REMOTETCPFWD 100 #ifdef ENABLE_CLI_REMOTETCPFWD
98 cli_opts.remotefwds = NULL; 101 cli_opts.remotefwds = NULL;
102 #endif
103 #ifdef ENABLE_CLI_AGENTFWD
104 cli_opts.agent_fwd = 0;
105 cli_opts.agent_keys_loaded = 0;
99 #endif 106 #endif
100 opts.nolocaltcp = 0; 107 opts.nolocaltcp = 0;
101 opts.noremotetcp = 0; 108 opts.noremotetcp = 0;
102 /* not yet 109 /* not yet
103 opts.ipv4 = 1; 110 opts.ipv4 = 1;
178 break; 185 break;
179 case 'h': 186 case 'h':
180 printhelp(); 187 printhelp();
181 exit(EXIT_SUCCESS); 188 exit(EXIT_SUCCESS);
182 break; 189 break;
190 #ifdef ENABLE_CLI_AGENTFWD
191 case 'A':
192 cli_opts.agent_fwd = 1;
193 break;
194 #endif
183 #ifdef DEBUG_TRACE 195 #ifdef DEBUG_TRACE
184 case 'v': 196 case 'v':
185 debug_trace = 1; 197 debug_trace = 1;
186 break; 198 break;
187 #endif 199 #endif
286 298
287 nextkey = (struct SignKeyList*)m_malloc(sizeof(struct SignKeyList)); 299 nextkey = (struct SignKeyList*)m_malloc(sizeof(struct SignKeyList));
288 nextkey->key = key; 300 nextkey->key = key;
289 nextkey->next = cli_opts.privkeys; 301 nextkey->next = cli_opts.privkeys;
290 nextkey->type = keytype; 302 nextkey->type = keytype;
303 nextkey->source = SIGNKEY_SOURCE_RAW_FILE;
291 cli_opts.privkeys = nextkey; 304 cli_opts.privkeys = nextkey;
292 } 305 }
293 } 306 }
294 #endif 307 #endif
295 308