summaryrefslogtreecommitdiff
path: root/src/common/tortls.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2007-11-07 16:37:08 +0000
committerNick Mathewson <nickm@torproject.org>2007-11-07 16:37:08 +0000
commit0e993e6008aa0c0c5fc932bc0b84a46a9c681315 (patch)
tree735bbed65c5b59e3c40939e8c821be8925ca8192 /src/common/tortls.h
parent7b826f8fe47f20d784f42bb3f04c4597635c801f (diff)
downloadtor-0e993e6008aa0c0c5fc932bc0b84a46a9c681315.tar.gz
tor-0e993e6008aa0c0c5fc932bc0b84a46a9c681315.zip
r16523@catbus: nickm | 2007-11-07 11:35:49 -0500
Improve "tls error. breaking" message a little. svn:r12411
Diffstat (limited to 'src/common/tortls.h')
-rw-r--r--src/common/tortls.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common/tortls.h b/src/common/tortls.h
index 3a58cc2795..d30a154fa2 100644
--- a/src/common/tortls.h
+++ b/src/common/tortls.h
@@ -21,6 +21,7 @@ typedef struct tor_tls_t tor_tls_t;
/* Possible return values for most tor_tls_* functions. */
#define _MIN_TOR_TLS_ERROR_VAL -9
#define TOR_TLS_ERROR_MISC -9
+/* Rename to unexpected close or something. XXX020 */
#define TOR_TLS_ERROR_IO -8
#define TOR_TLS_ERROR_CONNREFUSED -7
#define TOR_TLS_ERROR_CONNRESET -6
@@ -45,6 +46,7 @@ typedef struct tor_tls_t tor_tls_t;
#define TOR_TLS_RANDOM_LEN 32
#define TOR_TLS_IS_ERROR(rv) ((rv) < TOR_TLS_CLOSE)
+const char *tor_tls_err_to_string(int err);
void tor_tls_free_all(void);
int tor_tls_context_new(crypto_pk_env_t *rsa,