From: Nikos Mavrogiannopoulos Date: Tue, 14 Jan 2014 10:09:45 +0000 (+0100) Subject: more updates for the security param rename X-Git-Tag: gnutls_3_3_0pre0~345 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=393d6c7b9087cb3be4e0bbaff844ba02cc2bc5ef;p=thirdparty%2Fgnutls.git more updates for the security param rename --- diff --git a/NEWS b/NEWS index 784022cd49..9af4fb4c1c 100644 --- a/NEWS +++ b/NEWS @@ -5,8 +5,8 @@ See the end for copying conditions. * Version 3.3.0 (unreleased) -** libgnutls: Security parameter NORMAL was renamed to MEDIUM -to avoid confusion with the priority string NORMAL. +** libgnutls: Security parameter SEC_PARAM_NORMAL was renamed to +SEC_PARAM_MEDIUM to avoid confusion with the priority string NORMAL. ** libgnutls: certificate verification profiles were introduced that can be specified as flags to verification functions. They diff --git a/src/certtool-common.c b/src/certtool-common.c index 48455065b3..b5c920f9ac 100644 --- a/src/certtool-common.c +++ b/src/certtool-common.c @@ -632,7 +632,7 @@ get_bits(gnutls_pk_algorithm_t key_type, int info_bits, } else bits = gnutls_sec_param_to_pk_bits(key_type, - GNUTLS_SEC_PARAM_NORMAL); + GNUTLS_SEC_PARAM_MEDIUM); } return bits; @@ -644,8 +644,8 @@ gnutls_sec_param_t str_to_sec_param(const char *str) return GNUTLS_SEC_PARAM_LOW; } else if (strcasecmp(str, "legacy") == 0) { return GNUTLS_SEC_PARAM_LEGACY; - } else if (strcasecmp(str, "normal") == 0) { - return GNUTLS_SEC_PARAM_NORMAL; + } else if (strcasecmp(str, "normal") == 0 || strcasecmp(str, "medium")) { + return GNUTLS_SEC_PARAM_MEDIUM; } else if (strcasecmp(str, "high") == 0) { return GNUTLS_SEC_PARAM_HIGH; } else if (strcasecmp(str, "ultra") == 0) { diff --git a/src/serv.c b/src/serv.c index c63868670c..60d4e970f1 100644 --- a/src/serv.c +++ b/src/serv.c @@ -170,7 +170,7 @@ static int generate_dh_primes(void) { int prime_bits = gnutls_sec_param_to_pk_bits(GNUTLS_PK_DH, - GNUTLS_SEC_PARAM_NORMAL); + GNUTLS_SEC_PARAM_MEDIUM); if (gnutls_dh_params_init(&dh_params) < 0) { fprintf(stderr, "Error in dh parameter initialization\n");