Lines Matching refs:c_ssl
629 int doit_localhost(SSL *s_ssl, SSL *c_ssl, int family,
631 int doit_biopair(SSL *s_ssl, SSL *c_ssl, long bytes, clock_t *s_time,
633 int doit(SSL *s_ssl, SSL *c_ssl, long bytes);
780 static void print_details(SSL *c_ssl, const char *prefix) in print_details() argument
787 ciph = SSL_get_current_cipher(c_ssl); in print_details()
790 SSL_get_version(c_ssl), in print_details()
792 cert = SSL_get0_peer_certificate(c_ssl); in print_details()
801 if (SSL_get_peer_tmp_key(c_ssl, &pkey)) { in print_details()
806 if (SSL_get_peer_signature_nid(c_ssl, &mdnid)) in print_details()
909 SSL *c_ssl = NULL; in main() local
1773 c_ssl = SSL_new(c_ctx); in main()
1775 if (c_ssl == NULL || s_ssl == NULL) in main()
1779 SSL_set_tlsext_host_name(c_ssl, sn_client); in main()
1781 SSL_set_options(c_ssl, SSL_OP_ENABLE_KTLS); in main()
1789 if (!set_protocol_version(client_min_proto, c_ssl, SSL_CTRL_SET_MIN_PROTO_VERSION)) in main()
1791 if (!set_protocol_version(client_max_proto, c_ssl, SSL_CTRL_SET_MAX_PROTO_VERSION)) in main()
1805 if (!SSL_set_session(c_ssl, NULL)) { in main()
1811 if (SSL_set_session(c_ssl, client_sess) == 0) { in main()
1819 ret = doit(s_ssl, c_ssl, bytes); in main()
1822 ret = doit_biopair(s_ssl, c_ssl, bytes, &s_time, &c_time); in main()
1826 ret = doit_localhost(s_ssl, c_ssl, BIO_FAMILY_IPV4, in main()
1830 ret = doit_localhost(s_ssl, c_ssl, BIO_FAMILY_IPV6, in main()
1853 if (SSL_version(c_ssl) != version) { in main()
1855 "Expected: %s, got %s\n", should_negotiate, SSL_get_version(c_ssl)); in main()
1863 SSL_session_reused(c_ssl) != should_reuse) { in main()
1866 SSL_session_reused(s_ssl), SSL_session_reused(c_ssl)); in main()
1879 if (write_session(client_sess_out, SSL_get_session(c_ssl)) == 0) { in main()
1886 print_details(c_ssl, ""); in main()
1909 SSL_free(c_ssl); in main()
1933 int doit_localhost(SSL *s_ssl, SSL *c_ssl, int family, long count, in doit_localhost() argument
2000 SSL_set_connect_state(c_ssl); in doit_localhost()
2001 SSL_set_bio(c_ssl, client, client); in doit_localhost()
2002 (void)BIO_set_ssl(c_ssl_bio, c_ssl, BIO_NOCLOSE); in doit_localhost()
2037 if (SSL_in_init(c_ssl)) in doit_localhost()
2039 SSL_state_string_long(c_ssl)); in doit_localhost()
2172 print_details(c_ssl, "DONE via TCP connect: "); in doit_localhost()
2182 if (BIO_get_ktls_send(SSL_get_wbio(c_ssl)) in doit_localhost()
2183 && BIO_get_ktls_recv(SSL_get_rbio(c_ssl))) in doit_localhost()
2185 else if (BIO_get_ktls_send(SSL_get_wbio(c_ssl))) in doit_localhost()
2187 else if (BIO_get_ktls_recv(SSL_get_rbio(c_ssl))) in doit_localhost()
2191 if (verify_npn(c_ssl, s_ssl) < 0) in doit_localhost()
2198 if (verify_alpn(c_ssl, s_ssl) < 0 in doit_localhost()
2199 || verify_servername(c_ssl, s_ssl) < 0) in doit_localhost()
2230 int doit_biopair(SSL *s_ssl, SSL *c_ssl, long count, in doit_biopair() argument
2255 SSL_set_connect_state(c_ssl); in doit_biopair()
2256 SSL_set_bio(c_ssl, client, client); in doit_biopair()
2257 (void)BIO_set_ssl(c_ssl_bio, c_ssl, BIO_NOCLOSE); in doit_biopair()
2316 if (SSL_in_init(c_ssl)) in doit_biopair()
2318 SSL_state_string_long(c_ssl)); in doit_biopair()
2563 print_details(c_ssl, "DONE via BIO pair: "); in doit_biopair()
2565 if (verify_npn(c_ssl, s_ssl) < 0) in doit_biopair()
2572 if (verify_alpn(c_ssl, s_ssl) < 0 in doit_biopair()
2573 || verify_servername(c_ssl, s_ssl) < 0) in doit_biopair()
2609 int doit(SSL *s_ssl, SSL *c_ssl, long count) in doit() argument
2650 SSL_set_connect_state(c_ssl); in doit()
2651 SSL_set_bio(c_ssl, s_to_c, c_to_s); in doit()
2652 SSL_set_max_send_fragment(c_ssl, max_frag); in doit()
2653 BIO_set_ssl(c_bio, c_ssl, BIO_NOCLOSE); in doit()
2707 if (SSL_in_init(c_ssl)) in doit()
2709 SSL_state_string_long(c_ssl)); in doit()
2746 SSL_set_max_send_fragment(c_ssl, max_frag -= 5); in doit()
2861 print_details(c_ssl, "DONE: "); in doit()
2863 if (verify_npn(c_ssl, s_ssl) < 0) in doit()