summaryrefslogtreecommitdiff
path: root/lib/algorithms.h
diff options
context:
space:
mode:
authorDmitry Eremin-Solenikov <dbaryshkov@gmail.com>2019-10-21 15:55:47 +0300
committerDmitry Eremin-Solenikov <dbaryshkov@gmail.com>2019-10-21 23:49:54 +0300
commit3f4470b193b7de1c85ee6f4868faf08d3b0671dc (patch)
tree7d75e2bc178712c91153a6c1925954d8efb4f476 /lib/algorithms.h
parent5bc0f660fffea001155e2e57c7d186f84d18af95 (diff)
downloadgnutls-3f4470b193b7de1c85ee6f4868faf08d3b0671dc.tar.gz
sign: convert tls13_ok to flags field
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.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 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. */