Home
last modified time | relevance | path

Searched refs:server_fd (Results 1 – 9 of 9) sorted by relevance

/net-tools-3.4.0/mbedtls-2.4.0/programs/pkey/
Ddh_client.c76 mbedtls_net_context server_fd; in main() local
89 mbedtls_net_init( &server_fd ); in main()
145 if( ( ret = mbedtls_net_connect( &server_fd, SERVER_NAME, in main()
160 if( ( ret = mbedtls_net_recv( &server_fd, buf, 2 ) ) != 2 ) in main()
178 if( ( ret = mbedtls_net_recv( &server_fd, buf, n ) ) != (int) n ) in main()
238 if( ( ret = mbedtls_net_send( &server_fd, buf, n ) ) != (int) n ) in main()
275 if( ( ret = mbedtls_net_recv( &server_fd, buf, 16 ) ) != 16 ) in main()
287 mbedtls_net_free( &server_fd ); in main()
/net-tools-3.4.0/mbedtls-2.4.0/programs/ssl/
Dmini_client.c174 mbedtls_net_context server_fd; in main() local
189 mbedtls_net_init( &server_fd ); in main()
256 if( ( server_fd.fd = socket( AF_INET, SOCK_STREAM, 0 ) ) < 0 ) in main()
262 if( connect( server_fd.fd, in main()
269 mbedtls_ssl_set_bio( &ssl, &server_fd, mbedtls_net_send, mbedtls_net_recv, NULL ); in main()
290 mbedtls_net_free( &server_fd ); in main()
Dssl_client1.c84 mbedtls_net_context server_fd; in main() local
102 mbedtls_net_init( &server_fd ); in main()
144 if( ( ret = mbedtls_net_connect( &server_fd, SERVER_NAME, in main()
189 mbedtls_ssl_set_bio( &ssl, &server_fd, mbedtls_net_send, mbedtls_net_recv, NULL ); in main()
295 mbedtls_net_free( &server_fd ); in main()
Ddtls_client.c86 mbedtls_net_context server_fd; in main() local
109 mbedtls_net_init( &server_fd ); in main()
151 if( ( ret = mbedtls_net_connect( &server_fd, SERVER_ADDR, in main()
195 mbedtls_ssl_set_bio( &ssl, &server_fd, in main()
328 mbedtls_net_free( &server_fd ); in main()
Dssl_mail_client.c350 mbedtls_net_context server_fd; in main() local
373 mbedtls_net_init( &server_fd ); in main()
571 if( ( ret = mbedtls_net_connect( &server_fd, opt.server_name, in main()
624 mbedtls_ssl_set_bio( &ssl, &server_fd, mbedtls_net_send, mbedtls_net_recv, NULL ); in main()
662 ret = write_and_get_response( &server_fd, buf, 0 ); in main()
676 ret = write_and_get_response( &server_fd, buf, len ); in main()
690 ret = write_and_get_response( &server_fd, buf, len ); in main()
824 mbedtls_net_free( &server_fd ); in main()
Dssl_client2.c403 mbedtls_net_context server_fd; in main() local
434 mbedtls_net_init( &server_fd ); in main()
1056 if( ( ret = mbedtls_net_connect( &server_fd, opt.server_addr, opt.server_port, in main()
1065 ret = mbedtls_net_set_nonblock( &server_fd ); in main()
1067 ret = mbedtls_net_set_block( &server_fd ); in main()
1237 mbedtls_ssl_set_bio( &ssl, &server_fd, my_send, my_recv, NULL ); in main()
1239 mbedtls_ssl_set_bio( &ssl, &server_fd, mbedtls_net_send, mbedtls_net_recv, in main()
1579 mbedtls_net_free( &server_fd ); in main()
1600 if( ( ret = mbedtls_net_connect( &server_fd, opt.server_addr, opt.server_port, in main()
1609 ret = mbedtls_net_set_nonblock( &server_fd ); in main()
[all …]
/net-tools-3.4.0/mbedtls-2.4.0/programs/test/
Dudp_proxy.c473 mbedtls_net_context listen_fd, client_fd, server_fd; in main() local
480 mbedtls_net_init( &server_fd ); in main()
507 if( ( ret = mbedtls_net_connect( &server_fd, opt.server_addr, opt.server_port, in main()
557 if( nb_fds < server_fd.fd ) in main()
558 nb_fds = server_fd.fd; in main()
566 FD_SET( server_fd.fd, &read_fds ); in main()
582 &server_fd, &client_fd ) ) != 0 ) in main()
586 if( FD_ISSET( server_fd.fd, &read_fds ) ) in main()
589 &client_fd, &server_fd ) ) != 0 ) in main()
607 mbedtls_net_free( &server_fd ); in main()
/net-tools-3.4.0/
Ddtls-client.c335 mbedtls_net_context server_fd; in main() local
403 mbedtls_net_init(&server_fd); in main()
443 if ((ret = mbedtls_net_connect(&server_fd, target, in main()
482 mbedtls_ssl_set_bio(&ssl, &server_fd, in main()
643 mbedtls_net_free(&server_fd); in main()
/net-tools-3.4.0/mbedtls-2.4.0/programs/x509/
Dcert_app.c149 mbedtls_net_context server_fd; in main() local
166 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()
475 mbedtls_net_free( &server_fd ); in main()