Check channel binding flag at end of SCRAM exchange

Peter Eisentraut <peter_e@gmx.net>

Commit: 86ab28fbd19a6a0742a7f66e69a595b61eb13d00
Author: Peter Eisentraut <peter_e@gmx.net>
Date: 2017-12-01T14:53:26Z
Releases: 11.0
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.paquier@gmail.com>

Files

PathChange+/−
src/backend/libpq/auth-scram.c modified +8 −3
src/interfaces/libpq/fe-auth-scram.c modified +4 −0