blob: 47aab05d31fc1ba6d44c534134e790ece774797e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
/* Copyright 2018-2021, 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 /* !defined(TOR_NSS_COUNTBYTES_H) */
|