summaryrefslogtreecommitdiff
path: root/pjlib/include
diff options
context:
space:
mode:
authorLiong Sauw Ming <ming@teluu.com>2015-04-23 10:18:52 +0000
committerLiong Sauw Ming <ming@teluu.com>2015-04-23 10:18:52 +0000
commit606180e833ddb27238df07125b59166db9f019ff (patch)
tree534ddaf37e2c51630545ac2694e8122dbdf487bf /pjlib/include
parent5ff7a55927d627a06e7643d2009f9fa1c57c50af (diff)
Fixed #1846: Update to use 'HIGH' ciphers as default in OpenSSL
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5078 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjlib/include')
-rw-r--r--pjlib/include/pj/config.h12
-rw-r--r--pjlib/include/pj/ssl_sock.h5
2 files changed, 15 insertions, 2 deletions
diff --git a/pjlib/include/pj/config.h b/pjlib/include/pj/config.h
index cad816e8..bd27e01a 100644
--- a/pjlib/include/pj/config.h
+++ b/pjlib/include/pj/config.h
@@ -875,6 +875,18 @@
/**
+ * Specify what should be set as the available list of SSL_CIPHERs. For
+ * example, set this as "DEFAULT" to use the default cipher list (Note:
+ * PJSIP release 2.4 and before used this "DEFAULT" setting).
+ *
+ * Default: "HIGH:-COMPLEMENTOFDEFAULT"
+ */
+#ifndef PJ_SSL_SOCK_OSSL_CIPHERS
+# define PJ_SSL_SOCK_OSSL_CIPHERS "HIGH:-COMPLEMENTOFDEFAULT"
+#endif
+
+
+/**
* Disable WSAECONNRESET error for UDP sockets on Win32 platforms. See
* https://trac.pjsip.org/repos/ticket/1197.
*
diff --git a/pjlib/include/pj/ssl_sock.h b/pjlib/include/pj/ssl_sock.h
index 2d66b325..172943da 100644
--- a/pjlib/include/pj/ssl_sock.h
+++ b/pjlib/include/pj/ssl_sock.h
@@ -748,8 +748,9 @@ typedef struct pj_ssl_sock_param
/**
* Number of ciphers contained in the specified cipher preference.
- * If this is set to zero, then default cipher list of the backend
- * will be used.
+ * If this is set to zero, then the cipher list used will be determined
+ * by the backend default (for OpenSSL backend, setting
+ * PJ_SSL_SOCK_OSSL_CIPHERS will be used).
*/
unsigned ciphers_num;