summaryrefslogtreecommitdiff
path: root/lib/gnutls_algorithms.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2009-11-01 17:33:19 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2009-11-01 17:33:19 +0200
commit869caab02c60af38d20e6db0c34a8e40d8e2050e (patch)
treec68c19e25566782ffdffab51a83b641e571baefc /lib/gnutls_algorithms.c
parentb51199993e0c33447dac4b4aa83ef9b67a806724 (diff)
downloadgnutls-869caab02c60af38d20e6db0c34a8e40d8e2050e.tar.gz
Avoid code duplication by using all the functions defined in gnutls_algorithms
to map from TLS 1.2 signature algorithm numbers to gnutls signature algorithms. Added minimal documentation for SIGN-* in gnutls-cli priority strings. Corrected bug in signature algorithm extension generation.
Diffstat (limited to 'lib/gnutls_algorithms.c')
-rw-r--r--lib/gnutls_algorithms.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/gnutls_algorithms.c b/lib/gnutls_algorithms.c
index 873648e54c..8b04524942 100644
--- a/lib/gnutls_algorithms.c
+++ b/lib/gnutls_algorithms.c
@@ -2021,12 +2021,12 @@ _gnutls_sign_get_pk_algorithm (gnutls_sign_algorithm_t sign)
}
gnutls_sign_algorithm_t
-_gnutls_tls_aid_to_sign (sign_algorithm_st aid)
+_gnutls_tls_aid_to_sign (const sign_algorithm_st *aid)
{
gnutls_sign_algorithm_t ret = GNUTLS_SIGN_UNKNOWN;
- GNUTLS_SIGN_LOOP ( if (p->aid.hash_algorithm == aid.hash_algorithm
- && p->aid.sign_algorithm == aid.sign_algorithm)
+ GNUTLS_SIGN_LOOP ( if (p->aid.hash_algorithm == aid->hash_algorithm
+ && p->aid.sign_algorithm == aid->sign_algorithm)
{
ret = p->id;
break;