mirror of
https://github.com/ARMmbed/mbedtls.git
synced 2025-05-10 00:49:04 +08:00
change the type of hardware_module_name member
Change the type of `hardware_module_name` struct from `mbedtls_x509_name` to a unique struct, to distinguish it from the named data type.
This commit is contained in:
parent
890819a597
commit
f05f594acb
@ -121,7 +121,12 @@ typedef struct mbedtls_x509_san_other_name
|
|||||||
* hwType OBJECT IDENTIFIER,
|
* hwType OBJECT IDENTIFIER,
|
||||||
* hwSerialNum OCTET STRING }
|
* hwSerialNum OCTET STRING }
|
||||||
*/
|
*/
|
||||||
mbedtls_x509_name hardware_module_name;
|
struct
|
||||||
|
{
|
||||||
|
mbedtls_x509_buf oid; /**< The object identifier. */
|
||||||
|
mbedtls_x509_buf val; /**< The named value. */
|
||||||
|
}
|
||||||
|
hardware_module_name;
|
||||||
}
|
}
|
||||||
value;
|
value;
|
||||||
}
|
}
|
||||||
|
@ -1668,8 +1668,6 @@ static int x509_get_other_name( const mbedtls_x509_buf *subject_alt_name,
|
|||||||
other_name->value.hardware_module_name.val.tag = MBEDTLS_ASN1_OCTET_STRING;
|
other_name->value.hardware_module_name.val.tag = MBEDTLS_ASN1_OCTET_STRING;
|
||||||
other_name->value.hardware_module_name.val.p = p;
|
other_name->value.hardware_module_name.val.p = p;
|
||||||
other_name->value.hardware_module_name.val.len = len;
|
other_name->value.hardware_module_name.val.len = len;
|
||||||
other_name->value.hardware_module_name.next = NULL;
|
|
||||||
other_name->value.hardware_module_name.next_merged = 0;
|
|
||||||
p += len;
|
p += len;
|
||||||
if( p != end )
|
if( p != end )
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user