2010-07-23 21:08:30 +02:00
|
|
|
/* Copyright (c) 2001 Matej Pfajfar.
|
|
|
|
* Copyright (c) 2001-2004, Roger Dingledine.
|
|
|
|
* Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
|
2013-01-16 07:54:56 +01:00
|
|
|
* Copyright (c) 2007-2013, The Tor Project, Inc. */
|
2010-07-23 21:08:30 +02:00
|
|
|
/* See LICENSE for licensing information */
|
|
|
|
|
|
|
|
/**
|
|
|
|
* \file reasons.h
|
2010-07-28 17:42:33 +02:00
|
|
|
* \brief Header file for reasons.c.
|
2010-07-23 21:08:30 +02:00
|
|
|
**/
|
|
|
|
|
2012-10-12 18:13:10 +02:00
|
|
|
#ifndef TOR_REASONS_H
|
|
|
|
#define TOR_REASONS_H
|
2010-07-23 21:08:30 +02:00
|
|
|
|
|
|
|
const char *stream_end_reason_to_control_string(int reason);
|
|
|
|
const char *stream_end_reason_to_string(int reason);
|
|
|
|
socks5_reply_status_t stream_end_reason_to_socks5_response(int reason);
|
|
|
|
uint8_t errno_to_stream_end_reason(int e);
|
|
|
|
|
|
|
|
const char *orconn_end_reason_to_control_string(int r);
|
|
|
|
int tls_error_to_orconn_end_reason(int e);
|
|
|
|
int errno_to_orconn_end_reason(int e);
|
|
|
|
|
|
|
|
const char *circuit_end_reason_to_control_string(int reason);
|
|
|
|
const char *socks4_response_code_to_string(uint8_t code);
|
|
|
|
const char *socks5_response_code_to_string(uint8_t code);
|
|
|
|
|
2010-07-26 11:37:13 +02:00
|
|
|
const char *bandwidth_weight_rule_to_string(enum bandwidth_weight_rule_t rule);
|
|
|
|
|
2010-07-23 21:08:30 +02:00
|
|
|
#endif
|
|
|
|
|