PostgreSQL Source Code: contrib/auth_delay/auth_delay.c Source File (original) (raw)

Go to the documentation of this file.

1

2

3

4

5

6

7

8

9

10

11

13

14#include <limits.h>

15

18

20 .name = "auth_delay",

21 .version = PG_VERSION

22);

23

24

26

27

29

30

31

32

33static void

35{

36

37

38

41

42

43

44

46 {

48 }

49}

50

51

52

53

54void

56{

57

59 "Milliseconds to delay before reporting authentication failure",

60 NULL,

62 0,

63 0, INT_MAX / 1000,

66 NULL,

67 NULL,

68 NULL);

69

71

72

75}

ClientAuthentication_hook_type ClientAuthentication_hook

void(* ClientAuthentication_hook_type)(Port *, int)

static void auth_delay_checks(Port *port, int status)

static int auth_delay_milliseconds

static ClientAuthentication_hook_type original_client_auth_hook

PG_MODULE_MAGIC_EXT(.name="auth_delay",.version=PG_VERSION)

void MarkGUCPrefixReserved(const char *className)

void DefineCustomIntVariable(const char *name, const char *short_desc, const char *long_desc, int *valueAddr, int bootValue, int minValue, int maxValue, GucContext context, int flags, GucIntCheckHook check_hook, GucIntAssignHook assign_hook, GucShowHook show_hook)

void pg_usleep(long microsec)