diff options
author | jp161948 <none@none> | 2007-09-19 05:03:12 -0700 |
---|---|---|
committer | jp161948 <none@none> | 2007-09-19 05:03:12 -0700 |
commit | 90685d2c52744c6540828f16cdd2db815d467e37 (patch) | |
tree | d0b643cf07d9886649691973b48b865d32a93f19 /usr/src/cmd/ssh/include/sftp-common.h | |
parent | 1fceb383a3f0b59711832b9dc4e8329d7f216604 (diff) | |
download | illumos-joyent-90685d2c52744c6540828f16cdd2db815d467e37.tar.gz |
PSARC/2007/033 sftp resync with OpenSSH
6481668 sftp(1)/sftp-server(1m) needs a resync with OpenSSH
--HG--
rename : usr/src/cmd/ssh/include/sftp-glob.h => deleted_files/usr/src/cmd/ssh/include/sftp-glob.h
rename : usr/src/cmd/ssh/include/sftp-int.h => deleted_files/usr/src/cmd/ssh/include/sftp-int.h
rename : usr/src/cmd/ssh/sftp/sftp-int.c => deleted_files/usr/src/cmd/ssh/sftp/sftp-int.c
Diffstat (limited to 'usr/src/cmd/ssh/include/sftp-common.h')
-rw-r--r-- | usr/src/cmd/ssh/include/sftp-common.h | 34 |
1 files changed, 18 insertions, 16 deletions
diff --git a/usr/src/cmd/ssh/include/sftp-common.h b/usr/src/cmd/ssh/include/sftp-common.h index 98481cd2a7..86225bc175 100644 --- a/usr/src/cmd/ssh/include/sftp-common.h +++ b/usr/src/cmd/ssh/include/sftp-common.h @@ -1,15 +1,3 @@ -/* $OpenBSD: sftp-common.h,v 1.4 2002/09/11 22:41:50 djm Exp $ */ - -#ifndef _SFTP_COMMON_H -#define _SFTP_COMMON_H - -#pragma ident "%Z%%M% %I% %E% SMI" - -#ifdef __cplusplus -extern "C" { -#endif - - /* * Copyright (c) 2001 Markus Friedl. All rights reserved. * Copyright (c) 2001 Damien Miller. All rights reserved. @@ -35,6 +23,20 @@ extern "C" { * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#ifndef _SFTP_COMMON_H +#define _SFTP_COMMON_H + +/* $OpenBSD: sftp-common.h,v 1.10 2006/08/03 03:34:42 deraadt Exp $ */ + +#pragma ident "%Z%%M% %I% %E% SMI" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Maximum packet that we are willing to send/accept */ +#define SFTP_MAX_MSG_LENGTH (256 * 1024) + typedef struct Attrib Attrib; /* File attributes */ @@ -49,11 +51,11 @@ struct Attrib { }; void attrib_clear(Attrib *); -void stat_to_attrib(struct stat *, Attrib *); -void attrib_to_stat(Attrib *, struct stat *); +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 *); -char *ls_file(char *, struct stat *, int); +void encode_attrib(Buffer *, const Attrib *); +char *ls_file(const char *, const struct stat *, int); const char *fx2txt(int); |