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

Method store_to_file

key.cpp:275–288  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

273}
274
275bool Key_file::store_to_file (const char* key_file_name) const
276{
277 create_protected_file(key_file_name);
278 std::ofstream key_file_out(key_file_name, std::fstream::binary);
279 if (!key_file_out) {
280 return false;
281 }
282 store(key_file_out);
283 key_file_out.close();
284 if (!key_file_out) {
285 return false;
286 }
287 return true;
288}
289
290std::string Key_file::store_to_string () const
291{

Callers 5

initFunction · 0.80
unlockFunction · 0.80
export_keyFunction · 0.80
keygenFunction · 0.80
migrate_keyFunction · 0.80

Calls 2

create_protected_fileFunction · 0.70
closeMethod · 0.45

Tested by

no test coverage detected