Home
last modified time | relevance | path

Searched refs:min (Results 1 – 25 of 25) sorted by relevance

/net-tools-3.7.0/libcoap/examples/contiki/
Dserver.c87 #ifndef min
88 # define min(a,b) ((a) < (b) ? (a) : (b)) macro
132 min(5, COAP_OPT_LENGTH(option))) == 0) { in hnd_get_time()
135 min(sizeof(buf), response->max_size - response->length), in hnd_get_time()
/net-tools-3.7.0/mbedtls-2.4.0/library/
Dx509.c83 #define CHECK_RANGE(min, max, val) if( val < min || val > max ){ return( ret ); } argument
499 CHECK_RANGE( 0, 59, time->min ); in x509_date_is_valid()
550 CHECK( x509_parse_int( p, 2, &time->min ) ); in mbedtls_x509_get_time()
575 CHECK( x509_parse_int( p, 2, &time->min ) ); in mbedtls_x509_get_time()
876 now->min = st.wMinute; in x509_get_current_time()
904 now->min = lt->tm_min; in x509_get_current_time()
944 before->min > after->min ) in x509_check_time()
951 before->min == after->min && in x509_check_time()
Dx509_crl.c604 crl->this_update.min, crl->this_update.sec ); in mbedtls_x509_crl_info()
611 crl->next_update.min, crl->next_update.sec ); in mbedtls_x509_crl_info()
633 entry->revocation_date.min, entry->revocation_date.sec ); in mbedtls_x509_crl_info()
Dx509_crt.c1399 crt->valid_from.min, crt->valid_from.sec ); in mbedtls_x509_crt_info()
1406 crt->valid_to.min, crt->valid_to.sec ); in mbedtls_x509_crt_info()
Dssl_tls.c5593 void mbedtls_ssl_conf_handshake_timeout( mbedtls_ssl_config *conf, uint32_t min, uint32_t max ) in mbedtls_ssl_conf_handshake_timeout() argument
5595 conf->hs_timeout_min = min; in mbedtls_ssl_conf_handshake_timeout()
/net-tools-3.7.0/libcoap/examples/
Dcoap-rd.c46 #ifndef min
47 #define min(a,b) ((a) < (b) ? (a) : (b)) macro
169 rd->etag_len = min(COAP_OPT_LENGTH(etag), sizeof(rd->etag)); in hnd_put_resource()
380 rd->etag_len = min(COAP_OPT_LENGTH(etag), sizeof(rd->etag)); in make_rd()
428 memcpy(loc + loc_size, h.s, min(h.length, LOCSIZE - loc_size - 1)); in hnd_post_rd()
429 loc_size += min(h.length, LOCSIZE - loc_size - 1); in hnd_post_rd()
434 ins.s, min(ins.length, LOCSIZE - loc_size - 1)); in hnd_post_rd()
435 loc_size += min(ins.length, LOCSIZE - loc_size - 1); in hnd_post_rd()
448 min(ins.length, LOCSIZE - loc_size - 1)); in hnd_post_rd()
449 loc_size += min(ins.length, LOCSIZE - loc_size - 1); in hnd_post_rd()
Dcoap-server.c34 #ifndef min
35 #define min(a,b) ((a) < (b) ? (a) : (b)) macro
138 min(5, COAP_OPT_LENGTH(option))) == 0) { in hnd_get_time()
141 min(sizeof(buf), in hnd_get_time()
150 min(sizeof(buf), in hnd_get_time()
Detsi_iot_01.c31 #ifndef min
32 #define min(a,b) ((a) < (b) ? (a) : (b)) macro
270 uri->length = min(l, snprintf((char *)uri->data, l, "test/%p", test_payload)); in hnd_post_test()
393 L = min(sizeof(buf) - len, 11); in hnd_get_query()
397 L = min(sizeof(buf) - len, COAP_OPT_LENGTH(q)); in hnd_get_query()
Dclient.c64 #define min(a,b) ((a) < (b) ? (a) : (b)) macro
813 strncpy((char *)the_token.s, arg, min(sizeof(_token_data), strlen(arg))); in cmdline_token()
1221 if (nextpdu && nextpdu->t < min(obs_wait ? obs_wait : max_wait, max_wait) - now) { in main()
/net-tools-3.7.0/tinydtls-0.8.2/
Ddebug.c113 #ifndef min
114 #define min(a,b) ((a) < (b) ? (a) : (b)) macro
143 memcpy(buf, "(unknown address type)", min(22, len)); in dsrv_print_addr()
144 return min(22, len); in dsrv_print_addr()
Dnumeric.h31 #ifndef min
32 #define min(A,B) ((A) <= (B) ? (A) : (B)) macro
Dccm.c122 i = min(DTLS_CCM_BLOCKSIZE - j, la); in add_auth_data()
Ddtls.c2180 min(sizeof(buf) - sizeof(uint16), in dtls_send_client_key_exchange()
/net-tools-3.7.0/libcoap/src/
Ddebug.c157 #ifndef min
158 #define min(a,b) ((a) < (b) ? (a) : (b)) macro
184 memcpy(buf, "(unknown address type)", min(22, len)); in coap_print_addr()
185 return min(22, len); in coap_print_addr()
267 return types[min(t, sizeof(types)/sizeof(char *) - 1)]; in msg_type_string()
Dblock.c22 #define min(a,b) ((a) < (b) ? (a) : (b)) macro
128 min(len - start, (unsigned int)(1 << (block_szx + 4))), in coap_add_block()
Duri.c300 #ifndef min
301 #define min(a,b) ((a) < (b) ? (a) : (b)) macro
Dresource.c65 #define min(a,b) ((a) < (b) ? (a) : (b)) macro
569 memcpy(s->token, token->s, min(s->token_length, 8));
/net-tools-3.7.0/
Dthroughput-client.c333 #define min(a,b) (((a) < (b)) ? (a) : (b)) macro
499 len = min(data[i].len, data_size); in main()
Dcoap-client.c1551 strncpy((char *)the_token.s, arg, min(sizeof(_token_data), in set_token()
1820 if (nextpdu && nextpdu->t < min(obs_wait ? obs_wait : max_wait,
/net-tools-3.7.0/mbedtls-2.4.0/include/mbedtls/
Dx509.h209 int hour, min, sec; /**< Time. */ member
Dssl.h1456 void mbedtls_ssl_conf_handshake_timeout( mbedtls_ssl_config *conf, uint32_t min, uint32_t max );
/net-tools-3.7.0/mbedtls-2.4.0/tests/suites/
Dtest_suite_x509parse.function597 int hour, int min, int sec )
621 TEST_ASSERT( min == time.min );
Dtest_suite_mpi.function340 void mbedtls_mpi_shrink( int before, int used, int min, int after )
348 TEST_ASSERT( mbedtls_mpi_shrink( &X, min ) == 0 );
Dtest_suite_x509parse.data1558 X509 Get time (UTC invalid min)
/net-tools-3.7.0/tinydtls-0.8.2/examples/contiki/
Ddtls-client.c320 register size_t len = min(strlen(data), sizeof(buf) - buflen); in PROCESS_THREAD()