We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 92c93ef commit 83c1e39Copy full SHA for 83c1e39
clarcnet.cpp
@@ -481,9 +481,10 @@ namespace clarcnet {
481
if (!flog) throw runtime_error("Unable to open log file " + logfile);
482
}
483
484
- public_key = load_key(true, pubkeyfile);
485
- private_key = load_key(false, prvkeyfile);
486
- cphr = (public_key && private_key) ? cipher_t : EVP_enc_null();
+ if (!pubkeyfile.empty()) public_key = load_key(true, pubkeyfile);
+ if (!prvkeyfile.empty()) private_key = load_key(false, prvkeyfile);
+
487
+ cphr = (public_key && private_key) ? cipher_t : EVP_enc_null();
488
489
int err;
490
addrinfo hints = {}, *res;
0 commit comments