RE: [PATCH] Pull general SASL framework out of SCRAM

Mikhail Kulagin <m.kulagin@postgrespro.ru>

From: "Mikhail Kulagin" <m.kulagin@postgrespro.ru>
To: "'Jacob Champion'" <pchampion@vmware.com>, <michael@paquier.xyz>
Cc: <pgsql-hackers@postgresql.org>
Date: 2021-07-13T09:41:27Z
Lists: pgsql-hackers

Attachments

Hello, hackers!

I got an error while building one of the extensions.
/home/mkulagin/pg-install/postgresql-master/include/internal/libpq-int.h:44:10: fatal error: fe-auth-sasl.h: No such file or directory
                  #include "fe-auth-sasl.h"
                  ^~~~~~~~~~~~~~~~            

I think the new fe-auth-sasl.h file should be installed too.
Correction proposal in the attached file (but I'm not sure that fix of Install.pm is correct).

Regards, Mikhail A. Kulagin
PostgresPro

 

Commits

  1. Install properly fe-auth-sasl.h

  2. Add more sanity checks in SASL exchanges

  3. Refactor SASL code with a generic interface for its mechanisms