Skip to main content

SSL_REQUEST_CODE

Constant SSL_REQUEST_CODE 

Source
pub const SSL_REQUEST_CODE: i32 = 80_877_103;
Expand description

The version field of an SSLRequest: 1234 in the high half, 5679 in the low.

PostgreSQL has no message type for “please encrypt”. It reuses the startup packet’s shape and puts a number there that no real protocol version can be, which is why this reads as a magic constant — because it is one.