MCPcopy Create free account
hub / github.com/apache/arrow / GetCerts

Function GetCerts

cpp/src/arrow/flight/sql/odbc/odbc_impl/flight_sql_connection.cc:76–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74constexpr auto STORES = {L"CA", L"MY", L"ROOT", L"SPC"};
75
76inline 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

Callers 1

Calls 3

SystemHasStoreMethod · 0.80
HasNextMethod · 0.45
GetNextMethod · 0.45

Tested by

no test coverage detected