Make MBEDTLS_ASN1_IS_STRING_TAG to take signed int
Since mbedtls_asn1_buf uses a signed int for tags. Signed-off-by: Agathiyan Bragadeesh <agathiyan.bragadeesh2@arm.com>
This commit is contained in:
parent
ea3e83f36a
commit
af3e548c77
1 changed files with 7 additions and 7 deletions
|
@ -97,13 +97,13 @@
|
||||||
/* Slightly smaller way to check if tag is a string tag
|
/* Slightly smaller way to check if tag is a string tag
|
||||||
* compared to canonical implementation. */
|
* compared to canonical implementation. */
|
||||||
#define MBEDTLS_ASN1_IS_STRING_TAG(tag) \
|
#define MBEDTLS_ASN1_IS_STRING_TAG(tag) \
|
||||||
((tag) < 32u && ( \
|
((tag) < 32 && ( \
|
||||||
((1u << (tag)) & ((1u << MBEDTLS_ASN1_BMP_STRING) | \
|
((1 << (tag)) & ((1 << MBEDTLS_ASN1_BMP_STRING) | \
|
||||||
(1u << MBEDTLS_ASN1_UTF8_STRING) | \
|
(1 << MBEDTLS_ASN1_UTF8_STRING) | \
|
||||||
(1u << MBEDTLS_ASN1_T61_STRING) | \
|
(1 << MBEDTLS_ASN1_T61_STRING) | \
|
||||||
(1u << MBEDTLS_ASN1_IA5_STRING) | \
|
(1 << MBEDTLS_ASN1_IA5_STRING) | \
|
||||||
(1u << MBEDTLS_ASN1_UNIVERSAL_STRING) | \
|
(1 << MBEDTLS_ASN1_UNIVERSAL_STRING) | \
|
||||||
(1u << MBEDTLS_ASN1_PRINTABLE_STRING))) != 0))
|
(1 << MBEDTLS_ASN1_PRINTABLE_STRING))) != 0))
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Bit masks for each of the components of an ASN.1 tag as specified in
|
* Bit masks for each of the components of an ASN.1 tag as specified in
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue