onion.h 548 B

123456789101112131415161718192021
  1. /* Copyright (c) 2001 Matej Pfajfar.
  2. * Copyright (c) 2001-2004, Roger Dingledine.
  3. * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
  4. * Copyright (c) 2007-2012, The Tor Project, Inc. */
  5. /* See LICENSE for licensing information */
  6. /**
  7. * \file onion.h
  8. * \brief Header file for onion.c.
  9. **/
  10. #ifndef TOR_ONION_H
  11. #define TOR_ONION_H
  12. int onion_pending_add(or_circuit_t *circ, char *onionskin);
  13. or_circuit_t *onion_next_task(char **onionskin_out);
  14. void onion_pending_remove(or_circuit_t *circ);
  15. void clear_pending_onions(void);
  16. #endif