Changeset 3f661849 for lib/ssl_gnutls.c


Ignore:
Timestamp:
2012-12-24T12:51:26Z (8 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
def3650
Parents:
bbc69f7
Message:

SNI client support in GnuTLS+OpenSSL modules.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/ssl_gnutls.c

    rbbc69f7 r3f661849  
    273273        gnutls_set_default_priority( conn->session );
    274274        gnutls_credentials_set( conn->session, GNUTLS_CRD_CERTIFICATE, xcred );
     275        if( conn->hostname && !isdigit( conn->hostname[0] ) )
     276                gnutls_server_name_set( conn->session, GNUTLS_NAME_DNS,
     277                                        conn->hostname, strlen( conn->hostname ) );
    275278       
    276279        sock_make_nonblocking( conn->fd );
Note: See TracChangeset for help on using the changeset viewer.