]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-6387 don't fail if your openssl package has been compiled without EC support....
authorBrian West <brian@freeswitch.org>
Thu, 20 Mar 2014 13:07:53 +0000 (08:07 -0500)
committerBrian West <brian@freeswitch.org>
Thu, 20 Mar 2014 13:07:53 +0000 (08:07 -0500)
libs/sofia-sip/.update
libs/sofia-sip/libsofia-sip-ua/tport/tport_tls.c

index a2251651703d65c816a5ed5284f84c66341732ae..df6c959c29fc9ac6b7854ae62ae5cd9981a2a9d2 100644 (file)
@@ -1 +1 @@
-Wed Mar 19 14:23:50 CDT 2014
+Thu Mar 20 08:00:42 CDT 2014
index 97bc5b98accd9c2bfe8c74c750f4cbdabc75826d..5689d582c8a91c0f330c33ee317ad9307845b90c 100644 (file)
@@ -267,6 +267,7 @@ void tls_init(void) {
   ONCE_INIT(tls_init_once);
 }
 
+#ifndef OPENSSL_NO_EC
 static
 int tls_init_ecdh_curve(tls_t *tls)
 {
@@ -287,6 +288,7 @@ int tls_init_ecdh_curve(tls_t *tls)
   EC_KEY_free(ecdh);
   return 0;
 }
+#endif
 
 static
 int tls_init_context(tls_t *tls, tls_issues_t const *ti)
@@ -407,13 +409,13 @@ 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) {
     SU_DEBUG_3(("%s\n", "tls: initialized ECDH"));
   } else {
     SU_DEBUG_3(("%s\n", "tls: failed to initialize ECDH"));
   }
-
+#endif
   if (!SSL_CTX_set_cipher_list(tls->ctx, ti->ciphers)) {
     SU_DEBUG_1(("%s: error setting cipher list\n", "tls_init_context"));
     tls_log_errors(3, "tls_init_context", 0);