From: Nikos Mavrogiannopoulos Date: Tue, 28 Jan 2014 10:16:14 +0000 (+0100) Subject: Handle DSA and ECDSA the same when verifying keys. X-Git-Tag: gnutls_3_3_0pre0~242 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a5a56bedb8d2c1f060011532d876e58bdd7dc776;p=thirdparty%2Fgnutls.git Handle DSA and ECDSA the same when verifying keys. --- diff --git a/lib/x509/privkey.c b/lib/x509/privkey.c index 3739c81bcb..c51fdc7931 100644 --- a/lib/x509/privkey.c +++ b/lib/x509/privkey.c @@ -1281,7 +1281,7 @@ const char const_data[20] = "onetwothreefourfive"; gnutls_datum_t ddata; char* gen_data = NULL; - if (algo == GNUTLS_PK_DSA) { + if (algo == GNUTLS_PK_DSA || algo == GNUTLS_PK_EC) { unsigned hash_len; _gnutls_dsa_q_to_hash(algo, params, &hash_len);