summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2017-05-26 13:30:18 +0200
committerNikos Mavrogiannopoulos <nmav@redhat.com>2017-05-29 08:41:21 +0200
commit883c91f0ff5e93984c3cc6ef76f3b92152ab6900 (patch)
tree95bcb53796a4b2b032591d4f304e2d764d3c2aed
parent029ca6ed5e43a8e575688a0abf4c89448d87faf5 (diff)
downloadgnutls-883c91f0ff5e93984c3cc6ef76f3b92152ab6900.tar.gz
replaced MAX_SIGNATURE_ALGORITHMS macro with MAX_ALGOS
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
-rw-r--r--lib/ext/signature.c4
-rw-r--r--lib/gnutls_int.h3
2 files changed, 3 insertions, 4 deletions
diff --git a/lib/ext/signature.c b/lib/ext/signature.c
index e546dccb67..b1bcb237f2 100644
--- a/lib/ext/signature.c
+++ b/lib/ext/signature.c
@@ -63,7 +63,7 @@ const extension_entry_st ext_mod_sig = {
typedef struct {
/* TLS 1.2 signature algorithms */
- gnutls_sign_algorithm_t sign_algorithms[MAX_SIGNATURE_ALGORITHMS];
+ gnutls_sign_algorithm_t sign_algorithms[MAX_ALGOS];
uint16_t sign_algorithms_size;
} sig_ext_st;
@@ -152,7 +152,7 @@ _gnutls_sign_algorithm_parse_data(gnutls_session_t session,
if (sig != GNUTLS_SIGN_UNKNOWN) {
if (priv->sign_algorithms_size ==
- MAX_SIGNATURE_ALGORITHMS)
+ MAX_ALGOS)
break;
priv->sign_algorithms[priv->
sign_algorithms_size++] =
diff --git a/lib/gnutls_int.h b/lib/gnutls_int.h
index 04cf78f195..d4573e1859 100644
--- a/lib/gnutls_int.h
+++ b/lib/gnutls_int.h
@@ -515,8 +515,7 @@ typedef struct {
* structures also - see SRP).
*/
-#define MAX_SIGNATURE_ALGORITHMS GNUTLS_MAX_ALGORITHM_NUM
-#define MAX_SIGN_ALGO_SIZE (2 + MAX_SIGNATURE_ALGORITHMS * 2)
+#define MAX_SIGN_ALGO_SIZE (2 + MAX_ALGOS * 2)
#define MAX_VERIFY_DATA_SIZE 36 /* in SSL 3.0, 12 in TLS 1.0 */