/mbedtls-3.5.0/programs/pkey/ |
D | dh_client.c | 67 mbedtls_net_context server_fd; in main() local 80 mbedtls_net_init(&server_fd); in main() 131 if ((ret = mbedtls_net_connect(&server_fd, SERVER_NAME, in main() 145 if ((ret = mbedtls_net_recv(&server_fd, buf, 2)) != 2) { in main() 161 if ((ret = mbedtls_net_recv(&server_fd, buf, n)) != (int) n) { in main() 217 if ((ret = mbedtls_net_send(&server_fd, buf, n)) != (int) n) { in main() 256 if ((ret = mbedtls_net_recv(&server_fd, buf, 16)) != 16) { in main() 272 mbedtls_net_free(&server_fd); in main()
|
/mbedtls-3.5.0/programs/ssl/ |
D | mini_client.c | 157 mbedtls_net_context server_fd; in main() local 172 mbedtls_net_init(&server_fd); in main() 234 if ((server_fd.fd = socket(AF_INET, SOCK_STREAM, 0)) < 0) { in main() 239 if (connect(server_fd.fd, in main() 245 mbedtls_ssl_set_bio(&ssl, &server_fd, mbedtls_net_send, mbedtls_net_recv, NULL); in main() 264 mbedtls_net_free(&server_fd); in main()
|
D | ssl_client1.c | 71 mbedtls_net_context server_fd; in main() local 89 mbedtls_net_init(&server_fd); in main() 130 if ((ret = mbedtls_net_connect(&server_fd, SERVER_NAME, in main() 171 mbedtls_ssl_set_bio(&ssl, &server_fd, mbedtls_net_send, mbedtls_net_recv, NULL); in main() 276 mbedtls_net_free(&server_fd); in main()
|
D | dtls_client.c | 84 mbedtls_net_context server_fd; in main() local 107 mbedtls_net_init(&server_fd); in main() 148 if ((ret = mbedtls_net_connect(&server_fd, SERVER_ADDR, in main() 189 mbedtls_ssl_set_bio(&ssl, &server_fd, in main() 326 mbedtls_net_free(&server_fd); in main()
|
D | ssl_client2.c | 734 mbedtls_net_context server_fd; in main() local 843 mbedtls_net_init(&server_fd); in main() 2085 io_ctx.net = &server_fd; in main() 2148 if ((ret = mbedtls_net_connect(&server_fd, in main() 2158 ret = mbedtls_net_set_nonblock(&server_fd); in main() 2160 ret = mbedtls_net_set_block(&server_fd); in main() 2207 ret = idle(&server_fd, &timer, ret); in main() 2209 ret = idle(&server_fd, ret); in main() 2450 idle(&server_fd, &timer, ret); in main() 2452 idle(&server_fd, ret); in main() [all …]
|
D | ssl_mail_client.c | 335 mbedtls_net_context server_fd; in main() local 364 mbedtls_net_init(&server_fd); in main() 554 if ((ret = mbedtls_net_connect(&server_fd, opt.server_name, in main() 603 mbedtls_ssl_set_bio(&ssl, &server_fd, mbedtls_net_send, mbedtls_net_recv, NULL); in main() 637 ret = write_and_get_response(&server_fd, buf, 0); in main() 650 ret = write_and_get_response(&server_fd, buf, len); in main() 663 ret = write_and_get_response(&server_fd, buf, len); in main() 791 mbedtls_net_free(&server_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 791 mbedtls_net_init(&server_fd); in main() 821 if ((ret = mbedtls_net_connect(&server_fd, opt.server_addr, opt.server_port, in main() 868 if (nb_fds < server_fd.fd) { in main() 869 nb_fds = server_fd.fd; in main() 878 outbuf[0].ctx = &server_fd; in main() 925 FD_SET(server_fd.fd, &read_fds); in main() 940 &server_fd, &client_fd)) != 0) { in main() 945 if (FD_ISSET(server_fd.fd, &read_fds)) { in main() 947 &client_fd, &server_fd)) != 0) { in main() [all …]
|
/mbedtls-3.5.0/programs/x509/ |
D | cert_app.c | 134 mbedtls_net_context server_fd; in main() local 151 mbedtls_net_init(&server_fd); in main() 362 if ((ret = mbedtls_net_connect(&server_fd, opt.server_name, in main() 400 mbedtls_ssl_set_bio(&ssl, &server_fd, mbedtls_net_send, mbedtls_net_recv, NULL); in main() 444 mbedtls_net_free(&server_fd); in main()
|