MCPcopy Create free account
hub / github.com/AGWA/git-crypt / gpg_decrypt_from_file

Function gpg_decrypt_from_file

gpg.cpp:177–188  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

175}
176
177void 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

Callers 1

decrypt_repo_keyFunction · 0.85

Calls 4

gpg_get_executableFunction · 0.85
successful_exitFunction · 0.85
exec_commandFunction · 0.85
Gpg_errorClass · 0.85

Tested by

no test coverage detected