Add X.509 validation and auto UTF8 DN

This commit is contained in:
Zhi Guan
2023-01-10 23:47:27 +08:00
parent 5c809e0b37
commit 4ac1abb2a6
3 changed files with 146 additions and 72 deletions

View File

@@ -137,8 +137,8 @@ int asn1_printable_string_check(const char *a, size_t alen)
size_t i;
for (i = 0; i < alen; i++) {
if (asn1_char_is_printable(a[i]) != 1) {
error_print();
return -1;
error_print(); // TODO: replace with waring_print()
return 0;
}
}
return 1;