| 273 | } |
| 274 | |
| 275 | bool 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 | |
| 290 | std::string Key_file::store_to_string () const |
| 291 | { |
no test coverage detected