comparison lib/config_file.c @ 84:7ef60ce2bdb2

2002-12-29 Brian Masney <masneyb@gftp.org> * lib/ssh.c lib/config_file.c lib/Makefile.am lib/gftp.h lib/options.h - removed old legacy SSH protocol and option to enable this protocol * lib/gftp.h - added GFTP_ERETRYABLE and GFTP_EFATAL error codes * lib/bookmark.c lib/local.c lib/protocols.c lib/rfc959.c lib/rfc2068.c lib/sshv2.c - return new error codes instead of -1 or -2 * lib/misc.c (gftp_*_sort_function_ds) - changed return values * src/gtk/transfer.c (connect_thread) - if return value of gftp_connect() is GFTP_EFATAL, don't attempt to retry the connection
author masneyb
date Sun, 29 Dec 2002 15:16:27 +0000
parents e2b30d0c97a4
children 6df043359b41
comparison
equal deleted inserted replaced
83:462de7034797 84:7ef60ce2bdb2
136 N_("Require a username/password for SSH connections"), NULL, GFTP_PORT_ALL}, 136 N_("Require a username/password for SSH connections"), NULL, GFTP_PORT_ALL},
137 {"ssh_use_askpass", N_("Use ssh-askpass util"), &ssh_use_askpass, CONFIG_CHECKBOX, 137 {"ssh_use_askpass", N_("Use ssh-askpass util"), &ssh_use_askpass, CONFIG_CHECKBOX,
138 N_("Use the ssh-askpass utility to grab the users password"), NULL, GFTP_PORT_GTK}, 138 N_("Use the ssh-askpass utility to grab the users password"), NULL, GFTP_PORT_GTK},
139 {"sshv2_use_sftp_subsys", N_("Use SSH2 SFTP subsys"), &sshv2_use_sftp_subsys, CONFIG_CHECKBOX, 139 {"sshv2_use_sftp_subsys", N_("Use SSH2 SFTP subsys"), &sshv2_use_sftp_subsys, CONFIG_CHECKBOX,
140 N_("Call ssh with the -s sftp flag. This is helpful because you won't have to know the remote path to the remote sftp-server"), NULL, GFTP_PORT_GTK}, 140 N_("Call ssh with the -s sftp flag. This is helpful because you won't have to know the remote path to the remote sftp-server"), NULL, GFTP_PORT_GTK},
141 {"enable_old_ssh", N_("Enable old SSH protocol"), &enable_old_ssh, CONFIG_CHECKBOX,
142 N_("Enable the old SSH protocol. You will need to download the sftp server from http:///www.xbill.org/sftp"), NULL, GFTP_PORT_ALL},
143 141
144 {"list_dblclk_action", "", &listbox_dblclick_action, CONFIG_HIDEINT, 142 {"list_dblclk_action", "", &listbox_dblclick_action, CONFIG_HIDEINT,
145 N_("This defines what will happen when you double click a file in the file listboxes. 0=View file 1=Edit file 2=Transfer file"), NULL, 0}, 143 N_("This defines what will happen when you double click a file in the file listboxes. 0=View file 1=Edit file 2=Transfer file"), NULL, 0},
146 {"listbox_local_width", "", &listbox_local_width, CONFIG_HIDEINT, 144 {"listbox_local_width", "", &listbox_local_width, CONFIG_HIDEINT,
147 N_("The default width of the local files listbox"), NULL, 0}, 145 N_("The default width of the local files listbox"), NULL, 0},
436 { 434 {
437 default_protocol = g_malloc (4); 435 default_protocol = g_malloc (4);
438 strcpy (default_protocol, "FTP"); 436 strcpy (default_protocol, "FTP");
439 } 437 }
440 438
441 if (!enable_old_ssh)
442 {
443 gftp_protocols[GFTP_SSH_NUM].name = NULL;
444 gftp_protocols[GFTP_SSH_NUM].init = NULL;
445 gftp_protocols[GFTP_SSH_NUM].url_prefix = NULL;
446 gftp_protocols[GFTP_SSH_NUM].shown = 0;
447 }
448
449 if ((tempstr = expand_path (LOG_FILE)) == NULL) 439 if ((tempstr = expand_path (LOG_FILE)) == NULL)
450 { 440 {
451 printf (_("gFTP Error: Bad log file name %s\n"), LOG_FILE); 441 printf (_("gFTP Error: Bad log file name %s\n"), LOG_FILE);
452 exit (0); 442 exit (0);
453 } 443 }