projects
/
u
/
mdw
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
PSCP now uses the modern SFTP protocol if it can, and falls back to
[u/mdw/putty]
/
ssh.h
diff --git
a/ssh.h
b/ssh.h
index
014c406
..
f2558d8
100644
(file)
--- a/
ssh.h
+++ b/
ssh.h
@@
-1,6
+1,11
@@
#include <string.h>
#include "puttymem.h"
#include <string.h>
#include "puttymem.h"
+#include "network.h"
+
+extern void sshfwd_close(struct ssh_channel *c);
+extern int sshfwd_write(struct ssh_channel *c, char *, int);
+extern void sshfwd_unthrottle(struct ssh_channel *c, int bufsize);
/*
* Useful thing.
/*
* Useful thing.
@@
-190,6
+195,13
@@
extern const struct ssh_mac ssh_sha1_buggy;
*/
extern char sshver[];
*/
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
#ifndef MSCRYPTOAPI
void SHATransform(word32 * digest, word32 * data);
#endif
@@
-199,6
+211,8
@@
void random_add_noise(void *noise, int length);
void random_add_heavynoise(void *noise, int length);
void logevent(char *);
void random_add_heavynoise(void *noise, int length);
void logevent(char *);
+void *new_sock_channel(Socket s); // allocates and register a new channel for port forwarding
+void ssh_send_port_open(void *channel, char *hostname, int port, char *org);
Bignum copybn(Bignum b);
Bignum bn_power_2(int n);
Bignum copybn(Bignum b);
Bignum bn_power_2(int n);
@@
-271,6
+285,7
@@
int rsa_generate(struct RSAKey *key, int bits, progfn_t pfn,
Bignum primegen(int bits, int modulus, int residue, int phase,
progfn_t pfn, void *pfnparam);
Bignum primegen(int bits, int modulus, int residue, int phase,
progfn_t pfn, void *pfnparam);
+
/*
* zlib compression.
*/
/*
* zlib compression.
*/