]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Drop null-auth suites from our default TLS cipher list
authorTravis Cross <tc@traviscross.com>
Wed, 5 Mar 2014 21:32:07 +0000 (21:32 +0000)
committerTravis Cross <tc@traviscross.com>
Wed, 5 Mar 2014 21:37:30 +0000 (21:37 +0000)
Previously we disallowed anonymous Diffie-Hellman, but there are other
kinds of null-authentication TLS suites.  In particular, disallowing
AECDH is important now that we support elliptic-curve Diffie-Hellman.

libs/sofia-sip/libsofia-sip-ua/tport/tport_tls.c
libs/sofia-sip/libsofia-sip-ua/tport/tport_tls.h

index a63963b58e252a51005cb1e67b3d01a524f0d9f3..07218159db46315e707805969276af945b8d8850 100644 (file)
@@ -202,7 +202,7 @@ void tls_set_default(tls_issues_t *i)
   i->key = i->key ? i->key : i->cert;
   i->randFile = i->randFile ? i->randFile : "tls_seed.dat";
   i->CAfile = i->CAfile ? i->CAfile : "cafile.pem";
-  i->ciphers = i->ciphers ? i->ciphers : "ALL:!ADH:!LOW:!EXP:!MD5:@STRENGTH";
+  i->ciphers = i->ciphers ? i->ciphers : "!eNULL:!aNULL:!EXP:!LOW:!MD5:ALL:@STRENGTH";
   /* Default SIP cipher */
   /* "RSA-WITH-AES-128-CBC-SHA"; */
   /* RFC-2543-compatibility ciphersuite */
index 47d330a1462086ffbdd47aad888f3d152b1a401f..74a8db6a15a01157b6c5d8518f3c700c6a0fe6a6 100644 (file)
@@ -61,7 +61,7 @@ typedef struct tls_issues_s {
   char *CAfile;                /* PEM file of CA's                           */
   char *CApath;                /* PEM file path of CA's                      */
   char *ciphers;         /* Should be one of the above defined ciphers *
-                        * or NULL (default: "ALL:!ADH:!LOW:!EXP:!MD5:@STRENGTH
+                        * or NULL (default: !eNULL:!aNULL:!EXP:!LOW:!MD5:ALL:@STRENGTH)
                          */
   int   version;       /* For tls1, version is 1. When ssl3/ssl2 is
                         * used, it is 0. */