/mbedtls-3.5.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 132 mbedtls_ssl_set_bio(&ssl, client_fd, mbedtls_net_send, mbedtls_net_recv, NULL); in handle_ssl_connection() 243 mbedtls_net_free(client_fd); in handle_ssl_connection() 251 static int thread_create(mbedtls_net_context *client_fd) in thread_create() argument 280 memcpy(&threads[i].data.client_fd, client_fd, sizeof(mbedtls_net_context)); in thread_create() 293 mbedtls_net_context listen_fd, client_fd; in main() local 324 mbedtls_net_init(&client_fd); in main() 448 if ((ret = mbedtls_net_accept(&listen_fd, &client_fd, in main() 458 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() 202 mbedtls_net_init(&client_fd); in main() 208 if ((ret = mbedtls_net_accept(&listen_fd, &client_fd, in main() 230 mbedtls_net_close(&client_fd); in main() 268 mbedtls_ssl_set_bio(&ssl, &client_fd, mbedtls_net_send, mbedtls_net_recv, NULL); in main() 367 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() 219 mbedtls_net_free(&client_fd); in main() 229 if ((ret = mbedtls_net_accept(&listen_fd, &client_fd, in main() 235 mbedtls_ssl_set_bio(&ssl, &client_fd, mbedtls_net_send, mbedtls_net_recv, NULL); in main() 344 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() 251 mbedtls_net_free(&client_fd); in main() 261 if ((ret = mbedtls_net_accept(&listen_fd, &client_fd, in main() 275 mbedtls_ssl_set_bio(&ssl, &client_fd, in main() 384 mbedtls_net_free(&client_fd); in main()
|
D | ssl_server2.c | 1055 static mbedtls_net_context listen_fd, client_fd; variable 1065 mbedtls_net_free(&client_fd); /* causes net_read() to abort */ in term_handler() 1596 mbedtls_net_init(&client_fd); in main() 3253 io_ctx.net = &client_fd; in main() 3323 mbedtls_net_free(&client_fd); in main() 3333 if ((ret = mbedtls_net_accept(&listen_fd, &client_fd, in main() 3351 ret = mbedtls_net_set_nonblock(&client_fd); in main() 3353 ret = mbedtls_net_set_block(&client_fd); in main() 3452 ret = idle(&client_fd, &timer, ret); in main() 3454 ret = idle(&client_fd, ret); in main() [all …]
|
/mbedtls-3.5.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() 175 if ((ret = mbedtls_net_accept(&listen_fd, &client_fd, in main() 217 if ((ret = mbedtls_net_send(&client_fd, buf2, 2)) != 2 || in main() 218 (ret = mbedtls_net_send(&client_fd, buf, buflen)) != (int) buflen) { in main() 232 if ((ret = mbedtls_net_recv(&client_fd, buf, n)) != (int) n) { in main() 279 if ((ret = mbedtls_net_send(&client_fd, buf, 16)) != 16) { in main() 293 mbedtls_net_free(&client_fd); in main()
|
/mbedtls-3.5.0/programs/test/ |
D | udp_proxy.c | 778 mbedtls_net_context listen_fd, client_fd, server_fd; in main() local 790 mbedtls_net_init(&client_fd); in main() 848 mbedtls_net_free(&client_fd); in main() 853 if ((ret = mbedtls_net_accept(&listen_fd, &client_fd, in main() 867 nb_fds = client_fd.fd; in main() 883 outbuf[1].ctx = &client_fd; in main() 926 FD_SET(client_fd.fd, &read_fds); in main() 938 if (FD_ISSET(client_fd.fd, &read_fds)) { in main() 940 &server_fd, &client_fd)) != 0) { in main() 947 &client_fd, &server_fd)) != 0) { in main() [all …]
|