Lines Matching defs:length

120 #define MAX_KEY   64 /* Maximum length of a pre-shared key in bytes. */
251 body.length = entry->value->length;
254 body.length = 0;
306 } else if (code == COAP_REQUEST_CODE_FETCH && size == ticks->length &&
307 memcmp(data, ticks->s, ticks->length) == 0) {
420 for (size = query->length; size; --size, ++p) {
491 body.length,
622 body.length,
630 #define MAX_USER 128 /* Maximum length of a user name (i.e., PSK
687 uri->host.length = coap_opt_length(opt);
702 uri->path.length = (*uri_path)->length;
707 uri->query.length = (*uri_query)->length;
769 dtls_cpsk.psk_info.identity.length = user_length;
771 dtls_cpsk.psk_info.key.length = key_length;
800 proxy_list[i].token = coap_new_binary(token->length);
805 memcpy(proxy_list[i].token->s, token->s, token->length);
810 proxy_list[i].query = coap_new_string(query->length);
815 memcpy(proxy_list[i].query->s, query->s, query->length);
852 !coap_add_token(response, proxy_list[i].token->length,
901 if (proxy.host.length) {
937 if ((server.length == 3 && memcmp(server.s, "::1", 3) != 0) ||
938 (server.length == 9 && memcmp(server.s, "127.0.0.1", 9) != 0))
939 memcpy(client_sni, server.s, min(server.length, sizeof(client_sni)-1));
1042 if (uri.host.length == 0) {
1093 if (!coap_add_token(pdu, token.length, token.s)) {
1100 if (proxy.host.length == 0) {
1278 body.length,
1497 body.length,
1660 if (!coap_add_token(pdu, rcv_token.length, rcv_token.s)) {
1836 read_file_mem(const char *file, size_t *length) {
1841 *length = 0;
1862 *length = (size_t)(statbuf.st_size + 1);
1941 psk_info.hint.length = hint ? strlen(hint) : 0;
1943 psk_info.key.length = key_length;
1952 (int)valid_psk_snis.psk_sni_list[i].new_hint->length,
1954 (int)valid_psk_snis.psk_sni_list[i].new_key->length,
1976 coap_log_info("Identity '%.*s' requested, current hint '%.*s'\n", (int)identity->length,
1978 s_psk_hint ? (int)s_psk_hint->length : 0,
1991 (int)valid_ids.id_list[i].new_key->length,
2006 psk_key.length = key_length;
2081 dtls_spsk.psk_info.hint.length = hint ? strlen(hint) : 0;
2083 dtls_spsk.psk_info.key.length = key_length;
2201 "\t-T max_token_length\tSet the maximum token length (8-65804)\n"
2209 "\t-h hint\t\tIdentity Hint to send. Default is CoAP. Zero length is\n"
2318 local.length = strlen(node);
2369 proxy.path.length != 0 || proxy.query.length != 0) {
2399 /* 0 length Identity is valid */
2421 size_t length;
2426 buf = read_file_mem(oscore_conf_file, &length);
2432 file_mem.length = length;