summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2013-11-05 21:35:26 +0100
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2013-11-05 21:35:26 +0100
commit38b48b35858774916eccf36e29041ca90f5fa9eb (patch)
tree441f92648d2a2ed3ee69348d99e663d9c13f8683
parent4b738d808daa5b8f6185670f109db6328c92fe0a (diff)
downloadgnutls-38b48b35858774916eccf36e29041ca90f5fa9eb.tar.gz
Assign very weak level to priority string NONE only.
-rw-r--r--lib/gnutls_priority.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gnutls_priority.c b/lib/gnutls_priority.c
index 88727b3e43..13bd6c63ca 100644
--- a/lib/gnutls_priority.c
+++ b/lib/gnutls_priority.c
@@ -864,11 +864,11 @@ gnutls_priority_init (gnutls_priority_t * priority_cache,
_set_priority (&(*priority_cache)->cert_type, cert_type_priority_default);
_set_priority (&(*priority_cache)->sign_algo, sign_priority_default);
_set_priority (&(*priority_cache)->supported_ecc, supported_ecc_normal);
- (*priority_cache)->level = GNUTLS_SEC_PARAM_VERY_WEAK;
i = 0;
}
else
{
+ (*priority_cache)->level = GNUTLS_SEC_PARAM_VERY_WEAK;
i = 1;
}