Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/nslcd/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'nslcd/common.h')
-rw-r--r--nslcd/common.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/nslcd/common.h b/nslcd/common.h
index ccb77be..318c4ef 100644
--- a/nslcd/common.h
+++ b/nslcd/common.h
@@ -54,6 +54,10 @@ int nss2nslcd(enum nss_status code)
log_log(LOG_WARNING,"client supplied argument too large"); \
return -1;
+/* a simple wrapper around snprintf,
+ returns 0 if ok, -1 on error */
+int mysnprintf(char *buffer,size_t buflen,const char *format, ...)
+ LIKE_PRINTF(3,4);
/* these are the different functions that handle the database
specific actions, see nslcd.h for the action descriptions */
@@ -88,4 +92,7 @@ int nslcd_service_all(TFILE *fp);
int nslcd_shadow_byname(TFILE *fp);
int nslcd_shadow_all(TFILE *fp);
+int mkfilter_passwd_byname(const char *name,
+ char *buffer,size_t buflen);
+
#endif /* not _SERVER_COMMON_H */