Commit e96f90e2 authored by Ryan Tandy's avatar Ryan Tandy
Browse files

ITS#9176 Implement SNI for GnuTLS

parent 4265849b
Pipeline #282 passed with stage
in 38 minutes and 44 seconds
......@@ -422,6 +422,16 @@ tlsg_session_accept( tls_session *session )
static int
tlsg_session_connect( LDAP *ld, tls_session *session, const char *name_in )
{
tlsg_session *s = (tlsg_session *)session;
int rc;
if ( name_in ) {
rc = gnutls_server_name_set( s->session, GNUTLS_NAME_DNS, name_in, strlen(name_in) );
if ( rc != GNUTLS_E_SUCCESS ) {
return rc;
}
}
return tlsg_session_accept( session);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment