| 74 | constexpr auto STORES = {L"CA", L"MY", L"ROOT", L"SPC"}; |
| 75 | |
| 76 | inline std::string GetCerts() { |
| 77 | std::string certs; |
| 78 | |
| 79 | for (auto store : STORES) { |
| 80 | std::shared_ptr<SystemTrustStore> cert_iterator = |
| 81 | std::make_shared<SystemTrustStore>(store); |
| 82 | |
| 83 | if (!cert_iterator->SystemHasStore()) { |
| 84 | // If the system does not have the specific store, we skip it using the continue. |
| 85 | continue; |
| 86 | } |
| 87 | while (cert_iterator->HasNext()) { |
| 88 | certs += cert_iterator->GetNext(); |
| 89 | } |
| 90 | } |
| 91 | |
| 92 | return certs; |
| 93 | } |
| 94 | |
| 95 | #else |
| 96 |
no test coverage detected