From 8ff680368b0bccf88ae85d4c99de69387fbad7a6 Mon Sep 17 00:00:00 2001 From: "djm@openbsd.org" Date: Mon, 19 Sep 2022 10:43:12 +0000 Subject: upstream: sftp client library support for users-groups-by-id@openssh.com; ok markus@ OpenBSD-Commit-ID: ddb2f33a2da6349a9a89a8b5bcb9ca7c999394de --- sftp-client.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'sftp-client.h') diff --git a/sftp-client.h b/sftp-client.h index 7ca6e8ad..d7deab17 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 @@ -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 *); -- cgit v1.2.1