(tls) add a simple description of the TLS configuration routine for debugging
This commit is contained in:
parent
d1a4cab134
commit
d7318f97e6
@ -1,6 +1,10 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
All notable changes to this project will be documented in this file.
|
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
|
## [7.6.2] - 2019-12-20
|
||||||
|
|
||||||
(mbedtls) correct support for using own certificate and private key
|
(mbedtls) correct support for using own certificate and private key
|
||||||
|
@ -98,6 +98,8 @@ namespace ix
|
|||||||
{
|
{
|
||||||
_channel = channel;
|
_channel = channel;
|
||||||
|
|
||||||
|
ix::IXCoreLogger::Log(socketTLSOptions.getDescription().c_str());
|
||||||
|
|
||||||
ix::WebSocketPerMessageDeflateOptions webSocketPerMessageDeflateOptions(enablePerMessageDeflate);
|
ix::WebSocketPerMessageDeflateOptions webSocketPerMessageDeflateOptions(enablePerMessageDeflate);
|
||||||
_cobra_connection.configure(appkey, endpoint,
|
_cobra_connection.configure(appkey, endpoint,
|
||||||
rolename, rolesecret,
|
rolename, rolesecret,
|
||||||
|
@ -8,6 +8,7 @@
|
|||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
|
#include <sstream>
|
||||||
|
|
||||||
namespace ix
|
namespace ix
|
||||||
{
|
{
|
||||||
@ -71,4 +72,15 @@ namespace ix
|
|||||||
{
|
{
|
||||||
return _errMsg;
|
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
|
} // namespace ix
|
||||||
|
@ -43,6 +43,8 @@ namespace ix
|
|||||||
|
|
||||||
const std::string& getErrorMsg() const;
|
const std::string& getErrorMsg() const;
|
||||||
|
|
||||||
|
std::string getDescription() const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
mutable std::string _errMsg;
|
mutable std::string _errMsg;
|
||||||
mutable bool _validated = false;
|
mutable bool _validated = false;
|
||||||
|
@ -6,4 +6,4 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#define IX_WEBSOCKET_VERSION "7.6.2"
|
#define IX_WEBSOCKET_VERSION "7.6.3"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user