diff options
| author | Sam Varshavchik | 2020-12-06 20:25:19 -0500 |
|---|---|---|
| committer | Sam Varshavchik | 2020-12-06 20:25:19 -0500 |
| commit | dba04f8c6b41ff124485d620781c651ce1352ee4 (patch) | |
| tree | 03e8ca48b27ae803b8761b49d01f4ec03711f75c /userdb/userdb.h | |
| parent | 84960af3aba7d66dfad62554591d9ab23ca3b890 (diff) | |
| download | courier-libs-dba04f8c6b41ff124485d620781c651ce1352ee4.tar.bz2 | |
Remove dead code in obsoleted userdb subdirectory - moved to courier-authlib.
Diffstat (limited to 'userdb/userdb.h')
| -rw-r--r-- | userdb/userdb.h | 68 |
1 files changed, 0 insertions, 68 deletions
diff --git a/userdb/userdb.h b/userdb/userdb.h deleted file mode 100644 index 3b2690a..0000000 --- a/userdb/userdb.h +++ /dev/null @@ -1,68 +0,0 @@ -#ifndef userdb_h -#define userdb_h - -/* -** Copyright 1998 - 2001 Double Precision, Inc. -** See COPYING for distribution information. -*/ - - -#include <sys/types.h> - -#ifdef __cplusplus -extern "C" { -#endif - -/* - Functions to access local/config/userdb.dat -*/ - -void userdb_set_debug(int); -void userdb_init(const char *); -void userdb_close(); -char *userdb(const char *); /* Fetch the record */ -char *userdbshadow(const char *, - const char *); /* Fetch the userdbshadow record */ - - /* Extract field from the record */ -const char *userdb_get(const char *, /* The record */ - const char *, /* Field name */ - int *); /* Content length returned */ - - /* Extract numerical field from record */ - -unsigned userdb_getu(const char *, /* The record */ - const char *, /* Field name */ - unsigned); /* Returned if field not found */ - - /* Extract string into malloced buffer */ -char *userdb_gets(const char *, /* The record */ - const char *); /* The field */ - -struct userdbs { - char *udb_name; /* Account name, ONLY set by userdb_createsuid */ - char *udb_gecos; /* GECOS */ - char *udb_dir; /* Home directory */ - char *udb_shell; /* Shell */ - char *udb_mailbox; /* Default mailbox */ - char *udb_quota; /* Maildir quota */ - char *udb_options; /* Options, see INSTALL */ - uid_t udb_uid; - gid_t udb_gid; - - char *udb_source; /* Non-blank - source file in userdb dir */ - } ; - -struct userdbs *userdb_creates(const char *); -struct userdbs *userdb_createsuid(uid_t); -struct userdbs *userdb_enum_first(); -struct userdbs *userdb_enum_next(); - -void userdb_frees(struct userdbs *); -char *userdb_mkmd5pw(const char *); - -#ifdef __cplusplus -} ; -#endif - -#endif |
