1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-27 16:54:52 +01:00

Formatting, style fixes

This commit is contained in:
Michał Janiszewski
2016-05-25 10:18:26 +02:00
parent 165ec06690
commit 2d3d889a08
3 changed files with 54 additions and 45 deletions

View File

@@ -714,9 +714,10 @@ bool Network::BeginClient(const char* host, unsigned short port)
safe_strcat(keyPath, gConfigNetwork.player_name, MAX_PATH);
safe_strcat(keyPath, ".privkey", MAX_PATH);
if (!platform_file_exists(keyPath)) {
log_warning("generating key... this may take a while");
log_info("Generating key... This may take a while");
log_info("Need to collect enough entropy from the system");
key.Generate();
log_verbose("Key generated, saving private bits as %s", keyPath);
log_info("Key generated, saving private bits as %s", keyPath);
SDL_RWops *privkey = SDL_RWFromFile(keyPath, "wb+");
key.SavePrivate(privkey);
SDL_RWclose(privkey);
@@ -727,7 +728,7 @@ bool Network::BeginClient(const char* host, unsigned short port)
safe_strcat(keyPath, "-", MAX_PATH);
safe_strcat(keyPath, key.PublicKeyHash().c_str(), MAX_PATH);
safe_strcat(keyPath, ".pubkey", MAX_PATH);
log_verbose("Key generated, saving public bits as %s", keyPath);
log_info("Key generated, saving public bits as %s", keyPath);
SDL_RWops *pubkey = SDL_RWFromFile(keyPath, "wb+");
key.SavePublic(pubkey);
SDL_RWclose(pubkey);