pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Daniel Gustafsson <dgustafsson@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Refactor SASL exchange to return tri-state status
Date: Thu, 21 Mar 2024 14:08:55 +0000
Message-ID: <E1rnJ6F-004wul-Ak@gemulon.postgresql.org> (raw)

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 <jacob.champion@enterprisedb.com>
Discussion: https://postgr.es/m/d1b467a78e0e36ed85a09adf979d04cf124a9d4b.camel@vmware.com

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(-)



Message-ID: <E1rnJ6F-004wul-Ak@gemulon.postgresql.org>
Permalink:  ../E1rnJ6F-004wul-Ak@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1rnJ6F-004wul-Ak@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: dgustafsson@postgresql.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Refactor SASL exchange to return tri-state status
  In-Reply-To: <E1rnJ6F-004wul-Ak@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox