Lines Matching refs:str
65 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()
115 debug_send_line( ssl, level, file, line, str ); in mbedtls_debug_print_msg()
122 char str[DEBUG_BUF_SIZE]; in mbedtls_debug_print_ret() local
135 mbedtls_snprintf( str, sizeof( str ), "%s() returned %d (-0x%04x)\n", in mbedtls_debug_print_ret()
138 debug_send_line( ssl, level, file, line, str ); in mbedtls_debug_print_ret()
145 char str[DEBUG_BUF_SIZE]; in mbedtls_debug_print_buf() local
152 mbedtls_snprintf( str + idx, sizeof( str ) - idx, "dumping '%s' (%u bytes)\n", in mbedtls_debug_print_buf()
155 debug_send_line( ssl, level, file, line, str ); in mbedtls_debug_print_buf()
168 mbedtls_snprintf( str + idx, sizeof( str ) - idx, " %s\n", txt ); in mbedtls_debug_print_buf()
169 debug_send_line( ssl, level, file, line, str ); in mbedtls_debug_print_buf()
175 idx += mbedtls_snprintf( str + idx, sizeof( str ) - idx, "%04x: ", in mbedtls_debug_print_buf()
180 idx += mbedtls_snprintf( str + idx, sizeof( str ) - idx, " %02x", in mbedtls_debug_print_buf()
188 idx += mbedtls_snprintf( str + idx, sizeof( str ) - idx, " " ); in mbedtls_debug_print_buf()
190 mbedtls_snprintf( str + idx, sizeof( str ) - idx, " %s\n", txt ); in mbedtls_debug_print_buf()
191 debug_send_line( ssl, level, file, line, str ); in mbedtls_debug_print_buf()
200 char str[DEBUG_BUF_SIZE]; in mbedtls_debug_print_ecp() local
205 mbedtls_snprintf( str, sizeof( str ), "%s(X)", text ); in mbedtls_debug_print_ecp()
206 mbedtls_debug_print_mpi( ssl, level, file, line, str, &X->X ); in mbedtls_debug_print_ecp()
208 mbedtls_snprintf( str, sizeof( str ), "%s(Y)", text ); in mbedtls_debug_print_ecp()
209 mbedtls_debug_print_mpi( ssl, level, file, line, str, &X->Y ); in mbedtls_debug_print_ecp()
218 char str[DEBUG_BUF_SIZE]; in mbedtls_debug_print_mpi() local
233 mbedtls_snprintf( str + idx, sizeof( str ) - idx, "value of '%s' (%d bits) is:\n", in mbedtls_debug_print_mpi()
236 debug_send_line( ssl, level, file, line, str ); in mbedtls_debug_print_mpi()
255 mbedtls_snprintf( str + idx, sizeof( str ) - idx, "\n" ); in mbedtls_debug_print_mpi()
256 debug_send_line( ssl, level, file, line, str ); in mbedtls_debug_print_mpi()
261 idx += mbedtls_snprintf( str + idx, sizeof( str ) - idx, " %02x", (unsigned int) in mbedtls_debug_print_mpi()
270 idx += mbedtls_snprintf( str + idx, sizeof( str ) - idx, " 00" ); in mbedtls_debug_print_mpi()
272 mbedtls_snprintf( str + idx, sizeof( str ) - idx, "\n" ); in mbedtls_debug_print_mpi()
273 debug_send_line( ssl, level, file, line, str ); in mbedtls_debug_print_mpi()
319 char str[DEBUG_BUF_SIZE]; in debug_print_line_by_line() local
331 memcpy( str, start, len ); in debug_print_line_by_line()
332 str[len] = '\0'; in debug_print_line_by_line()
334 debug_send_line( ssl, level, file, line, str ); in debug_print_line_by_line()
345 char str[DEBUG_BUF_SIZE]; in mbedtls_debug_print_crt() local
355 mbedtls_snprintf( str, sizeof( str ), "%s #%d:\n", text, ++i ); in mbedtls_debug_print_crt()
356 debug_send_line( ssl, level, file, line, str ); in mbedtls_debug_print_crt()