Commit 7ae71b96 authored by Ian Craggs's avatar Ian Craggs

Debugging aids

parent 037e0068
......@@ -425,9 +425,9 @@ int SSLSocket_createContext(networkHandles* net, MQTTClient_SSLOptions* opts)
}
if (opts->enabledCipherSuites == NULL)
ciphers = "DEFAULT";
else
ciphers = opts->enabledCipherSuites;
ciphers = "DEFAULT";
else
ciphers = opts->enabledCipherSuites;
if ((rc = SSL_CTX_set_cipher_list(net->ctx, ciphers)) != 1)
{
......@@ -469,7 +469,7 @@ int SSLSocket_setSocketForSSL(networkHandles* net, MQTTClient_SSLOptions* opts)
const char* cipher = SSL_get_cipher_list(net->ssl, i);
if (cipher == NULL)
break;
Log(TRACE_MIN, 1, "SSL cipher available: %d:%s", i, cipher);
Log(TRACE_PROTOCOL, 1, "SSL cipher available: %d:%s", i, cipher);
}
if ((rc = SSL_set_fd(net->ssl, net->socket)) != 1)
SSLSocket_error("SSL_set_fd", net->ssl, net->socket, rc);
......
......@@ -1483,6 +1483,7 @@ int main(int argc, char** argv)
setenv("MQTT_C_CLIENT_TRACE", "ON", 1);
//setenv("MQTT_C_CLIENT_TRACE_LEVEL", "ERROR", 1);
setenv("MQTT_C_CLIENT_TRACE_LEVEL", "PROTOCOL", 1);
getopts(argc, argv);
if (options.test_no == 0)
{ /* run all the tests */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment