Lines Matching refs:ssl

309     SSL *ssl;  in verify_retry_cb()  local
313 || (ssl = X509_STORE_CTX_get_ex_data(ctx, idx)) == NULL) in verify_retry_cb()
319 return SSL_set_retry_verify(ssl); in verify_retry_cb()
727 SSL *ssl; member
741 SSL *ssl = NULL; in create_peer() local
744 if (!TEST_ptr(ssl = SSL_new(ctx)) in create_peer()
749 peer->ssl = ssl; in create_peer()
755 SSL_free(ssl); in create_peer()
763 SSL_free(peer->ssl); in peer_free_data()
777 int ret = SSL_do_handshake(peer->ssl); in do_handshake_step()
784 int error = SSL_get_error(peer->ssl, ret); in do_handshake_step()
814 ret = SSL_read(peer->ssl, peer->read_buf, peer->read_buf_len); in do_app_data_step()
825 int error = SSL_get_error(peer->ssl, ret); in do_app_data_step()
837 ret = SSL_write(peer->ssl, peer->write_buf, write_bytes); in do_app_data_step()
902 && SSL_is_server(peer->ssl)) in do_reneg_setup_step()
904 && !SSL_is_server(peer->ssl))) { in do_reneg_setup_step()
909 if (!SSL_renegotiate_pending(peer->ssl)) { in do_reneg_setup_step()
915 if (SSL_is_server(peer->ssl)) { in do_reneg_setup_step()
916 ret = SSL_renegotiate(peer->ssl); in do_reneg_setup_step()
921 SSL_set_options(peer->ssl, SSL_OP_NO_EXTENDED_MASTER_SECRET); in do_reneg_setup_step()
925 if (!SSL_set_cipher_list(peer->ssl, in do_reneg_setup_step()
933 ret = SSL_renegotiate(peer->ssl); in do_reneg_setup_step()
935 ret = SSL_renegotiate_abbreviated(peer->ssl); in do_reneg_setup_step()
961 if (SSL_is_server(peer->ssl) in do_reneg_setup_step()
968 ret = SSL_key_update(peer->ssl, test_ctx->key_update_type); in do_reneg_setup_step()
982 if (SSL_is_server(peer->ssl)) { in do_reneg_setup_step()
985 peer->ssl->post_handshake_auth = SSL_PHA_EXT_RECEIVED; in do_reneg_setup_step()
986 ret = SSL_verify_client_post_handshake(peer->ssl); in do_reneg_setup_step()
1007 ret = SSL_read(peer->ssl, &buf, sizeof(buf)); in do_reneg_setup_step()
1016 int error = SSL_get_error(peer->ssl, ret); in do_reneg_setup_step()
1022 if (!SSL_in_init(peer->ssl)) in do_reneg_setup_step()
1053 ret = SSL_shutdown(peer->ssl); in do_shutdown_step()
1058 int error = SSL_get_error(peer->ssl, ret); in do_shutdown_step()
1465 configure_handshake_ssl(server.ssl, client.ssl, extra); in do_handshake_internal()
1472 || !TEST_true(SSL_set_session(client.ssl, session_in))) in do_handshake_internal()
1501 SSL_set_connect_state(client.ssl); in do_handshake_internal()
1502 SSL_set_accept_state(server.ssl); in do_handshake_internal()
1506 SSL_set_bio(client.ssl, client_to_server, client_to_server); in do_handshake_internal()
1507 SSL_set_bio(server.ssl, server_to_client, server_to_client); in do_handshake_internal()
1509 SSL_set_bio(client.ssl, server_to_client, client_to_server); in do_handshake_internal()
1513 SSL_set_bio(server.ssl, client_to_server, server_to_client); in do_handshake_internal()
1518 || !TEST_int_eq(SSL_set_ex_data(server.ssl, ex_data_idx, &server_ex_data), 1) in do_handshake_internal()
1519 || !TEST_int_eq(SSL_set_ex_data(client.ssl, ex_data_idx, &client_ex_data), 1)) in do_handshake_internal()
1522 SSL_set_info_callback(server.ssl, &info_cb); in do_handshake_internal()
1523 SSL_set_info_callback(client.ssl, &info_cb); in do_handshake_internal()
1629 ret->server_protocol = SSL_version(server.ssl); in do_handshake_internal()
1630 ret->client_protocol = SSL_version(client.ssl); in do_handshake_internal()
1632 if ((sess = SSL_get0_session(client.ssl)) != NULL) { in do_handshake_internal()
1640 ret->compression = (SSL_get_current_compression(client.ssl) == NULL) in do_handshake_internal()
1654 SSL_get0_next_proto_negotiated(client.ssl, &proto, &proto_len); in do_handshake_internal()
1657 SSL_get0_next_proto_negotiated(server.ssl, &proto, &proto_len); in do_handshake_internal()
1661 SSL_get0_alpn_selected(client.ssl, &proto, &proto_len); in do_handshake_internal()
1664 SSL_get0_alpn_selected(server.ssl, &proto, &proto_len); in do_handshake_internal()
1667 if ((sess = SSL_get0_session(server.ssl)) != NULL) { in do_handshake_internal()
1672 ret->client_resumed = SSL_session_reused(client.ssl); in do_handshake_internal()
1673 ret->server_resumed = SSL_session_reused(server.ssl); in do_handshake_internal()
1675 cipher = SSL_CIPHER_get_name(SSL_get_current_cipher(client.ssl)); in do_handshake_internal()
1679 *session_out = SSL_get1_session(client.ssl); in do_handshake_internal()
1681 SSL_SESSION *tmp = SSL_get_session(server.ssl); in do_handshake_internal()
1691 if (SSL_get_peer_tmp_key(client.ssl, &tmp_key)) { in do_handshake_internal()
1696 SSL_get_peer_signature_nid(client.ssl, &ret->server_sign_hash); in do_handshake_internal()
1697 SSL_get_peer_signature_nid(server.ssl, &ret->client_sign_hash); in do_handshake_internal()
1699 SSL_get_peer_signature_type_nid(client.ssl, &ret->server_sign_type); in do_handshake_internal()
1700 SSL_get_peer_signature_type_nid(server.ssl, &ret->client_sign_type); in do_handshake_internal()
1702 names = SSL_get0_peer_CA_list(client.ssl); in do_handshake_internal()
1708 names = SSL_get0_peer_CA_list(server.ssl); in do_handshake_internal()
1714 ret->server_cert_type = peer_pkey_type(client.ssl); in do_handshake_internal()
1715 ret->client_cert_type = peer_pkey_type(server.ssl); in do_handshake_internal()