1*38a52bd3SEd Maste /* 2*38a52bd3SEd Maste * Copyright (c) 2022 Damien Miller <djm@mindrot.org> 3*38a52bd3SEd Maste * 4*38a52bd3SEd Maste * Permission to use, copy, modify, and distribute this software for any 5*38a52bd3SEd Maste * purpose with or without fee is hereby granted, provided that the above 6*38a52bd3SEd Maste * copyright notice and this permission notice appear in all copies. 7*38a52bd3SEd Maste * 8*38a52bd3SEd Maste * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 9*38a52bd3SEd Maste * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 10*38a52bd3SEd Maste * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 11*38a52bd3SEd Maste * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 12*38a52bd3SEd Maste * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 13*38a52bd3SEd Maste * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 14*38a52bd3SEd Maste * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 15*38a52bd3SEd Maste */ 16*38a52bd3SEd Maste 17*38a52bd3SEd Maste /* sftp client user/group lookup and caching */ 18*38a52bd3SEd Maste 19*38a52bd3SEd Maste /* Lookup uids/gids and populate cache */ 20*38a52bd3SEd Maste void get_remote_user_groups_from_glob(struct sftp_conn *conn, glob_t *g); 21*38a52bd3SEd Maste void get_remote_user_groups_from_dirents(struct sftp_conn *conn, SFTP_DIRENT **d); 22*38a52bd3SEd Maste 23*38a52bd3SEd Maste /* Return user/group name from cache or NULL if not found */ 24*38a52bd3SEd Maste const char *ruser_name(uid_t uid); 25*38a52bd3SEd Maste const char *rgroup_name(uid_t gid); 26