Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit407e0b0

Browse files
committed
Change ALPN protocol ID to IANA-approved "postgresql"
"TBD-pgsql" was a placeholder until the IANA registration wasapproved.Discussion:https://www.postgresql.org/message-id/87jzk2hj2n.fsf%40wibble.ilmari.orgDiscussion:https://mailarchive.ietf.org/arch/msg/tls-reg-review/9LWPzQfOpbc8dTT7vc9ahNeNaiw/
1 parent31e8f4e commit407e0b0

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

‎doc/src/sgml/libpq.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2949,7 +2949,7 @@ const char *PQsslAttribute(const PGconn *conn, const char *attribute_name);
29492949
<para>
29502950
Application protocol selected by the TLS Application-Layer
29512951
Protocol Negotiation (ALPN) extension. The only protocol
2952-
supported by libpq is <literal>TBD-pgsql</literal>, so this is
2952+
supported by libpq is <literal>postgresql</literal>, so this is
29532953
mainly useful for checking whether the server supported ALPN or
29542954
not. Empty string if ALPN was not used.
29552955
</para>

‎doc/src/sgml/protocol.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1564,7 +1564,7 @@ SELCT 1/0;<!-- this typo is intentional -->
15641564
required to use the ALPN extension defined
15651565
by <ulink url="https://tools.ietf.org/html/rfc7301">RFC 7301</ulink> to
15661566
protect against protocol confusion attacks.
1567-
The <productname>PostgreSQL</productname> protocol is "TBD-pgsql" as
1567+
The <productname>PostgreSQL</productname> protocol is "postgresql" as
15681568
registered
15691569
at <ulink url="https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids">IANA
15701570
TLS ALPN Protocol IDs</ulink> registry.

‎src/include/libpq/pqcomm.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,8 @@ typedef struct CancelRequestPacket
156156
*
157157
* The #define can be used to initialize a char[] vector to use directly in the API
158158
*/
159-
#definePG_ALPN_PROTOCOL "TBD-pgsql"
160-
#definePG_ALPN_PROTOCOL_VECTOR {9, 'T','B','D','-','p','g','s','q','l' }
159+
#definePG_ALPN_PROTOCOL "postgresql"
160+
#definePG_ALPN_PROTOCOL_VECTOR {10, 'p','o','s','t','g','r','e','s','q','l' }
161161

162162
/*
163163
* A client can also start by sending a SSL or GSSAPI negotiation request to

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp