From 8a59115cadc5a32fc1ce89721978afefbb267c73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tarjei=20Hus=C3=B8y?= Date: Mon, 30 May 2016 20:35:12 -0700 Subject: [PATCH] Document where the magic SSL request came from Closes #1. --- postgres_mitm.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/postgres_mitm.py b/postgres_mitm.py index 829719f..f476958 100644 --- a/postgres_mitm.py +++ b/postgres_mitm.py @@ -32,7 +32,8 @@ import threading import logging from collections import namedtuple -# Sent by client when requesting TLS connection +# Sent by client when requesting TLS connection (this is the magic version +# 1234.5679 of the protocol, defined in pgcomm.h) SSL_STARTUP_REQUEST = '\x00\x00\x00\x08\x04\xd2\x16\x2f' SSL_STARTUP_RESPONSE = 'S' VERSION_3 = '\x00\x03\x00\x00'