| 49 | std::unordered_map<std::string, time_t> secret_versions; |
| 50 | |
| 51 | void |
| 52 | update_file_name(const std::string_view &path, std::string &newname) |
| 53 | { |
| 54 | // insert the "ssl" directory into the path |
| 55 | auto offset = path.find_last_of("/"); |
| 56 | if (offset == std::string::npos) { |
| 57 | newname = "ssl/"; |
| 58 | newname.append(path); |
| 59 | } else { |
| 60 | newname = path.substr(0, offset + 1); |
| 61 | newname.append("ssl/"); |
| 62 | newname.append(path.substr(offset + 1)); |
| 63 | } |
| 64 | } |
| 65 | |
| 66 | bool |
| 67 | load_file(const std::string &newname, struct stat *statdata, std::string &data_item) |
no test coverage detected