Skip to content

Commit 7ead272

Browse files
committed
net: mqtt: Remove misleading comment
Setting the peer hostname to NULL does not skip hostname verification. After discussion in the issue it was agreed that it's better to remove this comment than to implement skipping hostname verification. Also fixed a typo in the remaining part of the comment. Fixes: #96853 Signed-off-by: Kevin ORourke <kevin.orourke@ferroamp.se>
1 parent 48a9b04 commit 7ead272

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

include/zephyr/net/mqtt.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -763,9 +763,7 @@ struct mqtt_sec_config {
763763
uint32_t alpn_protocol_name_count;
764764
#endif
765765

766-
/** Peer hostname for ceritificate verification.
767-
* May be NULL to skip hostname verification.
768-
*/
766+
/** Peer hostname for certificate verification. */
769767
const char *hostname;
770768

771769
/** Indicates the preference for copying certificates to the heap. */

0 commit comments

Comments
 (0)