From 869caab02c60af38d20e6db0c34a8e40d8e2050e Mon Sep 17 00:00:00 2001 From: Nikos Mavrogiannopoulos Date: Sun, 1 Nov 2009 17:33:19 +0200 Subject: 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. --- lib/gnutls_algorithms.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/gnutls_algorithms.c') 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; -- cgit v1.2.1