pg_hba_file_rules: "scram-sha256" instead of "scram-sha-256" - Mailing list pgsql-bugs

From Christophe Courtois
Subject pg_hba_file_rules: "scram-sha256" instead of "scram-sha-256"
Date
Msg-id b66c8902-b4ac-1159-ea0a-0be0aaa0b28f@dalibo.com
Whole thread Raw
Responses Re: pg_hba_file_rules: "scram-sha256" instead of "scram-sha-256"
List pgsql-bugs
Hi,

In pg_hba.conf, the new authentication method must be set as
"scram-sha-256".

But it appears as "scram-sha256" (only one hyphen) in pg_hba_file_rules.
This is a bit confusing.

"scram-sha256" appears in commit c727f120 in src/backend/libpq/hba.c,
while defining the array UserAuthName.

I've not seen why it should be this way in the associated discussions
(https://www.postgresql.org/message-id/fde71ff1-5858-90c8-99a9-1c2427e7bafb@iki.fi
,
https://www.postgresql.org/message-id/CAB7nPqS99Z31f7jhoYYMoBDbuZSQRpn+HQzByA=EwfMDYwCk1Q@mail.gmail.com)

Is it just a remnant of previous versions of the patch or is there a
reason?


-- 
Christophe Courtois
Consultant Dalibo
http://dalibo.com/  -  http://dalibo.org/


pgsql-bugs by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: BUG #15011: pgAdmin doesn't connect local server
Next
From: panos kaf
Date:
Subject: pg_ctl isnt recognized