Lines Matching refs:ulen
191 static int add_user(const char *username, const size_t ulen, in add_user() argument
196 if(ulen > 0xffff) in add_user()
202 pkt[start] = (unsigned char)((ulen >> 8) & 0xFF); in add_user()
203 pkt[start + 1] = (unsigned char)(ulen & 0xFF); in add_user()
204 memcpy(&pkt[start + 2], username, ulen); in add_user()
269 const size_t ulen = strlen(username); in mqtt_connect() local
275 payloadlen = ulen + plen + MQTT_CLIENTID_LEN + 2; in mqtt_connect()
278 if(ulen) in mqtt_connect()
314 start_pwd = start_user + ulen; in mqtt_connect()
316 if(ulen) { in mqtt_connect()
319 rc = add_user(username, ulen, in mqtt_connect()
322 failf(data, "Username is too large: [%zu]", ulen); in mqtt_connect()