diff lib/gftp.h @ 458:656a0b3d1403

2004-4-10 Brian Masney <masneyb@gftp.org> * lib/gftp.h lib/pty.c lib/sshv2.c - added gftp_exec() that will always open a pseudo terminal and a separate socket pair for the stdin/stdout file descriptors. The banner and password request will come through the pseudo terminal while the sftp protocol specific data will always come through the socket pair. This allows for a much cleaner SSH login sequence that does not require echo xsftp to capture a login banner. Removed option ssh_use_askpass since it is no longer needed. This code is based off of a suggestion from Gertjan Halkes * src/text/gftp-text.c - removed setting the options ssh_use_askpass and sshv2_use_sftp_subsys
author masneyb
date Sat, 10 Apr 2004 15:14:46 +0000
parents 83cfffb2878a
children 075f89b4395c
line wrap: on
line diff
--- a/lib/gftp.h	Sat Apr 10 00:28:31 2004 +0000
+++ b/lib/gftp.h	Sat Apr 10 15:14:46 2004 +0000
@@ -1007,12 +1007,9 @@
 /* pty.c */
 char * gftp_get_pty_impl 		( void );
 
-pid_t gftp_exec_with_new_pty 		( gftp_request * request, 
-					  int *fdm, 
-					  char **args );
-
-pid_t gftp_exec_without_new_pty 	( gftp_request * request, 
-					  int *fdm, 
+pid_t gftp_exec 			( gftp_request * request,
+					  int *fdm,
+					  int *ptymfd,
 					  char **args );
 
 #ifdef USE_SSL