summaryrefslogtreecommitdiffhomepage
path: root/https.cpp
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2023-01-06 13:12:45 +0100
committerRoland Reichwein <mail@reichwein.it>2023-01-06 13:12:45 +0100
commitccbfd4b39162a6a320ed400635ebae2992cecd61 (patch)
tree5b1151b83571f92bba47c75eaa87c4744b9cc734 /https.cpp
parente8a7c88b6cedbd05b183e85dff74c513bfcd774e (diff)
Certificate test
Diffstat (limited to 'https.cpp')
-rw-r--r--https.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/https.cpp b/https.cpp
index f096863..10f76e0 100644
--- a/https.cpp
+++ b/https.cpp
@@ -495,8 +495,8 @@ void load_server_certificate(boost::asio::ssl::context& ctx, const fs::path& cer
boost::asio::ssl::context::single_dh_use);
std::string cert;
- if (cert_path == "") {
- // generate dummy self signed certificate. Will be replaced by real
+ if (cert_path.empty()) {
+ // use dummy self signed certificate. Will be replaced by real
// certificate if configured upon respective session
cert =
"-----BEGIN CERTIFICATE-----\n"