mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
126819c947
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.
41 lines
1.0 KiB
Plaintext
41 lines
1.0 KiB
Plaintext
|
|
noinst_LIBRARIES += src/lib/libtor-tls.a
|
|
|
|
if UNITTESTS_ENABLED
|
|
noinst_LIBRARIES += src/lib/libtor-tls-testing.a
|
|
endif
|
|
|
|
src_lib_libtor_tls_a_SOURCES = \
|
|
src/lib/tls/buffers_tls.c \
|
|
src/lib/tls/tortls.c \
|
|
src/lib/tls/x509.c
|
|
|
|
if USE_NSS
|
|
src_lib_libtor_tls_a_SOURCES += \
|
|
src/lib/tls/nss_countbytes.c \
|
|
src/lib/tls/tortls_nss.c \
|
|
src/lib/tls/x509_nss.c
|
|
else
|
|
src_lib_libtor_tls_a_SOURCES += \
|
|
src/lib/tls/tortls_openssl.c \
|
|
src/lib/tls/x509_openssl.c
|
|
endif
|
|
|
|
src_lib_libtor_tls_a_CFLAGS = $(AM_CFLAGS) $(TOR_CFLAGS_CRYPTLIB)
|
|
|
|
src_lib_libtor_tls_testing_a_SOURCES = \
|
|
$(src_lib_libtor_tls_a_SOURCES)
|
|
src_lib_libtor_tls_testing_a_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_CPPFLAGS)
|
|
src_lib_libtor_tls_testing_a_CFLAGS = \
|
|
$(AM_CFLAGS) $(TOR_CFLAGS_CRYPTLIB) $(TEST_CFLAGS)
|
|
|
|
noinst_HEADERS += \
|
|
src/lib/tls/ciphers.inc \
|
|
src/lib/tls/buffers_tls.h \
|
|
src/lib/tls/nss_countbytes.h \
|
|
src/lib/tls/tortls.h \
|
|
src/lib/tls/tortls_internal.h \
|
|
src/lib/tls/tortls_st.h \
|
|
src/lib/tls/x509.h \
|
|
src/lib/tls/x509_internal.h
|