blob: 32a583392424c091fb3e1ed8f98ad8192f1118e7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
From bc5b9aecd78fe638f50dbe104fc83a67d87c0615 Mon Sep 17 00:00:00 2001
From: Sergey Avseyev <sergey.avseyev@gmail.com>
Date: Tue, 26 Sep 2017 19:26:02 +0300
Subject: [PATCH] Enforce system crypto policies
---
src/ssl/ssl_common.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/ssl/ssl_common.c b/src/ssl/ssl_common.c
index b752b5d2..8a615cfd 100644
--- a/src/ssl/ssl_common.c
+++ b/src/ssl/ssl_common.c
@@ -277,8 +277,7 @@ lcbio_ssl_new(const char *cafile, int noverify, lcb_error_t *errp,
goto GT_ERR;
}
- SSL_CTX_set_cipher_list(ret->ctx, "DHE-RSA-AES256-SHA:DHE-DSS-AES256-SHA:AES256-SHA:EDH-RSA-DES-CBC3-SHA:EDH-DSS-DES-CBC3-SHA:DES-CBC3-SHA:DES-CBC3-MD5:DHE-RSA-AES128-SHA:DHE-DSS-AES128-SHA:AES128-SHA:DHE-RSA-SEED-SHA:DHE-DSS-SEED-SHA:SEED-SHA:RC2-CBC-MD5:RC4-SHA:RC4-MD5:RC4-MD5:EDH-RSA-DES-CBC-SHA:EDH-DSS-DES-CBC-SHA:DES-CBC-SHA:DES-CBC-MD5:EXP-EDH-RSA-DES-CBC-SHA:EXP-EDH-DSS-DES-CBC-SHA:EXP-DES-CBC-SHA:EXP-RC2-CBC-MD5:EXP-RC2-CBC-MD5:EXP-RC4-MD5:EXP-RC4-MD5");
-// SSL_CTX_set_cipher_list(ret->ctx, "!NULL");
+ SSL_CTX_set_cipher_list(ret->ctx, "PROFILE=SYSTEM");
if (cafile) {
if (!SSL_CTX_load_verify_locations(ret->ctx, cafile, NULL)) {
--
2.13.5
|