summaryrefslogtreecommitdiff
path: root/lib/pubkey.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2018-08-09 16:12:36 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2018-08-13 21:50:32 +0200
commit4a011043e2fd26e5d34763a706b5165fb55e1c13 (patch)
treea604ac94fb267aa93efdb329290edea3686331fa /lib/pubkey.c
parent7a28392f96414629d166adb4bd54f8649e080000 (diff)
downloadgnutls-4a011043e2fd26e5d34763a706b5165fb55e1c13.tar.gz
pubkey_verify_hashed_data: apply algorithm checks
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Diffstat (limited to 'lib/pubkey.c')
-rw-r--r--lib/pubkey.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/pubkey.c b/lib/pubkey.c
index ae6fb5cb2b..ad8986f6f2 100644
--- a/lib/pubkey.c
+++ b/lib/pubkey.c
@@ -2143,7 +2143,6 @@ pubkey_verify_hashed_data(const gnutls_sign_entry_st *se,
return GNUTLS_E_PK_SIG_VERIFY_FAILED;
}
- return 1;
break;
case GNUTLS_PK_ECDSA:
@@ -2157,7 +2156,6 @@ pubkey_verify_hashed_data(const gnutls_sign_entry_st *se,
return GNUTLS_E_PK_SIG_VERIFY_FAILED;
}
- return 1;
break;
default:
gnutls_assert();