2010-07-22 00:30:17 +02:00
|
|
|
/* Copyright (c) 2001 Matej Pfajfar.
|
|
|
|
* Copyright (c) 2001-2004, Roger Dingledine.
|
|
|
|
* Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
|
2011-01-03 17:52:09 +01:00
|
|
|
* Copyright (c) 2007-2011, The Tor Project, Inc. */
|
2010-07-22 00:30:17 +02:00
|
|
|
/* See LICENSE for licensing information */
|
|
|
|
|
|
|
|
/**
|
|
|
|
* \file rendservice.h
|
2010-07-28 17:42:33 +02:00
|
|
|
* \brief Header file for rendservice.c.
|
2010-07-22 00:30:17 +02:00
|
|
|
**/
|
|
|
|
|
|
|
|
#ifndef _TOR_RENDSERVICE_H
|
|
|
|
#define _TOR_RENDSERVICE_H
|
|
|
|
|
|
|
|
int num_rend_services(void);
|
2011-06-14 19:01:38 +02:00
|
|
|
int rend_config_services(const or_options_t *options, int validate_only);
|
2010-07-22 00:30:17 +02:00
|
|
|
int rend_service_load_keys(void);
|
|
|
|
void rend_services_introduce(void);
|
|
|
|
void rend_consider_services_upload(time_t now);
|
|
|
|
void rend_hsdir_routers_changed(void);
|
|
|
|
void rend_consider_descriptor_republication(void);
|
|
|
|
|
|
|
|
void rend_service_intro_has_opened(origin_circuit_t *circuit);
|
|
|
|
int rend_service_intro_established(origin_circuit_t *circuit,
|
2010-12-16 04:47:28 +01:00
|
|
|
const uint8_t *request,
|
2010-07-22 00:30:17 +02:00
|
|
|
size_t request_len);
|
|
|
|
void rend_service_rendezvous_has_opened(origin_circuit_t *circuit);
|
2010-12-16 04:47:28 +01:00
|
|
|
int rend_service_introduce(origin_circuit_t *circuit, const uint8_t *request,
|
2010-07-22 00:30:17 +02:00
|
|
|
size_t request_len);
|
|
|
|
void rend_service_relaunch_rendezvous(origin_circuit_t *oldcirc);
|
|
|
|
int rend_service_set_connection_addr_port(edge_connection_t *conn,
|
|
|
|
origin_circuit_t *circ);
|
|
|
|
void rend_service_dump_stats(int severity);
|
|
|
|
void rend_service_free_all(void);
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|