diff options
author | Sebastian Hahn <sebastian@torproject.org> | 2010-07-23 21:08:30 +0200 |
---|---|---|
committer | Sebastian Hahn <sebastian@torproject.org> | 2010-07-27 10:00:45 +0200 |
commit | cc060ea220128e55bbef3990239d20a6bb604d44 (patch) | |
tree | 07fada168a9b1a699f4519ab89cacd9d18046388 /src/or/reasons.h | |
parent | 7bd8dee46371063cd1e62661cd65ce9a35e776e5 (diff) | |
download | tor-cc060ea220128e55bbef3990239d20a6bb604d44.tar.gz tor-cc060ea220128e55bbef3990239d20a6bb604d44.zip |
Create reasons.h
Diffstat (limited to 'src/or/reasons.h')
-rw-r--r-- | src/or/reasons.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/or/reasons.h b/src/or/reasons.h new file mode 100644 index 0000000000..08e9c0057d --- /dev/null +++ b/src/or/reasons.h @@ -0,0 +1,29 @@ +/* Copyright (c) 2001 Matej Pfajfar. + * Copyright (c) 2001-2004, Roger Dingledine. + * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson. + * Copyright (c) 2007-2010, The Tor Project, Inc. */ +/* See LICENSE for licensing information */ + +/** + * \file reasons.h + * \brief Header file for reasons.c + **/ + +#ifndef _TOR_REASONS_H +#define _TOR_REASONS_H + +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); + +#endif + |