comparison svr-runopts.c @ 1654:cc0fc5131c5c

Rename EPKA -> Plugin
author Matt Johnston <matt@ucc.asn.au>
date Wed, 15 May 2019 21:59:45 +0800
parents 76189c9ffea2
children d32bcb5c557d
comparison
equal deleted inserted replaced
1653:76189c9ffea2 1654:cc0fc5131c5c
97 "-i Start for inetd\n" 97 "-i Start for inetd\n"
98 #endif 98 #endif
99 "-W <receive_window_buffer> (default %d, larger may be faster, max 1MB)\n" 99 "-W <receive_window_buffer> (default %d, larger may be faster, max 1MB)\n"
100 "-K <keepalive> (0 is never, default %d, in seconds)\n" 100 "-K <keepalive> (0 is never, default %d, in seconds)\n"
101 "-I <idle_timeout> (0 is never, default %d, in seconds)\n" 101 "-I <idle_timeout> (0 is never, default %d, in seconds)\n"
102 #if DROPBEAR_EPKA 102 #if DROPBEAR_PLUGIN
103 "-A <authplugin>[,<options>]\n" 103 "-A <authplugin>[,<options>]\n"
104 " Enable external public key auth through <authplugin>\n" 104 " Enable external public key auth through <authplugin>\n"
105 #endif 105 #endif
106 "-V Version\n" 106 "-V Version\n"
107 #if DEBUG_TRACE 107 #if DEBUG_TRACE
131 char* keepalive_arg = NULL; 131 char* keepalive_arg = NULL;
132 char* idle_timeout_arg = NULL; 132 char* idle_timeout_arg = NULL;
133 char* maxauthtries_arg = NULL; 133 char* maxauthtries_arg = NULL;
134 char* keyfile = NULL; 134 char* keyfile = NULL;
135 char c; 135 char c;
136 #if DROPBEAR_EPKA 136 #if DROPBEAR_PLUGIN
137 char* pubkey_plugin = NULL; 137 char* pubkey_plugin = NULL;
138 #endif 138 #endif
139 139
140 140
141 /* see printhelp() for options */ 141 /* see printhelp() for options */
161 svr_opts.nolocaltcp = 0; 161 svr_opts.nolocaltcp = 0;
162 #endif 162 #endif
163 #if DROPBEAR_SVR_REMOTETCPFWD 163 #if DROPBEAR_SVR_REMOTETCPFWD
164 svr_opts.noremotetcp = 0; 164 svr_opts.noremotetcp = 0;
165 #endif 165 #endif
166 #if DROPBEAR_EPKA 166 #if DROPBEAR_PLUGIN
167 svr_opts.pubkey_plugin = NULL; 167 svr_opts.pubkey_plugin = NULL;
168 svr_opts.pubkey_plugin_options = NULL; 168 svr_opts.pubkey_plugin_options = NULL;
169 #endif 169 #endif
170 170
171 #ifndef DISABLE_ZLIB 171 #ifndef DISABLE_ZLIB
283 exit(EXIT_SUCCESS); 283 exit(EXIT_SUCCESS);
284 break; 284 break;
285 case 'u': 285 case 'u':
286 /* backwards compatibility with old urandom option */ 286 /* backwards compatibility with old urandom option */
287 break; 287 break;
288 #if DROPBEAR_EPKA 288 #if DROPBEAR_PLUGIN
289 case 'A': 289 case 'A':
290 next = &pubkey_plugin; 290 next = &pubkey_plugin;
291 break; 291 break;
292 #endif 292 #endif
293 #if DEBUG_TRACE 293 #if DEBUG_TRACE
408 } 408 }
409 409
410 if (svr_opts.forced_command) { 410 if (svr_opts.forced_command) {
411 dropbear_log(LOG_INFO, "Forced command set to '%s'", svr_opts.forced_command); 411 dropbear_log(LOG_INFO, "Forced command set to '%s'", svr_opts.forced_command);
412 } 412 }
413 #if DROPBEAR_EPKA 413 #if DROPBEAR_PLUGIN
414 if (pubkey_plugin) { 414 if (pubkey_plugin) {
415 char *args = strchr(pubkey_plugin, ','); 415 char *args = strchr(pubkey_plugin, ',');
416 if (args) { 416 if (args) {
417 *args='\0'; 417 *args='\0';
418 ++args; 418 ++args;