Searched refs:server_fd (Results 1 – 8 of 8) sorted by relevance
/mbedtls-development/programs/pkey/ |
A D | dh_client.c | 77 mbedtls_net_context server_fd; in main() local 90 mbedtls_net_init( &server_fd ); in main() 144 if( ( ret = mbedtls_net_connect( &server_fd, SERVER_NAME, in main() 159 if( ( ret = mbedtls_net_recv( &server_fd, buf, 2 ) ) != 2 ) in main() 177 if( ( ret = mbedtls_net_recv( &server_fd, buf, n ) ) != (int) n ) in main() 240 if( ( ret = mbedtls_net_send( &server_fd, buf, n ) ) != (int) n ) in main() 279 if( ( ret = mbedtls_net_recv( &server_fd, buf, 16 ) ) != 16 ) in main() 295 mbedtls_net_free( &server_fd ); in main()
|
/mbedtls-development/programs/ssl/ |
A D | mini_client.c | 167 mbedtls_net_context server_fd; in main() local 182 mbedtls_net_init( &server_fd ); in main() 249 if( ( server_fd.fd = socket( AF_INET, SOCK_STREAM, 0 ) ) < 0 ) in main() 255 if( connect( server_fd.fd, in main() 262 mbedtls_ssl_set_bio( &ssl, &server_fd, mbedtls_net_send, mbedtls_net_recv, NULL ); in main() 283 mbedtls_net_free( &server_fd ); in main()
|
A D | ssl_client1.c | 83 mbedtls_net_context server_fd; in main() local 101 mbedtls_net_init( &server_fd ); in main() 143 if( ( ret = mbedtls_net_connect( &server_fd, SERVER_NAME, in main() 188 mbedtls_ssl_set_bio( &ssl, &server_fd, mbedtls_net_send, mbedtls_net_recv, NULL ); in main() 300 mbedtls_net_free( &server_fd ); in main()
|
A D | dtls_client.c | 94 mbedtls_net_context server_fd; in main() local 117 mbedtls_net_init( &server_fd ); in main() 159 if( ( ret = mbedtls_net_connect( &server_fd, SERVER_ADDR, in main() 204 mbedtls_ssl_set_bio( &ssl, &server_fd, in main() 341 mbedtls_net_free( &server_fd ); in main()
|
A D | ssl_client2.c | 649 mbedtls_net_context server_fd; in main() local 754 mbedtls_net_init( &server_fd ); in main() 2004 io_ctx.net = &server_fd; in main() 2129 ret = idle( &server_fd, ret ); in main() 2422 idle( &server_fd, ret ); in main() 2496 idle( &server_fd, ret ); in main() 2527 idle( &server_fd, ret ); in main() 2657 idle( &server_fd, ret ); in main() 2727 idle( &server_fd, ret ); in main() 2926 mbedtls_net_free( &server_fd ); in main() [all …]
|
A D | ssl_mail_client.c | 362 mbedtls_net_context server_fd; in main() local 391 mbedtls_net_init( &server_fd ); in main() 587 if( ( ret = mbedtls_net_connect( &server_fd, opt.server_name, in main() 640 mbedtls_ssl_set_bio( &ssl, &server_fd, mbedtls_net_send, mbedtls_net_recv, NULL ); in main() 678 ret = write_and_get_response( &server_fd, buf, 0 ); in main() 692 ret = write_and_get_response( &server_fd, buf, len ); in main() 706 ret = write_and_get_response( &server_fd, buf, len ); in main() 842 mbedtls_net_free( &server_fd ); in main()
|
/mbedtls-development/programs/test/ |
A D | udp_proxy.c | 807 mbedtls_net_context listen_fd, client_fd, server_fd; in main() local 820 mbedtls_net_init( &server_fd ); in main() 847 if( ( ret = mbedtls_net_connect( &server_fd, opt.server_addr, opt.server_port, in main() 897 if( nb_fds < server_fd.fd ) in main() 898 nb_fds = server_fd.fd; in main() 906 outbuf[0].ctx = &server_fd; in main() 957 FD_SET( server_fd.fd, &read_fds ); in main() 973 &server_fd, &client_fd ) ) != 0 ) in main() 977 if( FD_ISSET( server_fd.fd, &read_fds ) ) in main() 980 &client_fd, &server_fd ) ) != 0 ) in main() [all …]
|
/mbedtls-development/programs/x509/ |
A D | cert_app.c | 148 mbedtls_net_context server_fd; in main() local 165 mbedtls_net_init( &server_fd ); in main() 391 if( ( ret = mbedtls_net_connect( &server_fd, opt.server_name, in main() 434 mbedtls_ssl_set_bio( &ssl, &server_fd, mbedtls_net_send, mbedtls_net_recv, NULL ); in main() 481 mbedtls_net_free( &server_fd ); in main()
|
Completed in 15 milliseconds