diff options
Diffstat (limited to 'src/x509find.cpp')
-rw-r--r-- | src/x509find.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/x509find.cpp b/src/x509find.cpp index a50ce0bfa..2ba430caf 100644 --- a/src/x509find.cpp +++ b/src/x509find.cpp @@ -59,7 +59,12 @@ class DN_Check : public X509_Store::Search_Func public: bool match(const X509_Certificate& cert) const { - return compare(looking_for, cert.subject_info(dn_entry)); + std::vector<std::string> info = cert.subject_info(dn_entry); + + for(u32bit j = 0; j != info.size(); j++) + if(compare(info[j], looking_for)) + return true; + return false; } DN_Check(const std::string& entry, const std::string& target, |