aio: ssl: Allow SNI to be specified
commit305a61b3d3a69aaea55e15e3fbd47b1c4247cf33
authorSteve Bennett <steveb@workware.net.au>
Sun, 3 May 2020 11:26:25 +0000 (3 21:26 +1000)
committerSteve Bennett <steveb@workware.net.au>
Wed, 6 May 2020 01:22:56 +0000 (6 11:22 +1000)
tree0c63be28b4c8247bcab676775727d375ef91be74
parent90669224d718ec875d83df47694370d1cc6ccf23
aio: ssl: Allow SNI to be specified

For some SSL connections it is necessary to set the Server Name
Indication in the connection in order to receive the correct
certificate. Allow this as part of the client ssl call with:

  $sock ssl -sni $servername

Also for -server mode, allow the certificate and private key to be
stored in a single file and only be specified once.

Signed-off-by: Steve Bennett <steveb@workware.net.au>
examples/certificate.pem [moved from examples/key.pem with 65% similarity]
examples/ssl.server
jim-aio.c
jim_tcl.txt