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

Method GetNext

cpp/src/arrow/flight/sql/odbc/odbc_impl/system_trust_store.cc:32–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30}
31
32std::string SystemTrustStore::GetNext() const {
33 DWORD size = 0;
34 CryptBinaryToStringA(p_context_->pbCertEncoded, p_context_->cbCertEncoded,
35 CRYPT_STRING_BASE64HEADER, nullptr, &size);
36
37 std::string cert;
38 cert.resize(size);
39 CryptBinaryToStringA(p_context_->pbCertEncoded, p_context_->cbCertEncoded,
40 CRYPT_STRING_BASE64HEADER, &cert[0], &size);
41 cert.resize(size);
42
43 return cert;
44}
45
46bool SystemTrustStore::SystemHasStore() { return h_store_ != nullptr; }
47

Callers 4

TEST_FFunction · 0.45
LoadInfoFromServerMethod · 0.45
MoveMethod · 0.45
GetCertsFunction · 0.45

Calls 1

resizeMethod · 0.80

Tested by 1

TEST_FFunction · 0.36