/openthread-3.4.0/third_party/mbedtls/repo/programs/ssl/ |
D | ssl_pthread_server.c | 111 mbedtls_net_context client_fd; member 129 mbedtls_net_context *client_fd = &thread_info->client_fd; in handle_ssl_connection() local 149 mbedtls_ssl_set_bio( &ssl, client_fd, mbedtls_net_send, mbedtls_net_recv, NULL ); in handle_ssl_connection() 270 mbedtls_net_free( client_fd ); in handle_ssl_connection() 278 static int thread_create( mbedtls_net_context *client_fd ) in thread_create() argument 307 memcpy( &threads[i].data.client_fd, client_fd, sizeof( mbedtls_net_context ) ); in thread_create() 321 mbedtls_net_context listen_fd, client_fd; in main() local 352 mbedtls_net_init( &client_fd ); in main() 483 if( ( ret = mbedtls_net_accept( &listen_fd, &client_fd, in main() 494 if( ( ret = thread_create( &client_fd ) ) != 0 ) in main() [all …]
|
D | ssl_fork_server.c | 103 mbedtls_net_context listen_fd, client_fd; in main() local 115 mbedtls_net_init( &client_fd ); in main() 224 mbedtls_net_init( &client_fd ); in main() 230 if( ( ret = mbedtls_net_accept( &listen_fd, &client_fd, in main() 255 mbedtls_net_close( &client_fd ); in main() 296 mbedtls_ssl_set_bio( &ssl, &client_fd, mbedtls_net_send, mbedtls_net_recv, NULL ); in main() 403 mbedtls_net_free( &client_fd ); in main()
|
D | ssl_server.c | 98 mbedtls_net_context listen_fd, client_fd; in main() local 113 mbedtls_net_init( &client_fd ); in main() 244 mbedtls_net_free( &client_fd ); in main() 254 if( ( ret = mbedtls_net_accept( &listen_fd, &client_fd, in main() 261 mbedtls_ssl_set_bio( &ssl, &client_fd, mbedtls_net_send, mbedtls_net_recv, NULL ); in main() 380 mbedtls_net_free( &client_fd ); in main()
|
D | dtls_server.c | 107 mbedtls_net_context listen_fd, client_fd; in main() local 126 mbedtls_net_init( &client_fd ); in main() 272 mbedtls_net_free( &client_fd ); in main() 282 if( ( ret = mbedtls_net_accept( &listen_fd, &client_fd, in main() 298 mbedtls_ssl_set_bio( &ssl, &client_fd, in main() 410 mbedtls_net_free( &client_fd ); in main()
|
D | ssl_server2.c | 936 static mbedtls_net_context listen_fd, client_fd; variable 946 mbedtls_net_free( &client_fd ); /* causes net_read() to abort */ in term_handler() 1383 mbedtls_net_init( &client_fd ); in main() 3028 io_ctx.net = &client_fd; in main() 3084 mbedtls_net_free( &client_fd ); in main() 3094 if( ( ret = mbedtls_net_accept( &listen_fd, &client_fd, in main() 3113 ret = mbedtls_net_set_nonblock( &client_fd ); in main() 3115 ret = mbedtls_net_set_block( &client_fd ); in main() 3177 ret = idle( &client_fd, &timer, ret ); in main() 3179 ret = idle( &client_fd, ret ); in main() [all …]
|
/openthread-3.4.0/third_party/mbedtls/repo/programs/pkey/ |
D | dh_server.c | 81 mbedtls_net_context listen_fd, client_fd; in main() local 97 mbedtls_net_init( &client_fd ); in main() 198 if( ( ret = mbedtls_net_accept( &listen_fd, &client_fd, in main() 243 if( ( ret = mbedtls_net_send( &client_fd, buf2, 2 ) ) != 2 || in main() 244 ( ret = mbedtls_net_send( &client_fd, buf, buflen ) ) != (int) buflen ) in main() 259 if( ( ret = mbedtls_net_recv( &client_fd, buf, n ) ) != (int) n ) in main() 306 if( ( ret = mbedtls_net_send( &client_fd, buf, 16 ) ) != 16 ) in main() 321 mbedtls_net_free( &client_fd ); in main()
|
/openthread-3.4.0/third_party/mbedtls/repo/programs/test/ |
D | udp_proxy.c | 809 mbedtls_net_context listen_fd, client_fd, server_fd; in main() local 821 mbedtls_net_init( &client_fd ); in main() 878 mbedtls_net_free( &client_fd ); in main() 883 if( ( ret = mbedtls_net_accept( &listen_fd, &client_fd, in main() 898 nb_fds = client_fd.fd; in main() 913 outbuf[1].ctx = &client_fd; in main() 960 FD_SET( client_fd.fd, &read_fds ); in main() 972 if( FD_ISSET( client_fd.fd, &read_fds ) ) in main() 975 &server_fd, &client_fd ) ) != 0 ) in main() 982 &client_fd, &server_fd ) ) != 0 ) in main() [all …]
|