From d7318f97e67f5da81de2f64ed4a0d704fe8e7614 Mon Sep 17 00:00:00 2001 From: Benjamin Sergeant Date: Fri, 20 Dec 2019 15:18:04 -0800 Subject: [PATCH] (tls) add a simple description of the TLS configuration routine for debugging --- docs/CHANGELOG.md | 4 ++++ ixcobra/ixcobra/IXCobraMetricsThreadedPublisher.cpp | 2 ++ ixwebsocket/IXSocketTLSOptions.cpp | 12 ++++++++++++ ixwebsocket/IXSocketTLSOptions.h | 2 ++ ixwebsocket/IXWebSocketVersion.h | 2 +- 5 files changed, 21 insertions(+), 1 deletion(-) diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index f118a7fb..b4567cb5 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -1,6 +1,10 @@ # Changelog All notable changes to this project will be documented in this file. +## [7.6.3] - 2019-12-20 + +(tls) add a simple description of the TLS configuration routine for debugging + ## [7.6.2] - 2019-12-20 (mbedtls) correct support for using own certificate and private key diff --git a/ixcobra/ixcobra/IXCobraMetricsThreadedPublisher.cpp b/ixcobra/ixcobra/IXCobraMetricsThreadedPublisher.cpp index 668b0d00..8ae3c2c9 100644 --- a/ixcobra/ixcobra/IXCobraMetricsThreadedPublisher.cpp +++ b/ixcobra/ixcobra/IXCobraMetricsThreadedPublisher.cpp @@ -98,6 +98,8 @@ namespace ix { _channel = channel; + ix::IXCoreLogger::Log(socketTLSOptions.getDescription().c_str()); + ix::WebSocketPerMessageDeflateOptions webSocketPerMessageDeflateOptions(enablePerMessageDeflate); _cobra_connection.configure(appkey, endpoint, rolename, rolesecret, diff --git a/ixwebsocket/IXSocketTLSOptions.cpp b/ixwebsocket/IXSocketTLSOptions.cpp index 50e5e600..08d43705 100644 --- a/ixwebsocket/IXSocketTLSOptions.cpp +++ b/ixwebsocket/IXSocketTLSOptions.cpp @@ -8,6 +8,7 @@ #include #include +#include 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 diff --git a/ixwebsocket/IXSocketTLSOptions.h b/ixwebsocket/IXSocketTLSOptions.h index a518ce0a..899122b3 100644 --- a/ixwebsocket/IXSocketTLSOptions.h +++ b/ixwebsocket/IXSocketTLSOptions.h @@ -43,6 +43,8 @@ namespace ix const std::string& getErrorMsg() const; + std::string getDescription() const; + private: mutable std::string _errMsg; mutable bool _validated = false; diff --git a/ixwebsocket/IXWebSocketVersion.h b/ixwebsocket/IXWebSocketVersion.h index 611ea1aa..1eb02b34 100644 --- a/ixwebsocket/IXWebSocketVersion.h +++ b/ixwebsocket/IXWebSocketVersion.h @@ -6,4 +6,4 @@ #pragma once -#define IX_WEBSOCKET_VERSION "7.6.2" +#define IX_WEBSOCKET_VERSION "7.6.3"