Lines Matching refs:ssl

63 static inline void debug_send_line( const mbedtls_ssl_context *ssl, int level,  in debug_send_line()  argument
74 mbedtls_snprintf( idstr, sizeof( idstr ), "%p: %s", ssl, str ); in debug_send_line()
75 ssl->conf->f_dbg( ssl->conf->p_dbg, level, file, line, idstr ); in debug_send_line()
77 ssl->conf->f_dbg( ssl->conf->p_dbg, level, file, line, str ); in debug_send_line()
81 void mbedtls_debug_print_msg( const mbedtls_ssl_context *ssl, int level, in mbedtls_debug_print_msg() argument
89 if( NULL == ssl || NULL == ssl->conf || NULL == ssl->conf->f_dbg || level > debug_threshold ) in mbedtls_debug_print_msg()
115 debug_send_line( ssl, level, file, line, str ); in mbedtls_debug_print_msg()
118 void mbedtls_debug_print_ret( const mbedtls_ssl_context *ssl, int level, in mbedtls_debug_print_ret() argument
124 if( ssl->conf == NULL || ssl->conf->f_dbg == NULL || level > debug_threshold ) in mbedtls_debug_print_ret()
138 debug_send_line( ssl, level, file, line, str ); in mbedtls_debug_print_ret()
141 void mbedtls_debug_print_buf( const mbedtls_ssl_context *ssl, int level, in mbedtls_debug_print_buf() argument
149 if( ssl->conf == NULL || ssl->conf->f_dbg == NULL || level > debug_threshold ) in mbedtls_debug_print_buf()
155 debug_send_line( ssl, level, file, line, str ); in mbedtls_debug_print_buf()
169 debug_send_line( ssl, level, file, line, str ); in mbedtls_debug_print_buf()
191 debug_send_line( ssl, level, file, line, str ); in mbedtls_debug_print_buf()
196 void mbedtls_debug_print_ecp( const mbedtls_ssl_context *ssl, int level, in mbedtls_debug_print_ecp() argument
202 if( ssl->conf == NULL || ssl->conf->f_dbg == NULL || level > debug_threshold ) in mbedtls_debug_print_ecp()
206 mbedtls_debug_print_mpi( ssl, level, file, line, str, &X->X ); in mbedtls_debug_print_ecp()
209 mbedtls_debug_print_mpi( ssl, level, file, line, str, &X->Y ); in mbedtls_debug_print_ecp()
214 void mbedtls_debug_print_mpi( const mbedtls_ssl_context *ssl, int level, in mbedtls_debug_print_mpi() argument
222 if( ssl->conf == NULL || ssl->conf->f_dbg == NULL || X == NULL || level > debug_threshold ) in mbedtls_debug_print_mpi()
236 debug_send_line( ssl, level, file, line, str ); in mbedtls_debug_print_mpi()
256 debug_send_line( ssl, level, file, line, str ); in mbedtls_debug_print_mpi()
273 debug_send_line( ssl, level, file, line, str ); in mbedtls_debug_print_mpi()
278 static void debug_print_pk( const mbedtls_ssl_context *ssl, int level, in debug_print_pk() argument
290 debug_send_line( ssl, level, file, line, in debug_print_pk()
304 mbedtls_debug_print_mpi( ssl, level, file, line, name, items[i].value ); in debug_print_pk()
308 mbedtls_debug_print_ecp( ssl, level, file, line, name, items[i].value ); in debug_print_pk()
311 debug_send_line( ssl, level, file, line, in debug_print_pk()
316 static void debug_print_line_by_line( const mbedtls_ssl_context *ssl, int level, in debug_print_line_by_line() argument
334 debug_send_line( ssl, level, file, line, str ); in debug_print_line_by_line()
341 void mbedtls_debug_print_crt( const mbedtls_ssl_context *ssl, int level, in mbedtls_debug_print_crt() argument
348 if( ssl->conf == NULL || ssl->conf->f_dbg == NULL || crt == NULL || level > debug_threshold ) in mbedtls_debug_print_crt()
356 debug_send_line( ssl, level, file, line, str ); in mbedtls_debug_print_crt()
359 debug_print_line_by_line( ssl, level, file, line, buf ); in mbedtls_debug_print_crt()
361 debug_print_pk( ssl, level, file, line, "crt->", &crt->pk ); in mbedtls_debug_print_crt()