Lines Matching refs:plen
172 static int add_passwd(const char *passwd, const size_t plen, in add_passwd() argument
177 if(plen > 0xffff) in add_passwd()
184 pkt[start] = (char)((plen >> 8) & 0xFF); in add_passwd()
185 pkt[start + 1] = (char)(plen & 0xFF); in add_passwd()
186 memcpy(&pkt[start + 2], passwd, plen); in add_passwd()
273 const size_t plen = strlen(passwd); in mqtt_connect() local
275 payloadlen = ulen + plen + MQTT_CLIENTID_LEN + 2; in mqtt_connect()
280 if(plen) in mqtt_connect()
329 if(plen) { in mqtt_connect()
330 rc = add_passwd(passwd, plen, packet, start_pwd, remain_pos); in mqtt_connect()
332 failf(data, "Password is too large: [%zu]", plen); in mqtt_connect()