summaryrefslogtreecommitdiff
path: root/usr.bin/ssh/sftp-client.h
diff options
context:
space:
mode:
authorDamien Miller <djm@cvs.openbsd.org>2001-03-07 10:11:24 +0000
committerDamien Miller <djm@cvs.openbsd.org>2001-03-07 10:11:24 +0000
commitd3a6611d24ba76cf0d9a61c20b0b441946faf24a (patch)
treeb6738e88f9e37ec29aee73922fbac8666f69b3be /usr.bin/ssh/sftp-client.h
parenteb4a749e1d1cec4f3abb59abbe1905c6cab0fc3f (diff)
Support for new draft (draft-ietf-secsh-filexfer-01). New symlink handling
functions and small protocol change.
Diffstat (limited to 'usr.bin/ssh/sftp-client.h')
-rw-r--r--usr.bin/ssh/sftp-client.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/usr.bin/ssh/sftp-client.h b/usr.bin/ssh/sftp-client.h
index 838b46b0b3a..e836c0d668d 100644
--- a/usr.bin/ssh/sftp-client.h
+++ b/usr.bin/ssh/sftp-client.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: sftp-client.h,v 1.1 2001/02/04 11:11:54 djm Exp $ */
+/* $OpenBSD: sftp-client.h,v 1.2 2001/03/07 10:11:23 djm Exp $ */
/*
* Copyright (c) 2001 Damien Miller. All rights reserved.
@@ -26,7 +26,10 @@
/* Client side of SSH2 filexfer protocol */
-/* Initialiase a SSH filexfer connection */
+/*
+ * Initialiase a SSH filexfer connection. Returns -1 on error or
+ * protocol version on success.
+ */
int do_init(int fd_in, int fd_out);
/* Close file referred to by 'handle' */
@@ -67,6 +70,12 @@ char *do_realpath(int fd_in, int fd_out, char *path);
/* Rename 'oldpath' to 'newpath' */
int do_rename(int fd_in, int fd_out, char *oldpath, char *newpath);
+/* Rename 'oldpath' to 'newpath' */
+int do_symlink(int fd_in, int fd_out, char *oldpath, char *newpath);
+
+/* Return target of symlink 'path' - caller must free result */
+char *do_readlink(int fd_in, int fd_out, char *path);
+
/* XXX: add callbacks to do_download/do_upload so we can do progress meter */
/*