x509_valid_subject_name
if (!x509_valid_subject_name(fn, name))
int x509_valid_subject_name(const char *, const X509_NAME *);