buffers_tls.h 660 B

1234567891011121314151617181920212223
  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-2019, The Tor Project, Inc. */
  5. /* See LICENSE for licensing information */
  6. /**
  7. * \file buffers_tls.h
  8. * \brief Header for buffers_tls.c
  9. **/
  10. #ifndef TOR_BUFFERS_TLS_H
  11. #define TOR_BUFFERS_TLS_H
  12. struct buf_t;
  13. struct tor_tls_t;
  14. int buf_read_from_tls(struct buf_t *buf,
  15. struct tor_tls_t *tls, size_t at_most);
  16. int buf_flush_to_tls(struct buf_t *buf, struct tor_tls_t *tls,
  17. size_t sz, size_t *buf_flushlen);
  18. #endif /* !defined(TOR_BUFFERS_TLS_H) */