mirror of
https://git.postgresql.org/git/postgresql.git
synced 2026-02-14 10:27:04 +08:00
Refactor hba_authname
The previous implementation (from 9afffcb833) had an unnecessary check on the boundaries of the enum which trigtered compile warnings. To clean it up, move the pre-existing static assert to a central location and call that. Reported-By: Erik Rijkers Reviewed-By: Michael Paquier Discussion: https://postgr.es/m/1056399262.13159.1617793249020@webmailclassic.xs4all.nl
This commit is contained in:
@ -137,7 +137,7 @@ typedef struct Port hbaPort;
|
||||
|
||||
extern bool load_hba(void);
|
||||
extern bool load_ident(void);
|
||||
extern const char *hba_authname(hbaPort *port);
|
||||
extern const char *hba_authname(UserAuth auth_method);
|
||||
extern void hba_getauthmethod(hbaPort *port);
|
||||
extern int check_usermap(const char *usermap_name,
|
||||
const char *pg_role, const char *auth_user,
|
||||
|
||||
Reference in New Issue
Block a user