/* tlsv1_client_deinit - Deinitialize TLSv1 client connection @conn: TLSv1 client connection data from tlsv1_client_init()  */
void tlsv1_client_deinit(struct tlsv1_client *conn)
/* tlsv1_client_deinit - Deinitialize TLSv1 client connection @conn: TLSv1 client connection data from tlsv1_client_init()  */
void tlsv1_client_deinit(struct tlsv1_client *conn)
{
	crypto_public_key_free(conn->server_rsa_key);
	tlsv1_record_set_cipher_suite(&conn->rl, TLS_NULL_WITH_NULL_NULL);
	tlsv1_record_change_write_cipher(&conn->rl);
	tlsv1_record_change_read_cipher(&conn->rl);
	tls_verify_hash_free(&conn->verify);
	os_free(conn->client_hello_ext);
	tlsv1_client_free_dh(conn);
	tlsv1_cred_free(conn->cred);
	wpabuf_free(conn->partial_input);
	os_free(conn);
}