| 51 | return keyDir / filename; |
| 52 | } |
| 53 | std::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 | } |
| 62 | boost::mutex gMutex; |
| 63 | |
| 64 | struct GlobalFixture { |