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
Joe Martin
OpenLDAP
Commits
b68bf285
Commit
b68bf285
authored
Sep 08, 2013
by
Howard Chu
Committed by
Quanah Gibson-Mount
May 06, 2019
Browse files
ITS#7595 don't try to use EC if OpenSSL lacks it
parent
62f31efe
Changes
1
Hide whitespace changes
Inline
Side-by-side
libraries/libldap/tls_o.c
View file @
b68bf285
...
...
@@ -407,8 +407,12 @@ tlso_ctx_init( struct ldapoptions *lo, struct ldaptls *lt, int is_server )
DH_free
(
dh
);
}
#ifdef SSL_OP_SINGLE_ECDH_USE
if
(
is_server
&&
lo
->
ldo_tls_ecname
)
{
#ifdef OPENSSL_NO_EC
Debug
(
LDAP_DEBUG_ANY
,
"TLS: Elliptic Curves not supported.
\n
"
,
0
,
0
,
0
);
return
-
1
;
#else
EC_KEY
*
ecdh
;
int
nid
=
OBJ_sn2nid
(
lt
->
lt_ecname
);
...
...
@@ -430,8 +434,8 @@ tlso_ctx_init( struct ldapoptions *lo, struct ldaptls *lt, int is_server )
SSL_CTX_set_tmp_ecdh
(
ctx
,
ecdh
);
SSL_CTX_set_options
(
ctx
,
SSL_OP_SINGLE_ECDH_USE
);
EC_KEY_free
(
ecdh
);
}
#endif
}
if
(
tlso_opt_trace
)
{
SSL_CTX_set_info_callback
(
ctx
,
tlso_info_cb
);
...
...
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