postgresql/src/include/libpq
Michael Paquier 9fd85570d1 Refactor SASL code with a generic interface for its mechanisms
The code of SCRAM and SASL have been tightly linked together since SCRAM
exists in the core code, making hard to apprehend the addition of new
SASL mechanisms, but these are by design different facilities, with
SCRAM being an option for SASL.  This refactors the code related to both
so as the backend and the frontend use a set of callbacks for SASL
mechanisms, documenting while on it what is expected by anybody adding a
new SASL mechanism.

The separation between both layers is neat, using two sets of callbacks
for the frontend and the backend to mark the frontier between both
facilities.  The shape of the callbacks is now directly inspired from
the routines used by SCRAM, so the code change is straight-forward, and
the SASL code is moved into its own set of files.  These will likely
change depending on how and if new SASL mechanisms get added in the
future.

Author: Jacob Champion
Reviewed-by: Michael Paquier
Discussion: https://postgr.es/m/3d2a6f5d50e741117d6baf83eb67ebf1a8a35a11.camel@vmware.com
2021-07-07 10:55:15 +09:00
..
auth.h Refactor SASL code with a generic interface for its mechanisms 2021-07-07 10:55:15 +09:00
be-fsstubs.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
be-gssapi-common.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
crypt.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
hba.h Refactor hba_authname 2021-04-07 14:24:47 +02:00
ifaddr.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
libpq-be.h Add some information about authenticated identity via log_connections 2021-04-07 10:16:39 +09:00
libpq-fs.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
libpq.h Add heuristic incoming-message-size limits in the server. 2021-04-28 15:50:46 -04:00
pqcomm.h Remove server and libpq support for old FE/BE protocol version 2. 2021-03-04 10:45:55 +02:00
pqformat.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
pqmq.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
pqsignal.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
sasl.h Refactor SASL code with a generic interface for its mechanisms 2021-07-07 10:55:15 +09:00
scram.h Refactor SASL code with a generic interface for its mechanisms 2021-07-07 10:55:15 +09:00