2017-08-08 15:06:40 -04:00
|
|
|
/* Copyright (c) 2001 Matej Pfajfar.
|
|
|
|
* Copyright (c) 2001-2004, Roger Dingledine.
|
|
|
|
* Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
|
|
|
|
* Copyright (c) 2007-2017, The Tor Project, Inc. */
|
|
|
|
/* See LICENSE for licensing information */
|
|
|
|
|
|
|
|
#ifndef TOR_BUFFERS_TLS_H
|
|
|
|
#define TOR_BUFFERS_TLS_H
|
|
|
|
|
|
|
|
struct buf_t;
|
|
|
|
struct tor_tls_t;
|
|
|
|
|
2017-08-08 15:16:39 -04:00
|
|
|
int buf_read_from_tls(struct tor_tls_t *tls, size_t at_most,
|
2017-08-08 15:06:40 -04:00
|
|
|
struct buf_t *buf);
|
2017-08-08 15:16:39 -04:00
|
|
|
int buf_flush_to_tls(struct tor_tls_t *tls, struct buf_t *buf, size_t sz,
|
2017-08-08 15:06:40 -04:00
|
|
|
size_t *buf_flushlen);
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|