| 175 | } |
| 176 | |
| 177 | void gpg_decrypt_from_file (const std::string& filename, std::ostream& output) |
| 178 | { |
| 179 | // gpg -q -d FILENAME |
| 180 | std::vector<std::string> command; |
| 181 | command.push_back(gpg_get_executable()); |
| 182 | command.push_back("-q"); |
| 183 | command.push_back("-d"); |
| 184 | command.push_back(filename); |
| 185 | if (!successful_exit(exec_command(command, output))) { |
| 186 | throw Gpg_error("Failed to decrypt"); |
| 187 | } |
| 188 | } |
| 189 |
no test coverage detected