]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
libssl: Add the name of the TLS engine in the error message
authorRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 3 Dec 2021 15:40:19 +0000 (16:40 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 3 Dec 2021 15:40:19 +0000 (16:40 +0100)
pdns/libssl.cc

index cb1336b463e44147ed833a383cf5a4345bf3c63f..6cc108288a636d6eb6f3a6a90c1897e9d0e8465d 100644 (file)
@@ -152,14 +152,14 @@ std::pair<bool, std::string> libssl_load_engine(const std::string& engineName, c
 
   ENGINE* enginePtr = ENGINE_by_id(engineName.c_str());
   if (enginePtr == nullptr) {
-    return { false, "unable to load TLS engine" };
+    return { false, "unable to load TLS engine '" + engineName + "'" };
   }
 
   auto engine = std::unique_ptr<ENGINE, int(*)(ENGINE*)>(enginePtr, ENGINE_free);
   enginePtr = nullptr;
 
   if (!ENGINE_init(engine.get())) {
-    return { false, "Unable to init TLS engine" };
+    return { false, "Unable to init TLS engine '" + engineName + "'" };
   }
 
   if (defaultString) {