summaryrefslogtreecommitdiff
path: root/src/feature/relay/onion_queue.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-09-20 13:55:02 -0400
committerNick Mathewson <nickm@torproject.org>2018-09-21 09:14:05 -0400
commit98ef3e82e48c2d57c09d5f551b72e7d6bfe5347a (patch)
treeffbad59a83bab12d5c48dd21604ee31e7e634d81 /src/feature/relay/onion_queue.h
parent55122bfe0425c54aeb28d0daa266cc4601247994 (diff)
downloadtor-98ef3e82e48c2d57c09d5f551b72e7d6bfe5347a.tar.gz
tor-98ef3e82e48c2d57c09d5f551b72e7d6bfe5347a.zip
Move the non-crypto parts of onion.c out of src/core/crypto
The parts for handling cell formats should be in src/core/or. The parts for handling onionskin queues should be in src/core/or. Only the crypto wrapper belongs in src/core/crypto.
Diffstat (limited to 'src/feature/relay/onion_queue.h')
-rw-r--r--src/feature/relay/onion_queue.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/feature/relay/onion_queue.h b/src/feature/relay/onion_queue.h
new file mode 100644
index 0000000000..a71f497e34
--- /dev/null
+++ b/src/feature/relay/onion_queue.h
@@ -0,0 +1,23 @@
+/* Copyright (c) 2001 Matej Pfajfar.
+ * Copyright (c) 2001-2004, Roger Dingledine.
+ * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
+ * Copyright (c) 2007-2018, The Tor Project, Inc. */
+/* See LICENSE for licensing information */
+
+/**
+ * \file onion_queue.h
+ * \brief Header file for onion_queue.c.
+ **/
+
+#ifndef TOR_ONION_QUEUE_H
+#define TOR_ONION_QUEUE_H
+
+struct create_cell_t;
+
+int onion_pending_add(or_circuit_t *circ, struct create_cell_t *onionskin);
+or_circuit_t *onion_next_task(struct create_cell_t **onionskin_out);
+int onion_num_pending(uint16_t handshake_type);
+void onion_pending_remove(or_circuit_t *circ);
+void clear_pending_onions(void);
+
+#endif