commit 6278176f7f417f0afecceb71807eb480e20769ef Author: Jacob Champion Date: Tue Mar 22 13:21:48 2022 -0700 squash! libpq: add OAUTHBEARER SASL mechanism feedback: - clean up header deps - add a mention in the docs diff --git a/doc/src/sgml/libpq.sgml b/doc/src/sgml/libpq.sgml index 3998b1781b..bdbfed1aa5 100644 --- a/doc/src/sgml/libpq.sgml +++ b/doc/src/sgml/libpq.sgml @@ -8343,7 +8343,8 @@ ldap://ldap.acme.com/cn=dbserver,cn=hosts?pgconnectinfo?base?(objectclass=*) In verify-full mode, the host name is matched against the certificate's Subject Alternative Name attribute(s), or against the - Common Name attribute if no Subject Alternative Name of type dNSName is + Common Name attribute if no Subject Alternative Name of type dNSName + (or iPAddress, if the connection uses an IP address) is present. If the certificate's name attribute starts with an asterisk (*), the asterisk will be treated as a wildcard, which will match all characters except a dot diff --git a/src/interfaces/libpq/fe-secure-common.c b/src/interfaces/libpq/fe-secure-common.c index 4d78715756..9c408df369 100644 --- a/src/interfaces/libpq/fe-secure-common.c +++ b/src/interfaces/libpq/fe-secure-common.c @@ -19,9 +19,9 @@ #include "postgres_fe.h" -#include #include +#include "common/inet-common.h" #include "fe-secure-common.h" #include "libpq-int.h" diff --git a/src/interfaces/libpq/fe-secure-common.h b/src/interfaces/libpq/fe-secure-common.h index 20ff9ba5db..d18db7138c 100644 --- a/src/interfaces/libpq/fe-secure-common.h +++ b/src/interfaces/libpq/fe-secure-common.h @@ -16,7 +16,6 @@ #ifndef FE_SECURE_COMMON_H #define FE_SECURE_COMMON_H -#include "common/inet-common.h" #include "libpq-fe.h" extern int pq_verify_peer_name_matches_certificate_name(PGconn *conn, diff --git a/src/interfaces/libpq/fe-secure-openssl.c b/src/interfaces/libpq/fe-secure-openssl.c index 06b166b7fd..b70bd2eb19 100644 --- a/src/interfaces/libpq/fe-secure-openssl.c +++ b/src/interfaces/libpq/fe-secure-openssl.c @@ -26,6 +26,7 @@ #include #include +#include "common/inet-common.h" #include "libpq-fe.h" #include "fe-auth.h" #include "fe-secure-common.h"