PostgreSQL Source Code git master
|
#include "postgres.h"
#include <ctype.h>
#include <limits.h>
#include "commands/user.h"
#include "fmgr.h"
#include "libpq/crypt.h"
Go to the source code of this file.
Functions | |
static void | check_password (const char *username, const char *shadow_pass, PasswordType password_type, Datum validuntil_time, bool validuntil_null) |
void | _PG_init (void) |
Variables | |
PG_MODULE_MAGIC | |
static check_password_hook_type | prev_check_password_hook = NULL |
static int | min_password_length = 8 |
void _PG_init | ( | void | ) |
Definition at line 146 of file passwordcheck.c.
References check_password(), check_password_hook, DefineCustomIntVariable(), GUC_UNIT_BYTE, MarkGUCPrefixReserved(), min_password_length, PGC_SUSET, and prev_check_password_hook.
|
static |
Definition at line 54 of file passwordcheck.c.
References ereport, errcode(), errdetail(), errdetail_log(), errmsg(), ERROR, i, min_password_length, password, PASSWORD_TYPE_PLAINTEXT, plain_crypt_verify(), prev_check_password_hook, STATUS_OK, and username.
Referenced by _PG_init().
|
static |
Definition at line 34 of file passwordcheck.c.
Referenced by _PG_init(), and check_password().
PG_MODULE_MAGIC |
Definition at line 28 of file passwordcheck.c.
|
static |
Definition at line 31 of file passwordcheck.c.
Referenced by _PG_init(), and check_password().