mirror of
https://github.com/yuzu-emu/mbedtls
synced 2024-11-24 15:58:12 +00:00
Accept bitstrings in X.509 names
This commit is contained in:
parent
f1002f8582
commit
dd5dbcae90
1 changed files with 2 additions and 1 deletions
|
@ -380,7 +380,8 @@ static int x509_get_attr_type_value( unsigned char **p,
|
||||||
|
|
||||||
if( **p != ASN1_BMP_STRING && **p != ASN1_UTF8_STRING &&
|
if( **p != ASN1_BMP_STRING && **p != ASN1_UTF8_STRING &&
|
||||||
**p != ASN1_T61_STRING && **p != ASN1_PRINTABLE_STRING &&
|
**p != ASN1_T61_STRING && **p != ASN1_PRINTABLE_STRING &&
|
||||||
**p != ASN1_IA5_STRING && **p != ASN1_UNIVERSAL_STRING )
|
**p != ASN1_IA5_STRING && **p != ASN1_UNIVERSAL_STRING &&
|
||||||
|
**p != ASN1_BIT_STRING )
|
||||||
return( POLARSSL_ERR_X509_INVALID_NAME +
|
return( POLARSSL_ERR_X509_INVALID_NAME +
|
||||||
POLARSSL_ERR_ASN1_UNEXPECTED_TAG );
|
POLARSSL_ERR_ASN1_UNEXPECTED_TAG );
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue