From 3f4470b193b7de1c85ee6f4868faf08d3b0671dc Mon Sep 17 00:00:00 2001 From: Dmitry Eremin-Solenikov Date: Mon, 21 Oct 2019 15:55:47 +0300 Subject: sign: convert tls13_ok to flags field Signed-off-by: Dmitry Eremin-Solenikov --- lib/algorithms.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/algorithms.h') diff --git a/lib/algorithms.h b/lib/algorithms.h index 7f27b2270d..84271e53b8 100644 --- a/lib/algorithms.h +++ b/lib/algorithms.h @@ -337,6 +337,7 @@ unsigned _gnutls_digest_is_insecure(gnutls_digest_algorithm_t dig); int _gnutls_version_mark_disabled(const char *name); gnutls_protocol_t _gnutls_protocol_get_id_if_supported(const char *name); +#define GNUTLS_SIGN_FLAG_TLS13_OK 1 /* if it is ok to use under TLS1.3 */ struct gnutls_sign_entry_st { const char *name; const char *oid; @@ -353,8 +354,7 @@ struct gnutls_sign_entry_st { gnutls_pk_algorithm_t priv_pk; gnutls_pk_algorithm_t cert_pk; - /* non-zero if it is ok to use under TLS1.3 */ - unsigned tls13_ok; + unsigned flags; /* if this signature algorithm is restricted to a curve * under TLS 1.3. */ -- cgit v1.2.1