1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-25 01:02:24 +00:00
putty-source/scp.h
Simon Tatham 9546cf7393 PSCP: After a password supplied with `-pw' fails to authenticate,
we should _not_ fall back to console input for a second attempt,
because this hangs batch files.

[originally from svn r513]
2000-07-21 09:17:05 +00:00

18 lines
468 B
C

/*
* scp.h
* Joris van Rantwijk, Aug 1999, Jun 2000.
*/
#define SCP_FLAG 1
#define SCP_VERBOSE 2
#define IS_SCP ((scp_flags & SCP_FLAG) != 0)
/* Exported from ssh.c */
extern int scp_flags;
extern int (*ssh_get_password)(const char *prompt, char *str, int maxlen);
char * ssh_scp_init(char *host, int port, char *cmd, char **realhost);
int ssh_scp_recv(unsigned char *buf, int len);
void ssh_scp_send(unsigned char *buf, int len);
void ssh_scp_send_eof(void);