#include <sys/mman.h>
#include <sys/stat.h>
#include <sys/time.h>
#include <crypt.h>
#include <ctype.h>
#include <errno.h>
#include <fcntl.h>
#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <unistd.h>
#include "../include/libuser/user_private.h"
Defines | |
#define | LU_DEFAULT_SALT_TYPE "$1$" |
#define | LU_DEFAULT_SALT_LEN 8 |
#define | LU_MAX_LOCK_ATTEMPTS 30 |
#define | UNACCEPTABLE "!*:$," |
#define | ACCEPTABLE |
Functions | |
gint | lu_str_case_equal (gconstpointer v1, gconstpointer v2) |
gint | lu_str_equal (gconstpointer v1, gconstpointer v2) |
gint | lu_strcasecmp (gconstpointer v1, gconstpointer v2) |
gint | lu_strcmp (gconstpointer v1, gconstpointer v2) |
const char* | lu_make_crypted (const char *plain, const char *previous) |
gpointer | lu_util_lock_obtain (int fd, struct lu_error **error) |
void | lu_util_lock_free (int fd, gpointer lock) |
char* | lu_util_line_get_matchingx (int fd, const char *part, int field, struct lu_error **error) |
char* | lu_util_line_get_matching1 (int fd, const char *part, struct lu_error **error) |
char* | lu_util_line_get_matching3 (int fd, const char *part, struct lu_error **error) |
guint | lu_strv_len (gchar **v) |
char* | lu_util_field_read (int fd, const char *first, unsigned int field, struct lu_error **error) |
gboolean | lu_util_field_write (int fd, const char *first, unsigned int field, const char *value, struct lu_error **error) |
char* | lu_util_shadow_current_date (struct lu_string_cache *cache) |
|
Value: "ABCDEFGHIJKLMNOPQRSTUVWXYZ" \ "abcdefghijklmnopqrstuvwxyz" \ "./0123456789" |
|
A list of disallowed salt characters, if we're violating SUSv2 by allowing more characters to be salt characters. |
|
lu_make_crypted:
|
|
A function which returns non-zero if the strings are equal, and zero if they are unequal. Case-insensitive version. |
|
A function which returns non-zero if the strings are equal, and zero if they are unequal. Case-sensitive version. |
|
A wrapper for strcasecmp(). |
|
A wrapper for strcmp(). |
|
lu_strv_len:
|
|
lu_util_field_read:
|
|
lu_util_field_write:
|
|
lu_util_lock_free:
|
|
lu_util_lock_obtain:
|
|
lu_util_shadow_current_date:
|