1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-16 10:37:38 -05:00

PSCP now uses the modern SFTP protocol if it can, and falls back to

scp1 if it can't. Currently not very tested - I checked it in as
soon as it completed a successful recursive copy in both directions.
Also, one known bug: you can't specify a remote wildcard, because by
the nature of SFTP we'll need to implement the wildcard engine on
the client side. I do intend to do this (and use the same wildcard
engine in PSFTP as well) but I haven't got round to it yet.

[originally from svn r1208]
This commit is contained in:
Simon Tatham
2001-08-26 18:32:28 +00:00
parent 605fa91201
commit ff9a038cdd
9 changed files with 756 additions and 153 deletions

7
ssh.h
View File

@ -195,6 +195,13 @@ extern const struct ssh_mac ssh_sha1_buggy;
*/
extern char sshver[];
/*
* Gross hack: pscp will try to start SFTP but fall back to scp1 if
* that fails. This variable is the means by which scp.c can reach
* into the SSH code and find out which one it got.
*/
extern int ssh_fallback_cmd;
#ifndef MSCRYPTOAPI
void SHATransform(word32 * digest, word32 * data);
#endif