4 #ifndef RUDIMENTS_SHADOWENTRY_H
5 #define RUDIMENTS_SHADOWENTRY_H
7 #include <rudiments/private/shadowentryincludes.h>
9 #ifdef RUDIMENTS_NAMESPACE
13 class shadowentryprivate;
26 static bool getEncryptedPassword(
const char *username,
34 static bool getLastChangeDate(
const char *username,
41 static bool getDaysBeforeChangeAllowed(
49 static bool getDaysBeforeChangeRequired(
58 static bool getDaysBeforeExpirationWarning(
66 static bool getDaysOfInactivityAllowed(
75 static bool getExpirationDate(
const char *username,
82 static bool getFlag(
const char *username,
101 bool initialize(
const char *username);
104 const char *getName()
const;
107 const char *getEncryptedPassword()
const;
112 long getLastChangeDate()
const;
116 int32_t getDaysBeforeChangeAllowed()
const;
120 int32_t getDaysBeforeChangeRequired()
const;
125 int32_t getDaysBeforeExpirationWarning()
const;
129 int32_t getDaysOfInactivityAllowed()
const;
133 int32_t getExpirationDate()
const;
137 int32_t getFlag()
const;
144 static bool needsMutex();
149 static void setMutex(
mutex *mtx);
151 #include <rudiments/private/shadowentry.h>
154 #ifdef RUDIMENTS_NAMESPACE