diff options
author | Jack Lloyd <[email protected]> | 2020-06-26 09:02:24 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2020-06-26 09:02:24 -0400 |
commit | 15ac1adbfa84215601eb7d4158a12fe5aa1a231c (patch) | |
tree | 74261ef37bf866b5356c7d5e7b8288c580686bc7 | |
parent | 877b1adea74d8f73ab07f869d89400a212a426f6 (diff) | |
parent | bdac13589e13c160ebe1f35a51cd9564f4252e96 (diff) |
Merge GH #2379 Fix handling for duplicated certs in Mac cert store
-rw-r--r-- | src/lib/x509/certstor_system_macos/certstor_macos.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/lib/x509/certstor_system_macos/certstor_macos.cpp b/src/lib/x509/certstor_system_macos/certstor_macos.cpp index 5672385ae..adde24122 100644 --- a/src/lib/x509/certstor_system_macos/certstor_macos.cpp +++ b/src/lib/x509/certstor_system_macos/certstor_macos.cpp @@ -376,11 +376,7 @@ Certificate_Store_MacOS::find_cert(const X509_DN& subject_dn, return nullptr; // certificate not found } - if(certs.size() != 1) - { - throw Lookup_Error("ambiguous certificate result"); - } - + // `count` might be greater than 1, but we'll just select the first match return certs.front(); } |