[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: TLS in Gopher



On Thu, Mar 1, 2018 at 1:37 PM, Mateusz Viste <mateusz@nospam.viste.fr> wrote:
> On Thu, 01 Mar 2018 10:38:03 +0000, Iain R. Learmonth wrote:
>>
>> You would be expecting to receive a handshake message, which would start
>> with 0x16 (ASCII: SYN). I cannot think of a reason that a Gopher
>> selector would start with a non-printable character, so you can most
>> likely check only a single byte.
>
>Sounds good. You should definitely implement it then, so we can see how
>it works.

I thought this was a nice idea, so I tried implementing it on my python gopher
server. You can test it out here:

    gopher://mozz.us:7005/1/demo-ssl

It was, in fact, very straightforward to accomplish using helpers from the
python standard library. Here's the code diff if you want to take a look:

    https://github.com/michael-lazar/flask-gopher/commit/3777ef92516722f8aad7b858a0c6f931bd875f19#diff-d66156e6e2bebef5659c7aa5593e5ec6R628

- Michael Lazar


Reply to: