From: Remi Gacogne Date: Fri, 3 Dec 2021 15:40:19 +0000 (+0100) Subject: libssl: Add the name of the TLS engine in the error message X-Git-Tag: auth-4.7.0-alpha1~120^2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0423941e32b7cbb47328eac139f0c9839134a8cc;p=thirdparty%2Fpdns.git libssl: Add the name of the TLS engine in the error message --- diff --git a/pdns/libssl.cc b/pdns/libssl.cc index cb1336b463..6cc108288a 100644 --- a/pdns/libssl.cc +++ b/pdns/libssl.cc @@ -152,14 +152,14 @@ std::pair 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(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) {