Skip to content

Commit 07eabea

Browse files
committed
f320 - add debug warning about using VERIFY_NONE
1 parent 9cb4789 commit 07eabea

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/mqtt_socket.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -466,6 +466,10 @@ int MqttSocket_Connect(MqttClient *client, const char* host, word16 port,
466466
goto exit;
467467
}
468468
wolfSSL_CTX_set_verify(client->tls.ctx, WOLFSSL_VERIFY_NONE, 0);
469+
#ifdef WOLFMQTT_DEBUG_SOCKET
470+
PRINTF("Warning: TLS set to VERIFY_NONE. Use MqttClient_SetTlsCb "
471+
"to set peer verification in production");
472+
#endif
469473
}
470474

471475
#ifndef NO_DH

0 commit comments

Comments
 (0)