auth.h 981 B

12345678910111213141516171819202122232425262728293031
  1. /*-------------------------------------------------------------------------
  2. *
  3. * auth.h
  4. * Definitions for network authentication routines
  5. *
  6. *
  7. * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group
  8. * Portions Copyright (c) 1994, Regents of the University of California
  9. *
  10. * src/include/libpq/auth.h
  11. *
  12. *-------------------------------------------------------------------------
  13. */
  14. #ifndef AUTH_H
  15. #define AUTH_H
  16. #include "libpq/libpq-be.h"
  17. extern PGDLLIMPORT char *pg_krb_server_keyfile;
  18. extern PGDLLIMPORT bool pg_krb_caseins_users;
  19. extern PGDLLIMPORT char *pg_krb_realm;
  20. extern void ClientAuthentication(Port *port);
  21. extern void sendAuthRequest(Port *port, AuthRequest areq, const char *extradata,
  22. int extralen);
  23. /* Hook for plugins to get control in ClientAuthentication() */
  24. typedef void (*ClientAuthentication_hook_type) (Port *, int);
  25. extern PGDLLIMPORT ClientAuthentication_hook_type ClientAuthentication_hook;
  26. #endif /* AUTH_H */