diff options
author | Chris Wilson <chris+github@qwirx.com> | 2008-02-07 17:37:00 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2008-02-07 17:37:00 +0000 |
commit | 92ec6f89960149c0b843725b0dc3bd3b643eba52 (patch) | |
tree | 29493600f17cab42d4ecf463d7511fed46173a13 /lib/server/SSLLib.cpp | |
parent | 0894f3e61c3529c77646dec6f0f49abca2a4e337 (diff) |
Improve error messages when loading SSL key files fails.
Diffstat (limited to 'lib/server/SSLLib.cpp')
-rw-r--r-- | lib/server/SSLLib.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/server/SSLLib.cpp b/lib/server/SSLLib.cpp index e9c990b9..7ae93ee6 100644 --- a/lib/server/SSLLib.cpp +++ b/lib/server/SSLLib.cpp @@ -63,14 +63,14 @@ void SSLLib::Initialise() // Created: 2003/08/06 // // -------------------------------------------------------------------------- -void SSLLib::LogError(const char *ErrorDuringAction) +void SSLLib::LogError(const std::string& rErrorDuringAction) { unsigned long errcode; char errname[256]; // SSL docs say at least 120 bytes while((errcode = ERR_get_error()) != 0) { ::ERR_error_string_n(errcode, errname, sizeof(errname)); - BOX_ERROR("SSL error during " << ErrorDuringAction << ": " << + BOX_ERROR("SSL error while " << rErrorDuringAction << ": " << errname); } } |