tor/src/lib/tls/nss_countbytes.h

26 lines
713 B
C
Raw Normal View History

2019-01-16 12:33:22 -05:00
/* Copyright 2018-2019, The Tor Project, Inc. */
/* See LICENSE for licensing information */
/**
* \file nss_countbytes.h
* \brief Header for nss_countbytes.c, which lets us count the number of
* bytes actually written on a PRFileDesc.
**/
#ifndef TOR_NSS_COUNTBYTES_H
#define TOR_NSS_COUNTBYTES_H
#include "lib/cc/torint.h"
void tor_nss_countbytes_init(void);
struct PRFileDesc;
struct PRFileDesc *tor_wrap_prfiledesc_with_byte_counter(
struct PRFileDesc *stack);
int tor_get_prfiledesc_byte_counts(struct PRFileDesc *fd,
uint64_t *n_read_out,
uint64_t *n_written_out);
#endif