From d355e69aedf23ab3d466262f93971a2daff271d6 Mon Sep 17 00:00:00 2001 From: Hanno Becker Date: Mon, 8 Oct 2018 14:42:47 +0100 Subject: [PATCH] Rename `tag` to `default_tag` in x509_attr_descriptor_t --- library/x509_create.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/x509_create.c b/library/x509_create.c index 788b5d36d..63e255728 100644 --- a/library/x509_create.c +++ b/library/x509_create.c @@ -41,7 +41,7 @@ typedef struct { size_t name_len; /* Length of \c name, without trailing \c 0 byte. */ const char *oid; /* String representation of OID of AttributeType, * as per RFC 5280, Appendix A.1. */ - int tag; /* The default character encoding used for the + int default_tag; /* The default character encoding used for the * given attribute type, e.g. * #MBEDTLS_ASN1_UTF8_STRING for UTF-8. */ } x509_attr_descriptor_t; @@ -150,7 +150,7 @@ int mbedtls_x509_string_to_names( mbedtls_asn1_named_data **head, const char *na } // set tagType - cur->val.tag = attr_descr->tag; + cur->val.tag = attr_descr->default_tag; while( c < end && *(c + 1) == ' ' ) c++;