#define RENDCOMMON_PRIVATE
#define GEOIP_PRIVATE
+#define CONNECTION_PRIVATE
#include "or.h"
#include "config.h"
+#include "connection.h"
#include "directory.h"
#include "test.h"
#include "connection.h"
done:
UNMOCK(connection_write_to_buf_impl_);
- tor_free(conn);
+ connection_free_(TO_CONN(conn));
tor_free(header);
}
done:
UNMOCK(connection_write_to_buf_impl_);
- tor_free(conn);
+ connection_free_(TO_CONN(conn));
tor_free(header);
}
done:
UNMOCK(connection_write_to_buf_impl_);
UNMOCK(get_dirportfrontpage);
- tor_free(conn);
+ connection_free_(TO_CONN(conn));
tor_free(header);
tor_free(body);
}
done:
UNMOCK(connection_write_to_buf_impl_);
- tor_free(conn);
+ connection_free_(TO_CONN(conn));
tor_free(header);
}
done:
UNMOCK(connection_write_to_buf_impl_);
- tor_free(conn);
+ connection_free_(TO_CONN(conn));
tor_free(header);
tor_free(body);
}
done:
UNMOCK(connection_write_to_buf_impl_);
- tor_free(conn);
+ connection_free_(TO_CONN(conn));
tor_free(header);
tor_free(body);
}
done:
UNMOCK(connection_write_to_buf_impl_);
- tor_free(conn);
+ connection_free_(TO_CONN(conn));
tor_free(header);
}
done:
UNMOCK(connection_write_to_buf_impl_);
- tor_free(conn);
+ connection_free_(TO_CONN(conn));
tor_free(header);
}
done:
UNMOCK(connection_write_to_buf_impl_);
- tor_free(conn);
+ connection_free_(TO_CONN(conn));
tor_free(header);
}
done:
UNMOCK(connection_write_to_buf_impl_);
- tor_free(conn);
+ connection_free_(TO_CONN(conn));
tor_free(header);
rend_cache_free_all();
}
NS_UNMOCK(router_get_my_routerinfo);
NS_UNMOCK(hid_serv_responsible_for_desc_id);
- tor_free(conn);
+ connection_free_(TO_CONN(conn));
tor_free(header);
tor_free(body);
rend_cache_free_all();
done:
UNMOCK(connection_write_to_buf_impl_);
- tor_free(conn);
+ connection_free_(TO_CONN(conn));
tor_free(header);
}
if (mock_options)
tor_free(mock_options->DataDirectory);
- tor_free(conn);
+ connection_free_(TO_CONN(conn));
tor_free(header);
tor_free(body);
smartlist_free(list);
if (mock_options)
tor_free(mock_options->DataDirectory);
- tor_free(conn);
+ connection_free_(TO_CONN(conn));
tor_free(header);
smartlist_free(list);
microdesc_free_all();
UNMOCK(get_options);
UNMOCK(connection_write_to_buf_impl_);
tor_free(mock_options);
- tor_free(conn);
+ connection_free_(TO_CONN(conn));
tor_free(header);
}
UNMOCK(get_options);
UNMOCK(connection_write_to_buf_impl_);
tor_free(mock_options);
- tor_free(conn);
+ connection_free_(TO_CONN(conn));
tor_free(header);
}
UNMOCK(get_options);
UNMOCK(connection_write_to_buf_impl_);
tor_free(mock_options);
- tor_free(conn);
+ connection_free_(TO_CONN(conn));
tor_free(header);
}
done:
UNMOCK(connection_write_to_buf_impl_);
tor_free(mock_options);
- tor_free(conn);
+ connection_free_(TO_CONN(conn));
tor_free(header);
}
done:
NS_UNMOCK(router_get_my_routerinfo);
UNMOCK(connection_write_to_buf_impl_);
- tor_free(conn);
+ connection_free_(TO_CONN(conn));
tor_free(header);
tor_free(body);
NS_UNMOCK(router_get_my_routerinfo);
UNMOCK(connection_write_to_buf_impl_);
tor_free(mock_routerinfo);
- tor_free(conn);
+ connection_free_(TO_CONN(conn));
tor_free(header);
tor_free(body);
crypto_pk_free(identity_pkey);
NS_UNMOCK(router_get_my_routerinfo);
UNMOCK(connection_write_to_buf_impl_);
tor_free(mock_routerinfo);
- tor_free(conn);
+ connection_free_(TO_CONN(conn));
tor_free(header);
tor_free(body);
crypto_pk_free(identity_pkey);
done:
UNMOCK(connection_write_to_buf_impl_);
tor_free(mock_routerinfo);
- tor_free(conn);
+ connection_free_(TO_CONN(conn));
tor_free(header);
tor_free(body);
crypto_pk_free(identity_pkey);
UNMOCK(get_options);
UNMOCK(connection_write_to_buf_impl_);
tor_free(mock_routerinfo);
- tor_free(conn);
+ connection_free_(TO_CONN(conn));
tor_free(header);
crypto_pk_free(identity_pkey);
done:
UNMOCK(connection_write_to_buf_impl_);
- tor_free(conn);
+ connection_free_(TO_CONN(conn));
tor_free(header);
}
done:
UNMOCK(connection_write_to_buf_impl_);
- tor_free(conn);
+ connection_free_(TO_CONN(conn));
tor_free(header);
}
done:
UNMOCK(connection_write_to_buf_impl_);
- tor_free(conn);
+ connection_free_(TO_CONN(conn));
tor_free(header);
tor_free(body);
done:
UNMOCK(connection_write_to_buf_impl_);
- tor_free(conn);
+ connection_free_(TO_CONN(conn));
tor_free(header);
}
done:
UNMOCK(get_my_v3_authority_cert);
UNMOCK(connection_write_to_buf_impl_);
- tor_free(conn);
+ connection_free_(TO_CONN(conn));
tor_free(header);
tor_free(body);
tor_free(mock_cert);
done:
UNMOCK(connection_write_to_buf_impl_);
- tor_free(conn);
+ connection_free_(TO_CONN(conn));
tor_free(header);
}
done:
UNMOCK(connection_write_to_buf_impl_);
- tor_free(conn);
+ connection_free_(TO_CONN(conn));
tor_free(header);
tor_free(body);
clear_dir_servers();
done:
UNMOCK(connection_write_to_buf_impl_);
- tor_free(conn);
+ connection_free_(TO_CONN(conn));
tor_free(header);
}
done:
UNMOCK(get_my_v3_authority_cert);
UNMOCK(connection_write_to_buf_impl_);
- tor_free(conn);
+ connection_free_(TO_CONN(conn));
tor_free(header);
tor_free(body);
}
done:
UNMOCK(connection_write_to_buf_impl_);
- tor_free(conn);
+ connection_free_(TO_CONN(conn));
tor_free(header);
}
done:
UNMOCK(connection_write_to_buf_impl_);
- tor_free(conn);
+ connection_free_(TO_CONN(conn));
tor_free(header);
tor_free(body);
done:
UNMOCK(get_options);
UNMOCK(connection_write_to_buf_impl_);
- tor_free(conn);
+ connection_free_(TO_CONN(conn));
tor_free(header);
tor_free(mock_options);
UNMOCK(connection_write_to_buf_impl_);
UNMOCK(get_options);
- tor_free(conn);
+ connection_free_(TO_CONN(conn));
tor_free(header);
smartlist_free(mock_ns_val->voters);
tor_free(mock_ns_val);
done:
UNMOCK(connection_write_to_buf_impl_);
UNMOCK(get_options);
- tor_free(conn);
+ connection_free_(TO_CONN(conn));
tor_free(header);
tor_free(mock_options);
}
done:
UNMOCK(connection_write_to_buf_impl_);
- tor_free(conn);
+ connection_free_(TO_CONN(conn));
}
static void
done:
UNMOCK(connection_write_to_buf_impl_);
- tor_free(conn);
+ connection_free_(TO_CONN(conn));
tor_free(header);
}
done:
UNMOCK(connection_write_to_buf_impl_);
- tor_free(conn);
+ connection_free_(TO_CONN(conn));
}
static void
done:
UNMOCK(connection_write_to_buf_impl_);
- tor_free(conn);
+ connection_free_(TO_CONN(conn));
}
static void
done:
UNMOCK(connection_write_to_buf_impl_);
- tor_free(conn);
+ connection_free_(TO_CONN(conn));
tor_free(header);
}
body, body_used, 18, 0);
done:
UNMOCK(connection_write_to_buf_impl_);
- tor_free(conn);
+ connection_free_(TO_CONN(conn));
}
static void
done:
UNMOCK(connection_write_to_buf_impl_);
- tor_free(conn);
+ connection_free_(TO_CONN(conn));
tor_free(header);
}
done:
UNMOCK(connection_write_to_buf_impl_);
- tor_free(conn);
+ connection_free_(TO_CONN(conn));
tor_free(header);
}
tt_str_op(NOT_FOUND, OP_EQ, header);
done:
- tor_free(conn);
+ connection_free_(TO_CONN(conn));
tor_free(header);
tor_free(body);
}
done:
UNMOCK(get_options);
NS_UNMOCK(dirvote_get_pending_detached_signatures);
- tor_free(conn);
+ connection_free_(TO_CONN(conn));
tor_free(header);
tor_free(body);
tor_free(mock_options);
done:
UNMOCK(connection_write_to_buf_impl_);
UNMOCK(get_my_v3_authority_cert);
- tor_free(conn);
+ connection_free_(TO_CONN(conn));
tor_free(header);
tor_free(mock_cert);
done:
UNMOCK(connection_write_to_buf_impl_);
UNMOCK(get_my_v3_authority_cert);
- tor_free(conn);
+ connection_free_(TO_CONN(conn));
tor_free(header);
tor_free(mock_cert);
tt_str_op(entry->desc, OP_EQ, desc_holder->desc_str);
done:
- tor_free(desc_holder);
+ rend_encoded_v2_service_descriptor_free(desc_holder);
tor_free(entry);
tor_free(service_id);
}
// Test too old descriptor
rend_cache_init();
- tor_free(desc_holder);
+ rend_encoded_v2_service_descriptor_free(desc_holder);
tor_free(service_id);
generate_desc(TIME_IN_THE_PAST, &desc_holder, &service_id, 3);
// Test too new descriptor (in the future)
rend_cache_init();
- tor_free(desc_holder);
+ rend_encoded_v2_service_descriptor_free(desc_holder);
tor_free(service_id);
generate_desc(TIME_IN_THE_FUTURE, &desc_holder, &service_id, 3);
// Test when a descriptor is already in the cache
rend_cache_init();
- tor_free(desc_holder);
+ rend_encoded_v2_service_descriptor_free(desc_holder);
tor_free(service_id);
tor_free(entry);
// Test unsuccessful decrypting of introduction points
rend_cache_init();
- tor_free(desc_holder);
+ rend_encoded_v2_service_descriptor_free(desc_holder);
tor_free(service_id);
generate_desc(RECENT_TIME, &desc_holder, &service_id, 3);
// Test successful run when we have REND_BASIC_AUTH but not cookie
rend_cache_init();
- tor_free(desc_holder);
+ rend_encoded_v2_service_descriptor_free(desc_holder);
tor_free(service_id);
generate_desc(RECENT_TIME, &desc_holder, &service_id, 3);
// Test when we have no introduction points
rend_cache_init();
- tor_free(desc_holder);
+ rend_encoded_v2_service_descriptor_free(desc_holder);
tor_free(service_id);
generate_desc(RECENT_TIME, &desc_holder, &service_id, 0);
// Test when we have too many intro points
rend_cache_init();
- tor_free(desc_holder);
+ rend_encoded_v2_service_descriptor_free(desc_holder);
tor_free(service_id);
generate_desc(RECENT_TIME, &desc_holder, &service_id, MAX_INTRO_POINTS+1);
done:
NS_UNMOCK(router_get_my_routerinfo);
NS_UNMOCK(hid_serv_responsible_for_desc_id);
- tor_free(desc_holder);
+ rend_encoded_v2_service_descriptor_free(desc_holder);
tor_free(service_id);
}