Lines Matching defs:client

142 static int verify_npn(SSL *client, SSL *server)
149 SSL_get0_next_proto_negotiated(client, &client_s, &client_len);
226 static int verify_servername(SSL *client, SSL *server)
325 static int verify_alpn(SSL *client, SSL *server)
329 SSL_get0_alpn_selected(client, &client_proto, &client_proto_len);
363 BIO_printf(bio_stdout, "ALPN results: client: '");
368 BIO_printf(bio_stdout, "ALPN configured: client: '%s', server: '",
627 fprintf(stderr, " -client_auth - do client authentication\n");
633 " -bytes <val> - number of bytes to swap between client/server\n");
687 " -time - measure processor time used by client and server\n");
690 fprintf(stderr, " -npn_client - have client side offer NPN\n");
695 fprintf(stderr, " -serverinfo_sct - have client offer and expect SCT\n");
697 " -serverinfo_tack - have client offer and expect TACK\n");
700 fprintf(stderr, " -alpn_client <string> - have client side offer ALPN\n");
708 fprintf(stderr, " -client_min_proto <string> - Minimum version the client should support\n");
709 fprintf(stderr, " -client_max_proto <string> - Maximum version the client should support\n");
710 fprintf(stderr, " -should_negotiate <string> - The version that should be negotiated, fail-client or fail-server\n");
716 fprintf(stderr, " -sn_client <string> - have client request this servername\n");
723 fprintf(stderr, " -client_sess_out <file> - Save the client session to a file\n");
724 fprintf(stderr, " -client_sess_in <file> - Read the client session from a file\n");
727 fprintf(stderr, " -client_ktls - try to enable client KTLS\n");
1554 printf("client authentication\n");
1795 BIO_printf(bio_err, "Can't set client session\n");
1828 strcmp(should_negotiate, "fail-client") != 0) {
1847 "Expected: %d, server: %d, client: %d\n", should_reuse,
1878 "Approximate total client time: %6.2f s\n",
1884 "Approximate total client time: %6.2f units\n",
1921 BIO *acpt = NULL, *server = NULL, *client = NULL;
1938 client = BIO_new_connect(addr_str);
1939 if (!client)
1941 BIO_set_conn_ip_family(client, family);
1943 if (BIO_set_nbio(client, 1) <= 0)
1953 if (BIO_do_connect(client) <= 0) {
1954 if (!BIO_should_retry(client))
1984 SSL_set_bio(c_ssl, client, client);
1995 * client: I/O for SSL library
2021 printf("client waiting in SSL_connect - %s\n",
2049 printf("client wrote %d\n", r);
2072 printf("client read %d\n", r);
2083 * will be counted only for the client or only for the server or
2104 /* Write to client. */
2129 /* Read from client. */
2200 BIO_free(client);
2204 if (should_negotiate != NULL && strcmp(should_negotiate, "fail-client") == 0)
2218 BIO *server = NULL, *server_io = NULL, *client = NULL, *client_io = NULL;
2227 if (!BIO_new_bio_pair(&client, bufsiz, &client_io, bufsiz))
2239 SSL_set_bio(c_ssl, client, client);
2250 * client: pseudo-I/O for SSL library
2252 * client_io: client's SSL communication; usually to be
2262 * The client and the server each employ a "BIO pair":
2263 * client + client_io, server + server_io.
2267 * [Here we could connect client and server to the ends
2300 printf("client waiting in SSL_connect - %s\n",
2328 printf("client wrote %d\n", r);
2351 printf("client read %d\n", r);
2362 * will be counted only for the client or only for the server or
2383 /* Write to client. */
2408 /* Read from client. */
2574 BIO_free(client);
2579 if (should_negotiate != NULL && strcmp(should_negotiate, "fail-client") == 0)
2691 printf("client waiting in SSL_connect - %s\n",
2723 printf("client wrote %d\n", i);
2752 printf("client read %d\n", i);
2866 if (should_negotiate != NULL && strcmp(should_negotiate, "fail-client") == 0)
2976 fprintf(stderr, "client: created identity '%s' len=%d\n", identity,
2993 BIO_printf(bio_err, "server: PSK error: client identity not found\n");