Skip to content

Commit

Permalink
Merge pull request freeswitch#32 from traud/patch-3
Browse files Browse the repository at this point in the history
Fix Curves/Groups offering for TLS clients
  • Loading branch information
andywolk authored Nov 30, 2021
2 parents 7f7e6ed + c43905b commit 440806b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libsofia-sip-ua/tport/tport_tls.c
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,9 @@ int tls_init_context(tls_t *tls, tls_issues_t const *ti)
SSL_CTX_set_verify_depth(tls->ctx, ti->verify_depth);
SSL_CTX_set_verify(tls->ctx, verify, tls_verify_cb);
#ifndef OPENSSL_NO_EC
if (tls_init_ecdh_curve(tls) == 0) {
if (tls->accept == 0) {
SU_DEBUG_3(("%s\n", "tls: initialized ECDH"));
} else if (tls_init_ecdh_curve(tls) == 0) {
SU_DEBUG_3(("%s\n", "tls: initialized ECDH"));
} else {
SU_DEBUG_3(("%s\n", "tls: failed to initialize ECDH"));
Expand Down

0 comments on commit 440806b

Please sign in to comment.