You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- new features:
- A custom text can be specified to be appended automatically to each sent message in fragmented mode. For both, server and client
- Sending "DEBUGINFO" to an out stream writes debugging information automatically
::std::cerr << typeid(this).name() << "::" << __func__ << ": Error when setting encryption method to latest client side TLS version" << ::std::endl;
83
+
::std::cerr << DEBUGINFO << ": Error when setting encryption method to latest client side TLS version" << ::std::endl;
83
84
#endif// DEVELOP
84
85
85
86
stop();
@@ -90,7 +91,7 @@ namespace tcp
90
91
if (access(pathToCaCert, F_OK))
91
92
{
92
93
#ifdef DEVELOP
93
-
::std::cerr << typeid(this).name() << "::" << __func__ << ": CA certificate file does not exist" << ::std::endl;
94
+
::std::cerr << DEBUGINFO << ": CA certificate file does not exist" << ::std::endl;
94
95
#endif// DEVELOP
95
96
96
97
stop();
@@ -101,7 +102,7 @@ namespace tcp
101
102
if (access(pathToCert, F_OK))
102
103
{
103
104
#ifdef DEVELOP
104
-
::std::cerr << typeid(this).name() << "::" << __func__ << ": Client certificate file does not exist" << ::std::endl;
105
+
::std::cerr << DEBUGINFO << ": Client certificate file does not exist" << ::std::endl;
105
106
#endif// DEVELOP
106
107
107
108
stop();
@@ -112,7 +113,7 @@ namespace tcp
112
113
if (access(pathToPrivKey, F_OK))
113
114
{
114
115
#ifdef DEVELOP
115
-
::std::cerr << typeid(this).name() << "::" << __func__ << ": Client private key file does not exist" << ::std::endl;
116
+
::std::cerr << DEBUGINFO << ": Client private key file does not exist" << ::std::endl;
116
117
#endif// DEVELOP
117
118
118
119
stop();
@@ -123,7 +124,7 @@ namespace tcp
123
124
if (1 != SSL_CTX_load_verify_locations(clientContext.get(), pathToCaCert, nullptr))
124
125
{
125
126
#ifdef DEVELOP
126
-
::std::cerr << typeid(this).name() << "::" << __func__ << ": Error when loading the CA certificate the client should trust: " << pathToCaCert << ::std::endl;
127
+
::std::cerr << DEBUGINFO << ": Error when loading the CA certificate the client should trust: " << pathToCaCert << ::std::endl;
127
128
#endif// DEVELOP
128
129
129
130
stop();
@@ -134,7 +135,7 @@ namespace tcp
134
135
if (1 != SSL_CTX_use_certificate_file(clientContext.get(), pathToCert, SSL_FILETYPE_PEM))
135
136
{
136
137
#ifdef DEVELOP
137
-
::std::cerr << typeid(this).name() << "::" << __func__ << ": Error when loading the client certificate: " << pathToCert << ::std::endl;
138
+
::std::cerr << DEBUGINFO << ": Error when loading the client certificate: " << pathToCert << ::std::endl;
138
139
#endif// DEVELOP
139
140
140
141
stop();
@@ -145,7 +146,7 @@ namespace tcp
145
146
if (1 != SSL_CTX_use_PrivateKey_file(clientContext.get(), pathToPrivKey, SSL_FILETYPE_PEM))
0 commit comments