mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-01-28 18:32:56 +00:00
Rename tag
to default_tag
in x509_attr_descriptor_t
This commit is contained in:
parent
d0e21fbd27
commit
d355e69aed
@ -41,7 +41,7 @@ typedef struct {
|
|||||||
size_t name_len; /* Length of \c name, without trailing \c 0 byte. */
|
size_t name_len; /* Length of \c name, without trailing \c 0 byte. */
|
||||||
const char *oid; /* String representation of OID of AttributeType,
|
const char *oid; /* String representation of OID of AttributeType,
|
||||||
* as per RFC 5280, Appendix A.1. */
|
* 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.
|
* given attribute type, e.g.
|
||||||
* #MBEDTLS_ASN1_UTF8_STRING for UTF-8. */
|
* #MBEDTLS_ASN1_UTF8_STRING for UTF-8. */
|
||||||
} x509_attr_descriptor_t;
|
} x509_attr_descriptor_t;
|
||||||
@ -150,7 +150,7 @@ int mbedtls_x509_string_to_names( mbedtls_asn1_named_data **head, const char *na
|
|||||||
}
|
}
|
||||||
|
|
||||||
// set tagType
|
// set tagType
|
||||||
cur->val.tag = attr_descr->tag;
|
cur->val.tag = attr_descr->default_tag;
|
||||||
|
|
||||||
while( c < end && *(c + 1) == ' ' )
|
while( c < end && *(c + 1) == ' ' )
|
||||||
c++;
|
c++;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user