aboutsummaryrefslogtreecommitdiff
path: root/src/or/or.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2002-10-02 20:39:51 +0000
committerNick Mathewson <nickm@torproject.org>2002-10-02 20:39:51 +0000
commitbef3424bec7ddc67f9d561b1e7f5aa652fb4893f (patch)
treec16defaeeb93b2daf54bb45e80e5535aa1d85f8b /src/or/or.h
parent7032d16e78fab3b651ea538920c528e403267000 (diff)
downloadtor-bef3424bec7ddc67f9d561b1e7f5aa652fb4893f.tar
tor-bef3424bec7ddc67f9d561b1e7f5aa652fb4893f.tar.gz
Add convenience functions to wrap create and init for symmetric ciphers; clean up error handling in onion.c
svn:r131
Diffstat (limited to 'src/or/or.h')
-rw-r--r--src/or/or.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/or/or.h b/src/or/or.h
index 4afd38d7e..b16b00dd9 100644
--- a/src/or/or.h
+++ b/src/or/or.h
@@ -660,6 +660,9 @@ void remove_tracked_onion(tracked_onion_t *to, tracked_onion_t **tracked_onions,
/* find a tracked onion in the linked list of tracked onions */
tracked_onion_t *id_tracked_onion(unsigned char *onion, uint32_t onionlen, tracked_onion_t *tracked_onions);
+/* create a cipher by onion cipher type. */
+crypto_cipher_env_t *create_onion_cipher(int cipher_type, char *key, char *iv, int encrypt_mode);
+
/********************************* routers.c ***************************/
void router_retry_connections(struct sockaddr_in *local);