mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-11 13:43:47 +01:00
98ef3e82e4
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.
24 lines
674 B
C
24 lines
674 B
C
/* 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
|