Rename `tag` to `default_tag` in x509_attr_descriptor_t
diff --git a/library/x509_create.c b/library/x509_create.c
index 788b5d3..63e2557 100644
--- a/library/x509_create.c
+++ b/library/x509_create.c
@@ -41,7 +41,7 @@
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 @@
}
// set tagType
- cur->val.tag = attr_descr->tag;
+ cur->val.tag = attr_descr->default_tag;
while( c < end && *(c + 1) == ' ' )
c++;