pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Magnus Hagander <magnus@hagander.net>
To: maxtardiveau@yahoo.com, Pg Docs <pgsql-docs@lists.postgresql.org>
Subject: Re: Magic number for SSLRequest
Date: Fri, 18 Sep 2020 13:08:55 +0200
Message-ID: <CABUevExFkC+nuWwAzDE3RD7wBE8G_uKPgwVtSE3QL2dE+onfBA@mail.gmail.com> (raw)
In-Reply-To: <160042095164.14056.845885391728089260@wrigleys.postgresql.org>
References: <160042095164.14056.845885391728089260@wrigleys.postgresql.org>

On Fri, Sep 18, 2020 at 1:07 PM PG Doc comments form <noreply@postgresql.org>
wrote:

> The following documentation comment has been logged on the website:
>
> Page: https://www.postgresql.org/docs/11/protocol-message-formats.html
> Description:
>
> On page: https://www.postgresql.org/docs/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
hexadecimal.

0x04D2 = 1234
0x162F = 5679

-- 
 Magnus Hagander
 Me: https://www.hagander.net/ <http://www.hagander.net/;
 Work: https://www.redpill-linpro.com/ <http://www.redpill-linpro.com/;

view thread (3+ messages)  latest in thread

Message-ID: <CABUevExFkC+nuWwAzDE3RD7wBE8G_uKPgwVtSE3QL2dE+onfBA@mail.gmail.com>
Permalink:  ../CABUevExFkC+nuWwAzDE3RD7wBE8G_uKPgwVtSE3QL2dE+onfBA@mail.gmail.com/
Also on:    postgresql.org/message-id/CABUevExFkC+nuWwAzDE3RD7wBE8G_uKPgwVtSE3QL2dE+onfBA@mail.gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-docs@postgresql.org
  Cc: magnus@hagander.net, pgsql-docs@lists.postgresql.org
  Subject: Re: Magic number for SSLRequest
  In-Reply-To: <CABUevExFkC+nuWwAzDE3RD7wBE8G_uKPgwVtSE3QL2dE+onfBA@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox