Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
openldap
OpenLDAP
Commits
e96f90e2
Commit
e96f90e2
authored
Apr 27, 2020
by
Ryan Tandy
Browse files
ITS#9176 Implement SNI for GnuTLS
parent
4265849b
Pipeline
#282
passed with stage
in 38 minutes and 44 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
libraries/libldap/tls_g.c
View file @
e96f90e2
...
...
@@ -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
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment