aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorRenĂ© Meusel <[email protected]>2020-06-26 10:06:37 +0200
committerRenĂ© Meusel <[email protected]>2020-06-26 10:06:37 +0200
commitbdac13589e13c160ebe1f35a51cd9564f4252e96 (patch)
tree74261ef37bf866b5356c7d5e7b8288c580686bc7 /src/lib
parent877b1adea74d8f73ab07f869d89400a212a426f6 (diff)
FIX: handle duplicated root certs more graceful
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/x509/certstor_system_macos/certstor_macos.cpp6
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();
}