mirror of
https://github.com/guanzhi/GmSSL.git
synced 2026-08-12 17:03:37 +08:00
Add checking to ASN.1 IA5, UTF8, Printable strings
This commit is contained in:
@@ -528,7 +528,7 @@ static size_t _strlen(const char *s) { return s ? strlen(s) : 0; }
|
||||
static int x509_name_tag(const char *str)
|
||||
{
|
||||
if (str) {
|
||||
if (asn1_printable_string_check(str, strlen(str)) == 1)
|
||||
if (asn1_string_is_printable_string(str, strlen(str)) == 1)
|
||||
return ASN1_TAG_PrintableString;
|
||||
else return ASN1_TAG_UTF8String;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user