summaryrefslogtreecommitdiff
path: root/lib/algorithms.h
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2017-06-23 13:32:09 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2017-07-10 07:25:56 +0000
commitd7ed6266f810f9b50bd45fce3be5b549ae344d7b (patch)
tree0a5f326922d2db2cc49b8dcc07ac1747acec34c3 /lib/algorithms.h
parent0f5b2fe28c073a058ca9b5612bad03787a8deb51 (diff)
downloadgnutls-d7ed6266f810f9b50bd45fce3be5b549ae344d7b.tar.gz
Renamed fields of sign_algorithm_st
The new names better reflect the reality with signature algorithms in TLS 1.3, and correct the initial naming error. Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Diffstat (limited to 'lib/algorithms.h')
-rw-r--r--lib/algorithms.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/algorithms.h b/lib/algorithms.h
index 52d7b2569b..623758fb6e 100644
--- a/lib/algorithms.h
+++ b/lib/algorithms.h
@@ -33,8 +33,8 @@
#define IS_EC(x) (((x)==GNUTLS_PK_ECDSA)||((x)==GNUTLS_PK_ECDHX))
-#define TLS_SIGN_AID_UNKNOWN {255, 255}
-#define HAVE_UNKNOWN_SIGAID(aid) ((aid)->sign_algorithm == 255 && (aid)->hash_algorithm == 255)
+#define TLS_SIGN_AID_UNKNOWN {{255, 255}}
+#define HAVE_UNKNOWN_SIGAID(aid) ((aid)->id[0] == 255 && (aid)->id[1] == 255)
/* Functions for version handling. */
const version_entry_st *version_to_entry(gnutls_protocol_t c);