buffers_tls.h 549 B

12345678910111213141516171819
  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-2017, The Tor Project, Inc. */
  5. /* See LICENSE for licensing information */
  6. #ifndef TOR_BUFFERS_TLS_H
  7. #define TOR_BUFFERS_TLS_H
  8. struct buf_t;
  9. struct tor_tls_t;
  10. int read_to_buf_tls(struct tor_tls_t *tls, size_t at_most,
  11. struct buf_t *buf);
  12. int flush_buf_tls(struct tor_tls_t *tls, struct buf_t *buf, size_t sz,
  13. size_t *buf_flushlen);
  14. #endif