summaryrefslogtreecommitdiff
path: root/src/lib/crypt_ops/include.am
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-07-11 14:46:28 -0400
committerNick Mathewson <nickm@torproject.org>2018-07-13 12:35:22 -0400
commitc317e78dd75b6bf9c195c9bef5a0b8300d55411a (patch)
treed6d235c23036bcdebe7f24db60fde7dde1bb3846 /src/lib/crypt_ops/include.am
parentf45107e7de7ff15c630dedcdd1f9bc524423838f (diff)
downloadtor-c317e78dd75b6bf9c195c9bef5a0b8300d55411a.tar.gz
tor-c317e78dd75b6bf9c195c9bef5a0b8300d55411a.zip
Initialize and shut down NSS.
This is largely conjectural, based on online documentation for NSS and NSPR.
Diffstat (limited to 'src/lib/crypt_ops/include.am')
-rw-r--r--src/lib/crypt_ops/include.am10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/lib/crypt_ops/include.am b/src/lib/crypt_ops/include.am
index 1caa3fdbc3..e96d6b0a5c 100644
--- a/src/lib/crypt_ops/include.am
+++ b/src/lib/crypt_ops/include.am
@@ -15,7 +15,6 @@ src_lib_libtor_crypt_ops_a_SOURCES = \
src/lib/crypt_ops/crypto_format.c \
src/lib/crypt_ops/crypto_hkdf.c \
src/lib/crypt_ops/crypto_init.c \
- src/lib/crypt_ops/crypto_openssl_mgt.c \
src/lib/crypt_ops/crypto_pwbox.c \
src/lib/crypt_ops/crypto_rand.c \
src/lib/crypt_ops/crypto_rsa.c \
@@ -23,6 +22,15 @@ src_lib_libtor_crypt_ops_a_SOURCES = \
src/lib/crypt_ops/crypto_util.c \
src/lib/crypt_ops/digestset.c
+if USE_NSS
+src_lib_libtor_crypt_ops_a_SOURCES += \
+ src/lib/crypt_ops/crypto_nss_mgt.c
+endif
+if USE_OPENSSL
+src_lib_libtor_crypt_ops_a_SOURCES += \
+ src/lib/crypt_ops/crypto_openssl_mgt.c
+endif
+
src_lib_libtor_crypt_ops_a_CFLAGS = $(AM_CFLAGS) $(TOR_CFLAGS_CRYPTLIB)
src_lib_libtor_crypt_ops_testing_a_SOURCES = \