Add support for lower-level byte counting with NSS
commit126819c94702df2b0eb8cbfaaf4ad81873b94019
authorNick Mathewson <nickm@torproject.org>
Thu, 13 Sep 2018 14:18:34 +0000 (13 10:18 -0400)
committerNick Mathewson <nickm@torproject.org>
Fri, 14 Sep 2018 16:44:56 +0000 (14 12:44 -0400)
tree1e80f3086613e209b15a5057e52748d3180f5143
parent4b646e30d8364e56fb6ae4ce5850f01e714eabcb
Add support for lower-level byte counting with NSS

This is harder than with OpenSSL, since OpenSSL counts the bytes on
its own and NSS doesn't.  To fix this, we need to define a new
PRFileDesc layer that has its own byte-counting support.

Closes ticket 27289.
src/lib/tls/include.am
src/lib/tls/nss_countbytes.c [new file with mode: 0644]
src/lib/tls/nss_countbytes.h [new file with mode: 0644]
src/lib/tls/tortls_nss.c
src/lib/tls/tortls_st.h