]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
Handle DSA and ECDSA the same when verifying keys.
authorNikos Mavrogiannopoulos <nmav@redhat.com>
Tue, 28 Jan 2014 10:16:14 +0000 (11:16 +0100)
committerNikos Mavrogiannopoulos <nmav@redhat.com>
Tue, 28 Jan 2014 10:55:08 +0000 (11:55 +0100)
lib/x509/privkey.c

index 3739c81bcb4af7fbf9029912ef439bd4e33a6b56..c51fdc79314e7419768bc81684cbce0c11ac366e 100644 (file)
@@ -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);