* 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
} else
bits =
gnutls_sec_param_to_pk_bits(key_type,
- GNUTLS_SEC_PARAM_NORMAL);
+ GNUTLS_SEC_PARAM_MEDIUM);
}
return bits;
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) {
{
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");