Martin Sustrik
Martin Sustrik
How would you find out which protocol was selected?
Two more questions: 1. What's server name for? (I have no experience with openssl) 2. I assume that if multiple protocols are available, one that comes earlier in the list...
Ok, it seems there's a lot of optional features that may or not may be used. So, I guess, johneh@'s suggestion to expose the ssl object (or rather a wrapper)...
+1
For inspiration, here's Golang's ssl context structure: https://golang.org/pkg/crypto/tls/#Config
In general, I would be for a separate library... However, SSL support is such a basic requirement nowadays that adding it to the core library is perfectly justified. What about...
I've added a tutorial step (tutorial/step8.c) to show how SSL support works. However, there seems to be a problem. After starting the server (cd tutorial;./step8) and trying to connect to...
Ignore the previous comment. It was cause by openssl s_client using windows line endings instead of unix ones. Tutorial fixed to accomodate for win line endings.
And here's the tutorial step dealing with TLS/SSL: http://libmill.org/tutorial.html#step8
Looks good. One thing I like about it is that 1:1 mapping with libtls means we can refer to the libressl documentation instead of writing our own.