From 160928192594295b9af7fee664030cb7d7480bc8 Mon Sep 17 00:00:00 2001 From: Dmitry Eremin-Solenikov Date: Sun, 12 Jan 2020 19:24:51 +0300 Subject: tests/priorities: add tests for GOST ciphersuites enablement Add test counting GOST ciphersuites and ciphers available. Signed-off-by: Dmitry Eremin-Solenikov --- tests/priorities.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/priorities.c b/tests/priorities.c index 6daef59ab6..d53d7dfda8 100644 --- a/tests/priorities.c +++ b/tests/priorities.c @@ -138,6 +138,9 @@ void doit(void) try_prio("NORMAL:-CIPHER-ALL:+NULL", null, 1, __LINE__); /* null */ try_prio("NORMAL:-CIPHER-ALL:+NULL:+CIPHER-ALL", null_normal_cs, 8, __LINE__); /* should be null + all */ try_prio("NORMAL:-CIPHER-ALL:+NULL:+CIPHER-ALL:-CIPHER-ALL:+AES-128-CBC", 4, 1, __LINE__); /* should be null + all */ +#ifdef ENABLE_GOST + try_prio("NONE:+VERS-TLS1.2:+GOST", 1, 1, __LINE__); +#endif } try_prio("PERFORMANCE", normal_cs, normal_ciphers, __LINE__); -- cgit v1.2.1 From b320b69b4e0ab77010116c2a56744321d0c3dfd2 Mon Sep 17 00:00:00 2001 From: Dmitry Eremin-Solenikov Date: Mon, 13 Jan 2020 01:20:28 +0300 Subject: lib: fix _kx_priority_gost termination item Signed-off-by: Dmitry Eremin-Solenikov --- lib/priority.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/priority.c b/lib/priority.c index 71e0465767..565bf45ea5 100644 --- a/lib/priority.c +++ b/lib/priority.c @@ -299,6 +299,7 @@ static const int* kx_priority_secure = _kx_priority_secure; static const int _kx_priority_gost[] = { GNUTLS_KX_VKO_GOST_12, + 0, }; static const int* kx_priority_gost = _kx_priority_gost; -- cgit v1.2.1