• Martin Storsjö's avatar
    tls: Use TLSv1_client_method for OpenSSL · 92db95e9
    Martin Storsjö authored
    TLSv1 is compatible with SSLv3, so this doesn't change much
    in terms of compatibility. By explicitly using TLSv1, OpenSSL
    sends the server name indication (SNI) header, which we
    already set using SSL_set_tlsext_host_name (earlier, this
    didn't have any effect).
    
    SNI allows servers to serve SSL content for different host
    names with separate certificates on one single port (vhosts).
    Signed-off-by: 's avatarMartin Storsjö <martin@martin.st>
    92db95e9
tls.c 6.54 KB