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:
Ron Eldor 2019-05-13 19:11:31 +03:00
parent 890819a597
commit f05f594acb
2 changed files with 6 additions and 3 deletions

View File

@ -121,7 +121,12 @@ typedef struct mbedtls_x509_san_other_name
* hwType OBJECT IDENTIFIER,
* 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;
}

View File

@ -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.p = p;
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;
if( p != end )
{