Allow ca to certify requests containing BMPStrings and UTF8Strings.
This commit is contained in:
parent
437db75b94
commit
e7156ff2e8
@ -1909,6 +1909,8 @@ static int do_body(X509 **xret, EVP_PKEY *pkey, X509 *x509, const EVP_MD *dgst,
|
|||||||
BIO_printf(bio_err,"\nemailAddress type needs to be of type IA5STRING\n");
|
BIO_printf(bio_err,"\nemailAddress type needs to be of type IA5STRING\n");
|
||||||
goto err;
|
goto err;
|
||||||
}
|
}
|
||||||
|
if ((str->type != V_ASN1_BMPSTRING) && (str->type != V_ASN1_UTF8STRING))
|
||||||
|
{
|
||||||
j=ASN1_PRINTABLE_type(str->data,str->length);
|
j=ASN1_PRINTABLE_type(str->data,str->length);
|
||||||
if ( ((j == V_ASN1_T61STRING) &&
|
if ( ((j == V_ASN1_T61STRING) &&
|
||||||
(str->type != V_ASN1_T61STRING)) ||
|
(str->type != V_ASN1_T61STRING)) ||
|
||||||
@ -1918,6 +1920,7 @@ static int do_body(X509 **xret, EVP_PKEY *pkey, X509 *x509, const EVP_MD *dgst,
|
|||||||
BIO_printf(bio_err,"\nThe string contains characters that are illegal for the ASN.1 type\n");
|
BIO_printf(bio_err,"\nThe string contains characters that are illegal for the ASN.1 type\n");
|
||||||
goto err;
|
goto err;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (default_op)
|
if (default_op)
|
||||||
old_entry_print(bio_err, obj, str);
|
old_entry_print(bio_err, obj, str);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user