(tls) add a simple description of the TLS configuration routine for debugging

This commit is contained in:
Benjamin Sergeant
2019-12-20 15:18:04 -08:00
parent d1a4cab134
commit d7318f97e6
5 changed files with 21 additions and 1 deletions

View File

@ -8,6 +8,7 @@
#include <assert.h>
#include <fstream>
#include <sstream>
namespace ix
{
@ -71,4 +72,15 @@ namespace ix
{
return _errMsg;
}
std::string SocketTLSOptions::getDescription() const
{
std::stringstream ss;
ss << "TLS Options:" << std::endl;
ss << " certFile = " << certFile << std::endl;
ss << " keyFile = " << keyFile << std::endl;
ss << " caFile = " << caFile << std::endl;
ss << " ciphers = " << ciphers << std::endl;
return ss.str();
}
} // namespace ix