Application protocol selected by the TLS Application-Layer
Protocol Negotiation (ALPN) extension. The only protocol
- supported by libpq is TBD-pgsql, so this is
+ supported by libpq is postgresql, so this is
mainly useful for checking whether the server supported ALPN or
not. Empty string if ALPN was not used.
required to use the ALPN extension defined
protect against protocol confusion attacks.
- The
PostgreSQL protocol is "
TBD-pgsql" as
+ The
PostgreSQL protocol is "
postgresql" as
registered
TLS ALPN Protocol IDs registry.
*
* The #define can be used to initialize a char[] vector to use directly in the API
*/
-#define PG_ALPN_PROTOCOL "TBD-pgsql"
-#define PG_ALPN_PROTOCOL_VECTOR { 9, 'T','B','D','-','p','g','s','q','l' }
+#define PG_ALPN_PROTOCOL "postgresql"
+#define PG_ALPN_PROTOCOL_VECTOR { 10, 'p','o','s','t','g','r','e','s','q','l' }
/*
* A client can also start by sending a SSL or GSSAPI negotiation request to