Refactor SASL exchange to return tri-state status The SASL exchange callback returned state in to output variables: done and success. This refactors that logic by introducing a new return variable of type SASLStatus which makes the code easier to read and understand, and prepares for future SASL exchanges which operate asynchronously.
This was extracted from a larger patchset to introduce OAuthBearer authentication and authorization. Author: Jacob Champion <[email protected]> Discussion: https://postgr.es/m/[email protected] Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/24178e235ea56aca9233e640dd7ff9b17e858b07 Modified Files -------------- src/interfaces/libpq/fe-auth-sasl.h | 31 +++++++++----- src/interfaces/libpq/fe-auth-scram.c | 78 +++++++++++++++++------------------- src/interfaces/libpq/fe-auth.c | 28 ++++++------- src/tools/pgindent/typedefs.list | 1 + 4 files changed, 71 insertions(+), 67 deletions(-)
