summaryrefslogtreecommitdiffstats
path: root/sftp-client.h
diff options
context:
space:
mode:
authordjm@openbsd.org <djm@openbsd.org>2022-09-19 12:43:12 +0200
committerDamien Miller <djm@mindrot.org>2022-09-19 12:49:14 +0200
commit8ff680368b0bccf88ae85d4c99de69387fbad7a6 (patch)
tree10092e1679db85cb3ab90f5525163b6bd9abf902 /sftp-client.h
parentupstream: extend sftp-common.c:extend ls_file() to support supplied (diff)
downloadopenssh-8ff680368b0bccf88ae85d4c99de69387fbad7a6.tar.xz
openssh-8ff680368b0bccf88ae85d4c99de69387fbad7a6.zip
upstream: sftp client library support for
users-groups-by-id@openssh.com; ok markus@ OpenBSD-Commit-ID: ddb2f33a2da6349a9a89a8b5bcb9ca7c999394de
Diffstat (limited to 'sftp-client.h')
-rw-r--r--sftp-client.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/sftp-client.h b/sftp-client.h
index 7ca6e8ad9..d7deab17e 100644
--- a/sftp-client.h
+++ b/sftp-client.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: sftp-client.h,v 1.37 2022/05/13 06:31:50 djm Exp $ */
+/* $OpenBSD: sftp-client.h,v 1.38 2022/09/19 10:43:12 djm Exp $ */
/*
* Copyright (c) 2001-2004 Damien Miller <djm@openbsd.org>
@@ -183,6 +183,15 @@ int crossload_dir(struct sftp_conn *from, struct sftp_conn *to,
Attrib *dirattrib, int preserve_flag, int print_flag,
int follow_link_flag);
+/*
+ * User/group ID to name translation.
+ */
+int can_get_users_groups_by_id(struct sftp_conn *conn);
+int do_get_users_groups_by_id(struct sftp_conn *conn,
+ const u_int *uids, u_int nuids,
+ const u_int *gids, u_int ngids,
+ char ***usernamesp, char ***groupnamesp);
+
/* Concatenate paths, taking care of slashes. Caller must free result. */
char *path_append(const char *, const char *);