diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2011-02-27 15:39:59 +0100 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2011-02-27 15:39:59 +0100 |
commit | db480a39f0cb1936151ddc95b6904a2cd97ddbbc (patch) | |
tree | bb9a853957d778869d41402d67b59f026441bec5 | |
parent | 5e3f8cd49adaa2dcdcd087fe37a47aa19cea6ae5 (diff) | |
download | gnutls-db480a39f0cb1936151ddc95b6904a2cd97ddbbc.tar.gz |
SHA1 or better check fixed.
-rw-r--r-- | lib/gnutls_pk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gnutls_pk.c b/lib/gnutls_pk.c index 77d1434b79..e9ad7181d7 100644 --- a/lib/gnutls_pk.c +++ b/lib/gnutls_pk.c @@ -501,7 +501,7 @@ _gnutls_dsa_verify (const gnutls_datum_t * vdata, pk_params.params[i] = params[i]; pk_params.params_nr = params_len; - if (vdata->size > 20) + if (vdata->size < 20) { /* SHA1 or better only */ gnutls_assert (); return GNUTLS_E_PK_SIG_VERIFY_FAILED; |