summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDmitry Eremin-Solenikov <dbaryshkov@gmail.com>2020-01-08 21:10:55 +0300
committerDmitry Eremin-Solenikov <dbaryshkov@gmail.com>2020-01-09 21:37:09 +0300
commit615cae541ad592045e85e4b30b5bf35a48bf662b (patch)
tree81b972407713b7c699e41e94b62706fba62ee676 /lib
parentde206f2dc0c6bc25ce72d2987bd54fabcca679f2 (diff)
downloadgnutls-615cae541ad592045e85e4b30b5bf35a48bf662b.tar.gz
lib/priority: add SIGN-GOST-ALL keyword
Add SIGN-GOST-ALL keyword containing all defined GOST signature algorithms. Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/priority.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/priority.c b/lib/priority.c
index 7744a3131c..102fc11e6b 100644
--- a/lib/priority.c
+++ b/lib/priority.c
@@ -483,6 +483,14 @@ static const int _sign_priority_secure192[] = {
};
static const int* sign_priority_secure192 = _sign_priority_secure192;
+static const int _sign_priority_gost[] = {
+ GNUTLS_SIGN_GOST_256,
+ GNUTLS_SIGN_GOST_512,
+
+ 0
+};
+static const int* sign_priority_gost = _sign_priority_gost;
+
static const int mac_priority_normal_default[] = {
GNUTLS_MAC_SHA1,
GNUTLS_MAC_AEAD,
@@ -2143,6 +2151,12 @@ gnutls_priority_init(gnutls_priority_t * priority_cache,
bulk_fn(&(*priority_cache)->
_sign_algo,
sign_priority_default);
+ } else if (c_strncasecmp
+ (&broken_list[i][1], "SIGN-GOST-ALL",
+ 13) == 0) {
+ bulk_fn(&(*priority_cache)->
+ _sign_algo,
+ sign_priority_gost);
} else {
if ((algo =
gnutls_sign_get_id