summaryrefslogtreecommitdiff
path: root/lib/algorithms
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2016-02-26 12:00:55 +0100
committerNikos Mavrogiannopoulos <nmav@redhat.com>2016-02-26 12:00:55 +0100
commitdd8c145c9073f30c4e61eb519c3965054e889568 (patch)
tree638e82d9a5a688238a28134bc814ae615b0d40ef /lib/algorithms
parentaa1cec5a54b1faedc794e30bf6fc65a6420ca663 (diff)
downloadgnutls-dd8c145c9073f30c4e61eb519c3965054e889568.tar.gz
better match with unknown_tls_aid
Diffstat (limited to 'lib/algorithms')
-rw-r--r--lib/algorithms/sign.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/algorithms/sign.c b/lib/algorithms/sign.c
index b755e7d875..d6aab6834a 100644
--- a/lib/algorithms/sign.c
+++ b/lib/algorithms/sign.c
@@ -368,8 +368,9 @@ const sign_algorithm_st *_gnutls_sign_to_tls_aid(gnutls_sign_algorithm_t
GNUTLS_SIGN_ALG_LOOP(ret = &p->aid);
- if (ret != NULL
- && memcmp(ret, &unknown_tls_aid, sizeof(*ret)) == 0)
+ if (ret != NULL &&
+ ret->hash_algorithm == unknown_tls_aid.hash_algorithm &&
+ ret->sign_algorithm == unknown_tls_aid.sign_algorithm)
return NULL;
return ret;