Accept bitstrings in X.509 names

This commit is contained in:
Manuel Pégourié-Gonnard 2015-03-27 13:03:09 +01:00
parent f1002f8582
commit dd5dbcae90

View file

@ -380,7 +380,8 @@ static int x509_get_attr_type_value( unsigned char **p,
if( **p != ASN1_BMP_STRING && **p != ASN1_UTF8_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 +
POLARSSL_ERR_ASN1_UNEXPECTED_TAG );