mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-09-23 14:34:58 +02:00
58 lines
1.8 KiB
C
58 lines
1.8 KiB
C
|
/* Copyright (c) 2001 Matej Pfajfar.
|
||
|
* Copyright (c) 2001-2004, Roger Dingledine.
|
||
|
* Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
|
||
|
* Copyright (c) 2007-2019, The Tor Project, Inc. */
|
||
|
/* See LICENSE for licensing information */
|
||
|
|
||
|
/**
|
||
|
* \file control.h
|
||
|
* \brief Header file for control.c.
|
||
|
**/
|
||
|
|
||
|
#ifndef TOR_CONTROL_GETINFO_H
|
||
|
#define TOR_CONTROL_GETINFO_H
|
||
|
|
||
|
int handle_control_getinfo(control_connection_t *conn, uint32_t len,
|
||
|
const char *body);
|
||
|
|
||
|
#ifdef CONTROL_GETINFO_PRIVATE
|
||
|
STATIC int getinfo_helper_onions(
|
||
|
control_connection_t *control_conn,
|
||
|
const char *question,
|
||
|
char **answer,
|
||
|
const char **errmsg);
|
||
|
STATIC void getinfo_helper_downloads_networkstatus(
|
||
|
const char *flavor,
|
||
|
download_status_t **dl_to_emit,
|
||
|
const char **errmsg);
|
||
|
STATIC void getinfo_helper_downloads_cert(
|
||
|
const char *fp_sk_req,
|
||
|
download_status_t **dl_to_emit,
|
||
|
smartlist_t **digest_list,
|
||
|
const char **errmsg);
|
||
|
STATIC void getinfo_helper_downloads_desc(
|
||
|
const char *desc_req,
|
||
|
download_status_t **dl_to_emit,
|
||
|
smartlist_t **digest_list,
|
||
|
const char **errmsg);
|
||
|
STATIC void getinfo_helper_downloads_bridge(
|
||
|
const char *bridge_req,
|
||
|
download_status_t **dl_to_emit,
|
||
|
smartlist_t **digest_list,
|
||
|
const char **errmsg);
|
||
|
STATIC int getinfo_helper_downloads(
|
||
|
control_connection_t *control_conn,
|
||
|
const char *question, char **answer,
|
||
|
const char **errmsg);
|
||
|
STATIC int getinfo_helper_dir(
|
||
|
control_connection_t *control_conn,
|
||
|
const char *question, char **answer,
|
||
|
const char **errmsg);
|
||
|
STATIC int getinfo_helper_current_time(
|
||
|
control_connection_t *control_conn,
|
||
|
const char *question, char **answer,
|
||
|
const char **errmsg);
|
||
|
#endif /* defined(CONTROL_GETINFO_PRIVATE) */
|
||
|
|
||
|
#endif /* !defined(TOR_CONTROL_GETINFO) */
|