Rename some functions instead of overloading them

It's more clear this way.
This commit is contained in:
Andrew Ayer
2014-03-28 13:51:10 -07:00
parent 6a454b1fa1
commit cd5f3534aa
3 changed files with 10 additions and 10 deletions

View File

@@ -120,7 +120,7 @@ void Key_file::store (std::ostream& out) const
}
}
bool Key_file::load (const char* key_file_name)
bool Key_file::load_from_file (const char* key_file_name)
{
std::ifstream key_file_in(key_file_name, std::fstream::binary);
if (!key_file_in) {
@@ -130,7 +130,7 @@ bool Key_file::load (const char* key_file_name)
return true;
}
bool Key_file::store (const char* key_file_name) const
bool Key_file::store_to_file (const char* key_file_name) const
{
mode_t old_umask = umask(0077); // make sure key file is protected
std::ofstream key_file_out(key_file_name, std::fstream::binary);