PostgreSQL Source Code
git master
|
#include "postgres.h"
#include <ctype.h>
#include "commands/user.h"
#include "fmgr.h"
#include "libpq/crypt.h"
Go to the source code of this file.
Macros | |
#define | MIN_PWD_LENGTH 8 |
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 |
#define MIN_PWD_LENGTH 8 |
Definition at line 33 of file passwordcheck.c.
void _PG_init | ( | void | ) |
Definition at line 143 of file passwordcheck.c.
References check_password(), check_password_hook, and prev_check_password_hook.
|
static |
Definition at line 53 of file passwordcheck.c.
References ereport, errcode(), errdetail_log(), errmsg(), ERROR, i, MIN_PWD_LENGTH, password, PASSWORD_TYPE_PLAINTEXT, plain_crypt_verify(), prev_check_password_hook, STATUS_OK, and username.
Referenced by _PG_init().
PG_MODULE_MAGIC |
Definition at line 27 of file passwordcheck.c.
|
static |
Definition at line 30 of file passwordcheck.c.
Referenced by _PG_init(), and check_password().