summaryrefslogtreecommitdiff
path: root/src/libnsss/nsss-internal.h
blob: f9dbeb39e504cdb6635023013502b9b8e3a6907c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/* ISC license. */

#ifndef NSSS_INTERNAL_H
#define NSSS_INTERNAL_H

#include <sys/types.h>
#include <skalibs/stralloc.h>
#include <skalibs/genalloc.h>
#include <nsss/pwd-def.h>
#include <nsss/grp-def.h>
#include <nsss/shadow-def.h>


 /* Password */

extern struct passwd nsss_pwd_here ;
extern stralloc nsss_pwd_sa_here ;
extern int nsss_pwd_copy (struct passwd *, char *, size_t, struct passwd const *, char const *, size_t) ;


 /* Group */

extern struct group nsss_grp_here ;
extern stralloc nsss_grp_sa_here ;
extern genalloc nsss_grp_ga_here ;
extern int nsss_grp_copy (struct group *, char *, size_t, struct group const *, char const *, size_t, char *const *, size_t) ;


 /* Shadow */

extern struct spwd nsss_shadow_here ;
extern stralloc nsss_shadow_sa_here ;
extern int nsss_shadow_copy (struct spwd *, char *, size_t, struct spwd const *, char const *, size_t) ;

#endif