Home
last modified time | relevance | path

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

12

/net-tools-3.6.0/mbedtls-2.4.0/library/
Ddebug.c65 const char *str ) in debug_send_line() argument
74 mbedtls_snprintf( idstr, sizeof( idstr ), "%p: %s", ssl, str ); in debug_send_line()
77 ssl->conf->f_dbg( ssl->conf->p_dbg, level, file, line, str ); in debug_send_line()
86 char str[DEBUG_BUF_SIZE]; in mbedtls_debug_print_msg() local
95 ret = _vsnprintf_s( str, DEBUG_BUF_SIZE, _TRUNCATE, format, argp ); in mbedtls_debug_print_msg()
97 ret = _vsnprintf( str, DEBUG_BUF_SIZE, format, argp ); in mbedtls_debug_print_msg()
100 str[DEBUG_BUF_SIZE-1] = '\0'; in mbedtls_debug_print_msg()
105 ret = vsnprintf( str, DEBUG_BUF_SIZE, format, argp ); in mbedtls_debug_print_msg()
111 str[ret] = '\n'; in mbedtls_debug_print_msg()
112 str[ret + 1] = '\0'; in mbedtls_debug_print_msg()
[all …]
/net-tools-3.6.0/libcoap/src/
Dstr.c17 str *coap_new_string(size_t size) { in coap_new_string()
18 str *s = coap_malloc(sizeof(str) + size + 1); in coap_new_string()
26 memset(s, 0, sizeof(str)); in coap_new_string()
27 s->s = ((unsigned char *)s) + sizeof(str); in coap_new_string()
31 void coap_delete_string(str *s) { in coap_delete_string()
Dresource.c105 match(const str *text, const str *pattern, int match_prefix, int match_substring) { in match()
177 str resource_param = { 0, NULL }, query_pattern = { 0, NULL };
182 static const str _rt_attributes[] = {
198 const str *rt_attributes;
243 str unquoted_val;
524 const str *token) {
544 const str *token) {
580 const str *token) {
593 const str *token) {
611 str token;
[all …]
/net-tools-3.6.0/libcoap/include/coap/
Dresource.h47 str * /* token */,
55 str name;
56 str value;
94 str uri;
298 const str *token);
311 const str *token);
323 const str *token);
338 const str *token);
395 const str *);
Dstr.h18 } str; typedef
26 str *coap_new_string(size_t size);
31 void coap_delete_string(str *);
Duri.h21 str host; /**< host part of the URI */
23 str path; /**< Beginning of the first path segment.
25 str query; /**< The query part if present */
/net-tools-3.6.0/mbedtls-2.4.0/tests/suites/
Dmain_test.function5 int verify_string( char **str )
7 if( (*str)[0] != '"' ||
8 (*str)[strlen( *str ) - 1] != '"' )
11 "Expected string (with \"\") for parameter and got: %s\n", *str );
15 (*str)++;
16 (*str)[strlen( *str ) - 1] = '\0';
21 int verify_int( char *str, int *value )
28 for( i = 0; i < strlen( str ); i++ )
30 if( i == 0 && str[i] == '-' )
37 str[i - 1] == '0' && str[i] == 'x' )
[all …]
Dtest_suite_asn1write.function19 unsigned char str[150] = { 0 };
26 str_len = unhexify( str, hex_str );
31 ret = mbedtls_asn1_write_octet_string( &p, buf + GUARD_LEN, str, str_len );
51 void mbedtls_asn1_write_ia5_string( char *str, char *hex_asn1,
62 str_len = strlen( str );
67 ret = mbedtls_asn1_write_ia5_string( &p, buf + GUARD_LEN, str, str_len );
Dtest_suite_debug.function10 void string_debug(void *data, int level, const char *file, int line, const char *str)
30 while( *str++ != ' ' );
33 memcpy( p, str, strlen( str ) );
34 p += strlen( str );
Dtest_suite_mpi.function35 char str[1000];
43 … TEST_ASSERT( mbedtls_mpi_write_string( &X, radix_A, str, output_size, &len ) == result_write );
46 TEST_ASSERT( strcasecmp( str, input_A ) == 0 );
59 unsigned char str[1000];
69 TEST_ASSERT( mbedtls_mpi_write_string( &X, radix_A, (char *) str, sizeof( str ), &len ) == 0 );
70 TEST_ASSERT( strcmp( (char *) str, input_A ) == 0 );
82 unsigned char str[1000];
87 memset( str, 0x00, 1000 );
100 hexify( str, buf, buflen );
102 TEST_ASSERT( strcasecmp( (char *) str, input_A ) == 0 );
[all …]
/net-tools-3.6.0/mbedtls-2.4.0/programs/hash/
Dhello.c50 char str[] = "Hello, world!"; in main() local
52 mbedtls_printf( "\n MD5('%s') = ", str ); in main()
54 mbedtls_md5( (unsigned char *) str, 13, digest ); in main()
/net-tools-3.6.0/mbedtls-2.4.0/tests/scripts/
Dgen_pkcs1_v21_sign_verify.pl12 my $str = shift;
18 next if($line !~ /^# $str/);
/net-tools-3.6.0/libcoap/tests/
Dtest_options.c25 str teststr = { 1, (unsigned char *)"" }; in t_parse_option1()
41 str teststr = { 2, (unsigned char *)"\xc1" }; in t_parse_option2()
56 str teststr = { 13, (unsigned char *)"\x3c\x00\x01\x02\x03\x04" in t_parse_option3()
73 str teststr = { 2, (unsigned char *)"\xf3" }; in t_parse_option4()
85 str teststr = { 2, (unsigned char *)"\x3f" }; in t_parse_option5()
97 str teststr = { 1, (unsigned char *)"\xff" }; in t_parse_option6()
109 str teststr = { 2, (unsigned char *)"\xd0\x07" }; in t_parse_option7()
123 str teststr = { 3, (unsigned char *)"\xe0\x01\xff" }; in t_parse_option8()
137 str teststr = { 3, (unsigned char *)"\xe0\xfe\xf2" }; in t_parse_option9()
150 str teststr = { 3, (unsigned char *)"\xe0\xff\xff" }; in t_parse_option10()
[all …]
/net-tools-3.6.0/docker/
Dsyslog-receiver.py28 local_str = "[" + localIP + "]:" + str(localPort)
30 local_str = localIP + ":" + str(localPort)
Dhttp-server.py18 self.send_header('Content-Length', str(self.length))
/net-tools-3.6.0/libcoap/examples/
Dcoap-rd.c57 str data; /**< points to the resource description */
101 str *token UNUSED_PARAM, in hnd_get_resource()
129 str *token UNUSED_PARAM, in hnd_put_resource()
143 str tmp; in hnd_put_resource()
207 str *token UNUSED_PARAM, in hnd_delete_resource()
229 str *token UNUSED_PARAM, in hnd_get_rd()
251 str *result) { in parse_param()
254 memset(result, 0, sizeof(str)); in parse_param()
393 str *token UNUSED_PARAM, in hnd_post_rd()
401 str h = {0, NULL}, ins = {0, NULL}, rt = {0, NULL}, lt = {0, NULL}; /* store query parameters */ in hnd_post_rd()
Detsi_iot_01.c130 coap_address_t *peer, coap_pdu_t *request, str *token, in hnd_get_index()
148 coap_address_t *peer, coap_pdu_t *request, str *token, in hnd_get_resource()
224 coap_address_t *peer, coap_pdu_t *request, str *token, in hnd_delete_resource()
240 coap_address_t *peer, coap_pdu_t *request, str *token, in hnd_post_test()
306 coap_address_t *peer, coap_pdu_t *request, str *token, in hnd_put_test()
357 coap_address_t *peer, coap_pdu_t *request, str *token, in hnd_delete_test()
373 coap_address_t *peer, coap_pdu_t *request, str *token, in hnd_get_query()
411 coap_address_t *peer, coap_pdu_t *request, str *token, in hnd_get_separate()
Dcoap-server.c74 str *token UNUSED_PARAM, in hnd_get_index()
97 str *token, in hnd_get_time()
164 str *token UNUSED_PARAM, in hnd_put_time()
200 str *token UNUSED_PARAM, in hnd_delete_time()
215 str *token UNUSED_PARAM, in hnd_get_async()
/net-tools-3.6.0/libcoap/
DMakefile.libcoap1 libcoap_src = pdu.c net.c debug.c encode.c uri.c subscribe.c resource.c hashkey.c str.c option.c as…
DMakefile.am64 src/str.c \
91 include/coap/str.h \
DTODO43 include/coap/str.h
52 include/coap/str.h
/net-tools-3.6.0/
Dhttp-server.py18 self.send_header('Content-Length', str(self.length))
Dhttps-server.py33 self.send_header('Content-Length', str(self.length))
/net-tools-3.6.0/mbedtls-2.4.0/programs/ssl/
Dssl_client1.c73 const char *str ) in my_debug() argument
77 mbedtls_fprintf( (FILE *) ctx, "%s:%04d: %s", file, line, str ); in my_debug()
Ddtls_client.c75 const char *str ) in my_debug() argument
79 mbedtls_fprintf( (FILE *) ctx, "%s:%04d: %s", file, line, str ); in my_debug()

12