MCPcopy Create free account
hub / github.com/apache/thrift / certString

Function certString

lib/cpp/test/SecurityFromBufferTest.cpp:53–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51 return keyDir / filename;
52}
53std::string certString(const std::string& filename) {
54 std::ifstream ifs(certFile(filename).string());
55 if(!ifs.is_open() || !ifs.good()) {
56 throw(std::runtime_error("Failed to open key file " + filename + " for reading"));
57 }
58 std::stringstream buffer;
59 buffer << ifs.rdbuf();
60 return buffer.str();
61}
62boost::mutex gMutex;
63
64struct GlobalFixture {

Callers 2

serverMethod · 0.85
clientMethod · 0.85

Calls 3

goodMethod · 0.80
strMethod · 0.80
certFileFunction · 0.70

Tested by

no test coverage detected