Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kK7MD-0000x0-LT for pgsql-docs@arkaria.postgresql.org; Sun, 20 Sep 2020 21:58:53 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kK7MA-000866-ND for pgsql-docs@arkaria.postgresql.org; Sun, 20 Sep 2020 21:58:50 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kJKsL-00046o-7a for pgsql-docs@lists.postgresql.org; Fri, 18 Sep 2020 18:12:49 +0000 Received: from sonic307-15.consmr.mail.ne1.yahoo.com ([66.163.190.38]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kJKsI-00026q-2Q for pgsql-docs@lists.postgresql.org; Fri, 18 Sep 2020 18:12:48 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1600452760; bh=DBCXnCwJ6zYP7W8NxQRvYxcJg2GJeoS3ZcFZ0g/x2W4=; h=From:Subject:Date:References:Cc:In-Reply-To:To:From:Subject; b=exKU/mE2JWkqKsK8f84Wo/k79abyyvPNuBQpq2G8a96jgDBpS8xQfT1Qw8IaWoVizVvvW7shiS7kZVLOLWxXJDYx0Nw5K182/KATuhPImpd5Gzd/B215QQpRP/51KkL1hdVL97vqNvZEnAgtBvZ9g6zkuSKBB3BWl14ShltOxyQ60dXceqRVw8/PBIZqNOMmLsW4NvFexrXx8pGQZ5P6DFsUtcLntf1eraZoG0M/8PkKmc8NKkH6SS8elwnMoFgHdaMl7KPvDhbVVRLmsBFf3e0+FwrCv4qZEUlwN3uRiNW4oY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mHilxa8fsPuWWIjP6Oh29VzWJ_Ke lMQ4iiRM1LK_SXxOvxC0Zinj7rVeVafI5zZDVX3PfdWhubEouVGqw9vQiit9bHy8MYC7axgCaHT7 QLeeQ04e7g8HH8H0aAPMYj9D19rpESm_PN42j57gkZ0piqVygOzWAxuX043iH8RdJIDNpco.cF3i l_x2GE1AFOy.xEDqUIq0OX.o2ikGLs5RVEVF.mfChGqYLwguV_3EjjUK2YJXwFuPIT.e_H.5WK54 iaJMgF9rF3t7zWLOVbG_Wnrj0OOoEAzUtMoISJgIU2IzhxdWCQ2IDxgl4rzn29gcKjwJcs_aZs4A uADPwcD1uOoHy745Cj4XFkG.8oNok9HdwB.jF6eOLJKQc4SGg4htEOVRSSpMhx7exraRRMGEcdCJ YNetYCPmTR.ZGaGdEFHAP0IZQZuMcptR8_CFDQV2wQkVN6hzceCkh7T.XqULByUJd64Ux_p1QCJZ OJA6JUH5k1D4dZuRe1i5B68FwFqsLiS6Ls67i_t8ibNUyJUDkyG_4sNhCIdZh5MrGUm7mjQA- Received: from sonic.gate.mail.ne1.yahoo.com by sonic307.consmr.mail.ne1.yahoo.com with HTTP; Fri, 18 Sep 2020 18:12:40 +0000 Received: by smtp409.mail.bf1.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 45d8676c6b4cc96d49d6bb266fc952c8; Fri, 18 Sep 2020 18:12:38 +0000 (UTC) Content-Type: multipart/alternative; boundary=Apple-Mail-03FAC08D-C192-48DF-B848-8A6D0FC4B975 Content-Transfer-Encoding: 7bit From: Max Tardiveau Mime-Version: 1.0 (1.0) Subject: Re: Magic number for SSLRequest Date: Fri, 18 Sep 2020 11:12:34 -0700 Message-Id: <1D005BF0-EBB0-48E9-9E1F-6789BEEAA3E1@yahoo.com> References: Cc: Pg Docs In-Reply-To: To: Magnus Hagander X-Mailer: iPad Mail (17H35) Content-Length: 3613 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --Apple-Mail-03FAC08D-C192-48DF-B848-8A6D0FC4B975 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable My bad -- thanks for the clarification. =E2=80=94 Max > On Sep 18, 2020, at 4:09 AM, Magnus Hagander wrote: >=20 > =EF=BB=BF >=20 >=20 >> On Fri, Sep 18, 2020 at 1:07 PM PG Doc comments form wrote: >> The following documentation comment has been logged on the website: >>=20 >> Page: https://www.postgresql.org/docs/11/protocol-message-formats.html >> Description: >>=20 >> On page: https://www.postgresql.org/docs/11/protocol-message-formats.html= >>=20 >> it says for SSLRequest packet: >>=20 >> Int32(80877103) >> The SSL request code. The value is chosen to contain 1234 in the most >> significant 16 bits, and 5679 in the least significant 16 bits. >>=20 >> I don't see how that works. 0x12345678 is 305,419,897. >>=20 >> 80877103 decimal in hex is 0x04D2162F >=20 > It's 1234 and 5679, not 0x1234 and 0x5679. That is, it's decimal, not hexa= decimal. >=20 > 0x04D2 =3D 1234 > 0x162F =3D 5679 >=20 > --=20 > Magnus Hagander > Me: https://www.hagander.net/ > Work: https://www.redpill-linpro.com/ --Apple-Mail-03FAC08D-C192-48DF-B848-8A6D0FC4B975 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable My bad -- thanks for the clarification.
=

=E2=80=94 Max


On Sep 18, 2020, at 4:09 AM, Magnus Haga= nder <magnus@hagander.net> wrote:

=EF=BB=BF
=

On Fri, Sep 18, 2020 at 1:07 PM PG Doc comments form <noreply@postgresql.org> wrote:
The following documentation co= mment has been logged on the website:

Page: https://www.postgresql.org/docs/= 11/protocol-message-formats.html
Description:

On page: https://www.postgresql.org/do= cs/11/protocol-message-formats.html

it says for SSLRequest packet:

Int32(80877103)
The SSL request code. The value is chosen to contain 1234 in the most
significant 16 bits, and 5679 in the least significant 16 bits.

I don't see how that works. 0x12345678 is 305,419,897.

80877103 decimal in hex is 0x04D2162F

It= 's 1234 and 5679, not 0x1234 and 0x5679. That is, it's decimal, not hexadeci= mal.

0x04D2 =3D 1234
0x162F =3D 5679

--
= --Apple-Mail-03FAC08D-C192-48DF-B848-8A6D0FC4B975--