Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
ingo Voss
OpenLDAP
Commits
fe6a7403
Commit
fe6a7403
authored
Apr 09, 2021
by
Howard Chu
Browse files
ITS#9521 clarify - affects OpenSSL 1.1.1, not 1.1.0
parent
2a3b64f4
Changes
1
Hide whitespace changes
Inline
Side-by-side
libraries/libldap/tls_o.c
View file @
fe6a7403
...
...
@@ -275,6 +275,7 @@ tlso_ctx_free ( tls_ctx *ctx )
SSL_CTX_free
(
c
);
}
#if OPENSSL_VERSION_NUMBER >= 0x10101000
static
char
*
tlso_stecpy
(
char
*
dst
,
const
char
*
src
,
const
char
*
end
)
{
...
...
@@ -285,7 +286,7 @@ tlso_stecpy( char *dst, const char *src, const char *end )
return
dst
;
}
/* OpenSSL 1.1 uses a separate API for TLS1.3 ciphersuites.
/* OpenSSL 1.1
.1
uses a separate API for TLS1.3 ciphersuites.
* Try to find any TLS1.3 ciphers in the given list of suites.
*/
static
void
...
...
@@ -319,6 +320,7 @@ tlso_ctx_cipher13( tlso_ctx *ctx, char *suites )
}
SSL_CTX_set_ciphersuites
(
ctx
,
tls13_suites
);
}
#endif
/* OpenSSL 1.1.1 */
/*
* initialize a new TLS context
...
...
@@ -386,7 +388,9 @@ tlso_ctx_init( struct ldapoptions *lo, struct ldaptls *lt, int is_server )
}
if
(
lo
->
ldo_tls_ciphersuite
)
{
#if OPENSSL_VERSION_NUMBER >= 0x10101000
tlso_ctx_cipher13
(
ctx
,
lt
->
lt_ciphersuite
);
#endif
if
(
!
SSL_CTX_set_cipher_list
(
ctx
,
lt
->
lt_ciphersuite
)
)
{
Debug1
(
LDAP_DEBUG_ANY
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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