| | |
| | | |
| | | void write_pubkey_file(const string& public_fname, const string& pbPublicKey) { |
| | | FILE* fp = fopen(public_fname.c_str(), "w"); |
| | | if (fp == NULL) { |
| | | if (fp == nullptr) { |
| | | throw ios_base::failure(string("can't create :") + public_fname); |
| | | } |
| | | fprintf(fp, "//file generated by bootstrap.cpp, do not edit.\n\n"); |
| | |
| | | |
| | | void write_privkey_file(const string& private_fname, const string& privateKey) { |
| | | FILE* fp = fopen(private_fname.c_str(), "w"); |
| | | if (fp == NULL) { |
| | | if (fp == nullptr) { |
| | | throw ios_base::failure(string("can't create :") + private_fname); |
| | | } |
| | | fprintf(fp, "//file generated by bootstrap.cpp, do not edit.\n\n"); |