lwip-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-devel] [bug #54655] MQTT restricts password to be less than 256 by


From: Richmond Umagat
Subject: [lwip-devel] [bug #54655] MQTT restricts password to be less than 256 bytes
Date: Thu, 13 Sep 2018 03:27:23 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36

URL:
  <https://savannah.nongnu.org/bugs/?54655>

                 Summary: MQTT restricts password to be less than 256 bytes
                 Project: lwIP - A Lightweight TCP/IP stack
            Submitted by: richmond_umagat
            Submitted on: Thu 13 Sep 2018 07:27:21 AM UTC
                Category: apps
                Severity: 3 - Normal
              Item Group: Feature Request
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: None
            lwIP version: git head

    _______________________________________________________

Details:

MQTT brokers such as Google Cloud IoT Core requires MQTT clients to send JSON
Web Token (JWT) as password field of the MQTT Connect packet. JWT can be more
than 255 bytes.

Currently, the MQTT library restricts password to be less than 256 bytes, thus
it prevents connectivity to Google Cloud IoT Core.

To fix the issue, mqtt_client_connect() must be updated as follows:
- Change client_pass_len from u8 to u16
- Update error checking length of client_info->client_pass from 255 to X
- Also, MQTT_OUTPUT_RINGBUF_SIZE has been changed from 256 to 768.
Modifications are enclosed in FT32_PORT.

Attached are the proposed modifications tested to connect to Google Cloud IoT
Core.




    _______________________________________________________

Reply to this item at:

  <https://savannah.nongnu.org/bugs/?54655>

_______________________________________________
  Message sent via Savannah
  https://savannah.nongnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]