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 | |
PG_MODULE_MAGIC_EXT (.name="passwordcheck",.version=PG_VERSION) | |
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 | |
static check_password_hook_type | prev_check_password_hook = NULL |
static int | min_password_length = 8 |
void _PG_init | ( | void | ) |
Definition at line 149 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 57 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().
PG_MODULE_MAGIC_EXT | ( | . | name = "passwordcheck" , |
. | version = PG_VERSION |
||
) |
|
static |
Definition at line 37 of file passwordcheck.c.
Referenced by _PG_init(), and check_password().
|
static |
Definition at line 34 of file passwordcheck.c.
Referenced by _PG_init(), and check_password().