/openthread-latest/third_party/mbedtls/repo/programs/ssl/ |
D | ssl_pthread_server.c | 83 mbedtls_net_context client_fd; member 101 mbedtls_net_context *client_fd = &thread_info->client_fd; in handle_ssl_connection() local 120 mbedtls_ssl_set_bio(&ssl, client_fd, mbedtls_net_send, mbedtls_net_recv, NULL); in handle_ssl_connection() 231 mbedtls_net_free(client_fd); in handle_ssl_connection() 239 static int thread_create(mbedtls_net_context *client_fd) in thread_create() argument 268 memcpy(&threads[i].data.client_fd, client_fd, sizeof(mbedtls_net_context)); in thread_create() 281 mbedtls_net_context listen_fd, client_fd; in main() local 312 mbedtls_net_init(&client_fd); in main() 446 if ((ret = mbedtls_net_accept(&listen_fd, &client_fd, in main() 456 if ((ret = thread_create(&client_fd)) != 0) { in main() [all …]
|
D | ssl_fork_server.c | 76 mbedtls_net_context listen_fd, client_fd; in main() local 88 mbedtls_net_init(&client_fd); in main() 199 mbedtls_net_init(&client_fd); in main() 205 if ((ret = mbedtls_net_accept(&listen_fd, &client_fd, in main() 227 mbedtls_net_close(&client_fd); in main() 265 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 | ssl_server.c | 69 mbedtls_net_context listen_fd, client_fd; in main() local 84 mbedtls_net_init(&client_fd); in main() 217 mbedtls_net_free(&client_fd); in main() 227 if ((ret = mbedtls_net_accept(&listen_fd, &client_fd, in main() 233 mbedtls_ssl_set_bio(&ssl, &client_fd, mbedtls_net_send, mbedtls_net_recv, NULL); in main() 342 mbedtls_net_free(&client_fd); in main()
|
D | dtls_server.c | 79 mbedtls_net_context listen_fd, client_fd; in main() local 98 mbedtls_net_init(&client_fd); in main() 249 mbedtls_net_free(&client_fd); in main() 259 if ((ret = mbedtls_net_accept(&listen_fd, &client_fd, in main() 273 mbedtls_ssl_set_bio(&ssl, &client_fd, in main() 381 mbedtls_net_free(&client_fd); in main()
|
D | ssl_server2.c | 1053 static mbedtls_net_context listen_fd, client_fd; variable 1063 mbedtls_net_free(&client_fd); /* causes net_read() to abort */ in term_handler() 1631 mbedtls_net_init(&client_fd); in main() 3276 io_ctx.net = &client_fd; in main() 3346 mbedtls_net_free(&client_fd); in main() 3356 if ((ret = mbedtls_net_accept(&listen_fd, &client_fd, in main() 3374 ret = mbedtls_net_set_nonblock(&client_fd); in main() 3376 ret = mbedtls_net_set_block(&client_fd); in main() 3488 ret = idle(&client_fd, &timer, ret); in main() 3490 ret = idle(&client_fd, ret); in main() [all …]
|
/openthread-latest/third_party/mbedtls/repo/programs/pkey/ |
D | dh_server.c | 56 mbedtls_net_context listen_fd, client_fd; in main() local 72 mbedtls_net_init(&client_fd); in main() 165 if ((ret = mbedtls_net_accept(&listen_fd, &client_fd, in main() 216 if ((ret = mbedtls_net_send(&client_fd, buf2, 2)) != 2 || in main() 217 (ret = mbedtls_net_send(&client_fd, buf, buflen)) != (int) buflen) { in main() 231 if ((ret = mbedtls_net_recv(&client_fd, buf, n)) != (int) n) { in main() 278 if ((ret = mbedtls_net_send(&client_fd, buf, 16)) != 16) { in main() 293 mbedtls_net_free(&client_fd); in main()
|
/openthread-latest/third_party/mbedtls/repo/programs/test/ |
D | udp_proxy.c | 765 mbedtls_net_context listen_fd, client_fd, server_fd; in main() local 777 mbedtls_net_init(&client_fd); in main() 835 mbedtls_net_free(&client_fd); in main() 840 if ((ret = mbedtls_net_accept(&listen_fd, &client_fd, in main() 854 nb_fds = client_fd.fd; in main() 870 outbuf[1].ctx = &client_fd; in main() 913 FD_SET(client_fd.fd, &read_fds); in main() 925 if (FD_ISSET(client_fd.fd, &read_fds)) { in main() 927 &server_fd, &client_fd)) != 0) { in main() 934 &client_fd, &server_fd)) != 0) { in main() [all …]
|