/net-tools-3.7.0/mbedtls-2.4.0/tests/suites/ |
D | test_suite_pkparse.function | 16 int res; 24 res = mbedtls_pk_parse_keyfile( &ctx, key_file, pwd ); 26 TEST_ASSERT( res == result ); 28 if( res == 0 ) 45 int res; 49 res = mbedtls_pk_parse_public_keyfile( &ctx, key_file ); 51 TEST_ASSERT( res == result ); 53 if( res == 0 ) 70 int res; 74 res = mbedtls_pk_parse_public_keyfile( &ctx, key_file ); [all …]
|
D | test_suite_base64.function | 36 int res; 42 …res = mbedtls_base64_decode( dst_str, sizeof( dst_str ), &len, src_str, strlen( (char *) src_str )… 43 TEST_ASSERT( res == result ); 55 unsigned char *src = NULL, *res = NULL; 59 res = zero_alloc( dst_buf_size ); 61 TEST_ASSERT( mbedtls_base64_encode( res, dst_buf_size, &len, src, src_len ) == result ); 65 TEST_ASSERT( memcmp( dst, res, len ) == 0 ); 70 mbedtls_free( res ); 78 unsigned char *dst = NULL, *res = NULL; 82 res = zero_alloc( dst_buf_size ); [all …]
|
D | test_suite_x509parse.function | 125 int res; 131 res = mbedtls_x509_crt_info( buf, 2000, "", &crt ); 133 TEST_ASSERT( res != -1 ); 134 TEST_ASSERT( res != -2 ); 148 int res; 154 res = mbedtls_x509_crl_info( buf, 2000, "", &crl ); 156 TEST_ASSERT( res != -1 ); 157 TEST_ASSERT( res != -2 ); 171 int res; 177 res = mbedtls_x509_csr_info( buf, 2000, "", &csr ); [all …]
|
D | test_suite_mpi.function | 569 int res; 576 res = mbedtls_mpi_sub_abs( &Z, &X, &Y ); 577 TEST_ASSERT( res == sub_result ); 578 if( res == 0 ) 649 int res; 657 res = mbedtls_mpi_div_mpi( &Q, &R, &X, &Y ); 658 TEST_ASSERT( res == div_result ); 659 if( res == 0 ) 676 int res; 683 res = mbedtls_mpi_div_int( &Q, &R, &X, input_Y ); [all …]
|
D | test_suite_ccm.function | 38 void ccm_lengths( int msg_len, int iv_len, int add_len, int tag_len, int res ) 62 msg, out, tag, tag_len ) == res ); 67 if( res == 0 ) 70 TEST_ASSERT( decrypt_ret == res );
|
/net-tools-3.7.0/libcoap/src/ |
D | uri.c | 47 int secure = 0, res = 0; in coap_split_uri() local 70 res = -1; in coap_split_uri() 85 res = -2; in coap_split_uri() 99 res = -3; in coap_split_uri() 113 res = -3; in coap_split_uri() 138 res = -4; in coap_split_uri() 178 return res; in coap_split_uri() 266 int res; in make_decoded_option() local 274 res = check_segment(s, length); in make_decoded_option() 275 if (res < 0) in make_decoded_option() [all …]
|
D | resource.c | 450 coap_resource_t *res; local 457 LL_FOREACH_SAFE(context->resources, res, rtmp) { 459 HASH_ITER(hh, context->resources, res, rtmp) { 461 coap_free_resource(res);
|
/net-tools-3.7.0/tinydtls-0.8.2/ |
D | dtls.c | 243 int res; in dtls_write() local 247 res = dtls_connect(ctx, dst); in dtls_write() 249 return (res >= 0) ? 0 : res; in dtls_write() 1186 int res; in dtls_prepare_record() local 1200 res = 0; in dtls_prepare_record() 1203 if (*rlen < res + DTLS_RH_LENGTH + data_len_array[i]) { in dtls_prepare_record() 1210 res += data_len_array[i]; in dtls_prepare_record() 1271 res = 8; in dtls_prepare_record() 1275 if (*rlen < res + DTLS_RH_LENGTH + data_len_array[i]) { in dtls_prepare_record() 1282 res += data_len_array[i]; in dtls_prepare_record() [all …]
|
/net-tools-3.7.0/tinydtls-0.8.2/tests/ |
D | dtls-client.c | 171 int res; in try_send() local 172 res = dtls_write(ctx, dst, (uint8 *)buf, len); in try_send() 173 if (res >= 0) { in try_send() 174 memmove(buf, buf + res, len - res); in try_send() 175 len -= res; in try_send() 243 struct addrinfo *res, *ainfo; in resolve_address() local 258 error = getaddrinfo(addrstr, "", &hints, &res); in resolve_address() 265 for (ainfo = res; ainfo != NULL; ainfo = ainfo->ai_next) { in resolve_address() 278 freeaddrinfo(res); in resolve_address() 349 int opt, res; local [all …]
|
D | dtls-server.c | 189 struct addrinfo *res, *ainfo; in resolve_address() local 204 error = getaddrinfo(addrstr, "", &hints, &res); in resolve_address() 211 for (ainfo = res; ainfo != NULL; ainfo = ainfo->ai_next) { in resolve_address() 223 freeaddrinfo(res); in resolve_address()
|
/net-tools-3.7.0/libcoap/include/coap/ |
D | resource.h | 358 #define RESOURCES_FIND(r, k, res) { \ argument 360 (res) = tmp = NULL; \ 363 (res) = tmp; \ 380 #define RESOURCES_FIND(r, k, res) { \ argument 381 HASH_FIND(hh, (r), (k), sizeof(coap_key_t), (res)); \
|
/net-tools-3.7.0/tinydtls-0.8.2/examples/contiki/ |
D | dtls-client.c | 91 int res; in try_send() local 92 res = dtls_write(ctx, dst, (uint8 *)buf, buflen); in try_send() 93 if (res >= 0) { in try_send() 94 memmove(buf, buf + res, buflen - res); in try_send() 95 buflen -= res; in try_send()
|
/net-tools-3.7.0/mbedtls-2.4.0/tests/scripts/ |
D | generate_code.pl | 272 my @res = $test_data =~ /^$mapping_regex/msg; 273 foreach my $value (@res) 315 my @res = $test_data =~ /^depends_on:([\w:]+)/msg; 317 foreach my $deps (@res)
|
/net-tools-3.7.0/libcoap/examples/contiki/ |
D | coap-observer.c | 151 int res; in PROCESS_THREAD() local 155 res = coap_split_path(uri.path.s, uri.path.length, buf, &buflen); in PROCESS_THREAD() 157 while (res--) { in PROCESS_THREAD()
|
/net-tools-3.7.0/libcoap/examples/ |
D | client.c | 263 struct addrinfo *res, *ainfo; in resolve_address() local 278 error = getaddrinfo(addrstr, NULL, &hints, &res); in resolve_address() 285 for (ainfo = res; ainfo != NULL; ainfo = ainfo->ai_next) { in resolve_address() 298 freeaddrinfo(res); in resolve_address() 669 int res; in cmdline_uri() local 700 res = coap_split_path(uri.path.s, uri.path.length, buf, &buflen); in cmdline_uri() 702 while (res--) { in cmdline_uri() 715 res = coap_split_query(uri.query.s, uri.query.length, buf, &buflen); in cmdline_uri() 717 while (res--) { in cmdline_uri() 1039 int opt, res; in main() local [all …]
|
D | etsi_iot_01.c | 175 int res; in hnd_get_resource() local 178 res = coap_write_block_opt(&block, COAP_OPTION_BLOCK2, response, in hnd_get_resource() 181 switch (res) { in hnd_get_resource() 251 int res; in hnd_post_test() local 290 res = coap_split_path(uri->data, uri->length, buf, &buflen); in hnd_post_test() 292 while (res--) { in hnd_post_test()
|
/net-tools-3.7.0/mbedtls-2.4.0/library/ |
D | ccm.c | 389 static const unsigned char res[NB_TESTS][32] = { variable 428 memcmp( out, res[i], msg_len[i] + tag_len[i] ) != 0 ) in mbedtls_ccm_self_test() 438 res[i], out, in mbedtls_ccm_self_test() 439 res[i] + msg_len[i], tag_len[i] ); in mbedtls_ccm_self_test()
|
D | x509.c | 483 static int x509_parse_int(unsigned char **p, unsigned n, int *res){ in x509_parse_int() argument 484 *res = 0; in x509_parse_int() 487 *res *= 10; in x509_parse_int() 488 *res += (*(*p)++ - '0'); in x509_parse_int()
|
/net-tools-3.7.0/ |
D | coap-client.c | 676 int res; in parse_uri() local 682 res = coap_split_path(uri.path.s, uri.path.length, in parse_uri() 685 while (res--) { in parse_uri() 698 res = coap_split_query(uri.query.s, uri.query.length, in parse_uri() 701 while (res--) { in parse_uri()
|