From: | Magnus Hagander <magnus(at)hagander(dot)net> |
---|---|
To: | maxtardiveau(at)yahoo(dot)com, Pg Docs <pgsql-docs(at)lists(dot)postgresql(dot)org> |
Subject: | Re: Magic number for SSLRequest |
Date: | 2020-09-18 11:08:55 |
Message-ID: | CABUevExFkC+nuWwAzDE3RD7wBE8G_uKPgwVtSE3QL2dE+onfBA@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-docs |
On Fri, Sep 18, 2020 at 1:07 PM PG Doc comments form <noreply(at)postgresql(dot)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/>
From | Date | Subject | |
---|---|---|---|
Next Message | Max Tardiveau | 2020-09-18 18:12:34 | Re: Magic number for SSLRequest |
Previous Message | PG Doc comments form | 2020-09-18 09:22:31 | Magic number for SSLRequest |