/mbedtls-3.4.0/programs/ssl/ |
D | ssl_pthread_server.c | 95 mbedtls_net_context client_fd; member 113 mbedtls_net_context *client_fd = &thread_info->client_fd; in handle_ssl_connection() local 133 mbedtls_ssl_set_bio( &ssl, client_fd, mbedtls_net_send, mbedtls_net_recv, NULL ); in handle_ssl_connection() 254 mbedtls_net_free( client_fd ); in handle_ssl_connection() 262 static int thread_create( mbedtls_net_context *client_fd ) in thread_create() argument 291 memcpy( &threads[i].data.client_fd, client_fd, sizeof( mbedtls_net_context ) ); in thread_create() 305 mbedtls_net_context listen_fd, client_fd; in main() local 336 mbedtls_net_init( &client_fd ); in main() 468 if( ( ret = mbedtls_net_accept( &listen_fd, &client_fd, in main() 479 if( ( ret = thread_create( &client_fd ) ) != 0 ) in main() [all …]
|
D | ssl_fork_server.c | 88 mbedtls_net_context listen_fd, client_fd; in main() local 100 mbedtls_net_init( &client_fd ); in main() 210 mbedtls_net_init( &client_fd ); in main() 216 if( ( ret = mbedtls_net_accept( &listen_fd, &client_fd, in main() 241 mbedtls_net_close( &client_fd ); in main() 282 mbedtls_ssl_set_bio( &ssl, &client_fd, mbedtls_net_send, mbedtls_net_recv, NULL ); in main() 389 mbedtls_net_free( &client_fd ); in main()
|
D | ssl_server.c | 81 mbedtls_net_context listen_fd, client_fd; in main() local 96 mbedtls_net_init( &client_fd ); in main() 228 mbedtls_net_free( &client_fd ); in main() 238 if( ( ret = mbedtls_net_accept( &listen_fd, &client_fd, in main() 245 mbedtls_ssl_set_bio( &ssl, &client_fd, mbedtls_net_send, mbedtls_net_recv, NULL ); in main() 364 mbedtls_net_free( &client_fd ); in main()
|
D | dtls_server.c | 91 mbedtls_net_context listen_fd, client_fd; in main() local 110 mbedtls_net_init( &client_fd ); in main() 256 mbedtls_net_free( &client_fd ); in main() 266 if( ( ret = mbedtls_net_accept( &listen_fd, &client_fd, in main() 282 mbedtls_ssl_set_bio( &ssl, &client_fd, in main() 394 mbedtls_net_free( &client_fd ); in main()
|
D | ssl_server2.c | 1038 static mbedtls_net_context listen_fd, client_fd; variable 1048 mbedtls_net_free( &client_fd ); /* causes net_read() to abort */ in term_handler() 1566 mbedtls_net_init( &client_fd ); in main() 3401 io_ctx.net = &client_fd; in main() 3475 mbedtls_net_free( &client_fd ); in main() 3485 if( ( ret = mbedtls_net_accept( &listen_fd, &client_fd, in main() 3504 ret = mbedtls_net_set_nonblock( &client_fd ); in main() 3506 ret = mbedtls_net_set_block( &client_fd ); in main() 3580 ret = idle( &client_fd, &timer, ret ); in main() 3582 ret = idle( &client_fd, ret ); in main() [all …]
|
/mbedtls-3.4.0/programs/pkey/ |
D | dh_server.c | 67 mbedtls_net_context listen_fd, client_fd; in main() local 83 mbedtls_net_init( &client_fd ); in main() 183 if( ( ret = mbedtls_net_accept( &listen_fd, &client_fd, in main() 228 if( ( ret = mbedtls_net_send( &client_fd, buf2, 2 ) ) != 2 || in main() 229 ( ret = mbedtls_net_send( &client_fd, buf, buflen ) ) != (int) buflen ) in main() 244 if( ( ret = mbedtls_net_recv( &client_fd, buf, n ) ) != (int) n ) in main() 291 if( ( ret = mbedtls_net_send( &client_fd, buf, 16 ) ) != 16 ) in main() 306 mbedtls_net_free( &client_fd ); in main()
|
/mbedtls-3.4.0/programs/test/ |
D | udp_proxy.c | 812 mbedtls_net_context listen_fd, client_fd, server_fd; in main() local 824 mbedtls_net_init( &client_fd ); in main() 885 mbedtls_net_free( &client_fd ); in main() 890 if( ( ret = mbedtls_net_accept( &listen_fd, &client_fd, in main() 905 nb_fds = client_fd.fd; in main() 920 outbuf[1].ctx = &client_fd; in main() 967 FD_SET( client_fd.fd, &read_fds ); in main() 979 if( FD_ISSET( client_fd.fd, &read_fds ) ) in main() 982 &server_fd, &client_fd ) ) != 0 ) in main() 989 &client_fd, &server_fd ) ) != 0 ) in main() [all …]
|