]> andersk Git - openssh.git/blobdiff - sftp-common.h
- djm@cvs.openbsd.org 2010/01/13 01:40:16
[openssh.git] / sftp-common.h
index b42ba91409f8fc2497b5b76201fddcf91876a127..9ed86c070dd7b9fb760eab8189d8e325797c1d66 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: sftp-common.h,v 1.5 2003/11/10 16:23:41 jakob Exp $   */
+/* $OpenBSD: sftp-common.h,v 1.11 2010/01/13 01:40:16 djm Exp $ */
 
 /*
  * Copyright (c) 2001 Markus Friedl.  All rights reserved.
@@ -25,6 +25,9 @@
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/* Maximum packet that we are willing to send/accept */
+#define SFTP_MAX_MSG_LENGTH    (256 * 1024)
+
 typedef struct Attrib Attrib;
 
 /* File attributes */
@@ -43,6 +46,6 @@ void   stat_to_attrib(const struct stat *, Attrib *);
 void    attrib_to_stat(const Attrib *, struct stat *);
 Attrib *decode_attrib(Buffer *);
 void    encode_attrib(Buffer *, const Attrib *);
-char   *ls_file(const char *, const struct stat *, int);
+char   *ls_file(const char *, const struct stat *, int, int);
 
 const char *fx2txt(int);
This page took 0.062738 seconds and 4 git commands to generate.