]> andersk Git - openssh.git/blobdiff - sftp-common.h
- (tim) [kex.c myproposal.h md-sha256.c openbsd-compat/sha2.c,h] Disable
[openssh.git] / sftp-common.h
index 4c126bf1065d45b5225ce5512465c8c97b545517..72be6e61cad2fd07bec010384cbecd909a90a963 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: sftp-common.h,v 1.3 2001/06/26 17:27:24 markus Exp $  */
+/*     $OpenBSD: sftp-common.h,v 1.7 2006/02/20 17:19:54 stevesk Exp $ */
 
 /*
  * Copyright (c) 2001 Markus Friedl.  All rights reserved.
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+#include <sys/types.h>
+#include <sys/stat.h>
+
+/* Maximum packet that we are willing to send/accept */
+#define SFTP_MAX_MSG_LENGTH    (256 * 1024)
+
 typedef struct Attrib Attrib;
 
 /* File attributes */
@@ -39,8 +45,10 @@ struct Attrib {
 };
 
 void    attrib_clear(Attrib *);
-void    stat_to_attrib(struct stat *, Attrib *);
+void    stat_to_attrib(const struct stat *, Attrib *);
+void    attrib_to_stat(const Attrib *, struct stat *);
 Attrib *decode_attrib(Buffer *);
-void    encode_attrib(Buffer *, Attrib *);
+void    encode_attrib(Buffer *, const Attrib *);
+char   *ls_file(const char *, const struct stat *, int);
 
 const char *fx2txt(int);
This page took 0.063728 seconds and 4 git commands to generate.