pgsql: Check channel binding flag at end of SCRAM exchange

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Check channel binding flag at end of SCRAM exchange
Date: 2017-12-01 14:54:30
Message-ID: E1eKmhy-0005bd-4e@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Check channel binding flag at end of SCRAM exchange

We need to check whether the channel-binding flag encoded in the
client-final-message is the same one sent in the client-first-message.

Reviewed-by: Michael Paquier <michael(dot)paquier(at)gmail(dot)com>

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/86ab28fbd19a6a0742a7f66e69a595b61eb13d00

Modified Files
--------------
src/backend/libpq/auth-scram.c | 11 ++++++++---
src/interfaces/libpq/fe-auth-scram.c | 4 ++++
2 files changed, 12 insertions(+), 3 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Robert Haas 2017-12-01 15:07:14 pgsql: Fix uninitialized memory reference.
Previous Message Peter Eisentraut 2017-12-01 14:25:15 pgsql: pg_basebackup: Fix progress messages when writing to a file