mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Merge branch 'nss_squashed' into nss_merge
This commit is contained in:
+15
-1
@@ -81,6 +81,12 @@
|
||||
#include "core/mainloop/cpuworker.h"
|
||||
#include "lib/crypt_ops/crypto_rand.h"
|
||||
#include "lib/crypt_ops/crypto_util.h"
|
||||
#include "lib/crypt_ops/crypto_init.h"
|
||||
#ifdef ENABLE_NSS
|
||||
#include "lib/crypt_ops/crypto_nss_mgt.h"
|
||||
#else
|
||||
#include "lib/crypt_ops/crypto_openssl_mgt.h"
|
||||
#endif
|
||||
#include "feature/dircache/dirserv.h"
|
||||
#include "feature/relay/dns.h"
|
||||
#include "core/or/dos.h"
|
||||
@@ -1412,7 +1418,8 @@ options_act_reversible(const or_options_t *old_options, char **msg)
|
||||
* processes. */
|
||||
if (running_tor && options->RunAsDaemon) {
|
||||
/* No need to roll back, since you can't change the value. */
|
||||
start_daemon();
|
||||
if (start_daemon())
|
||||
crypto_postfork();
|
||||
}
|
||||
|
||||
#ifdef HAVE_SYSTEMD
|
||||
@@ -5152,9 +5159,16 @@ options_init_from_torrc(int argc, char **argv)
|
||||
printf("Libevent\t\t%-15s\t\t%s\n",
|
||||
tor_libevent_get_header_version_str(),
|
||||
tor_libevent_get_version_str());
|
||||
#ifdef ENABLE_OPENSSL
|
||||
printf("OpenSSL \t\t%-15s\t\t%s\n",
|
||||
crypto_openssl_get_header_version_str(),
|
||||
crypto_openssl_get_version_str());
|
||||
#endif
|
||||
#ifdef ENABLE_NSS
|
||||
printf("NSS \t\t%-15s\t\t%s\n",
|
||||
crypto_nss_get_header_version_str(),
|
||||
crypto_nss_get_version_str());
|
||||
#endif
|
||||
if (tor_compress_supports_method(ZLIB_METHOD)) {
|
||||
printf("Zlib \t\t%-15s\t\t%s\n",
|
||||
tor_compress_version_str(ZLIB_METHOD),
|
||||
|
||||
+4
-4
@@ -14,10 +14,10 @@ src_app_tor_SOURCES = src/app/main/tor_main.c
|
||||
# This seems to matter nowhere but on windows, but I assure you that it
|
||||
# matters a lot there, and is quite hard to debug if you forget to do it.
|
||||
|
||||
src_app_tor_LDFLAGS = @TOR_LDFLAGS_zlib@ @TOR_LDFLAGS_openssl@ @TOR_LDFLAGS_libevent@
|
||||
src_app_tor_LDFLAGS = @TOR_LDFLAGS_zlib@ $(TOR_LDFLAGS_CRYPTLIB) @TOR_LDFLAGS_libevent@
|
||||
src_app_tor_LDADD = $(TOR_INTERNAL_LIBS) \
|
||||
$(rust_ldadd) \
|
||||
@TOR_ZLIB_LIBS@ @TOR_LIB_MATH@ @TOR_LIBEVENT_LIBS@ @TOR_OPENSSL_LIBS@ \
|
||||
@TOR_ZLIB_LIBS@ @TOR_LIB_MATH@ @TOR_LIBEVENT_LIBS@ $(TOR_LIBS_CRYPTLIB) \
|
||||
@TOR_LIB_WS32@ @TOR_LIB_IPHLPAPI@ @TOR_LIB_GDI@ @TOR_LIB_USERENV@ \
|
||||
@CURVE25519_LIBS@ @TOR_SYSTEMD_LIBS@ \
|
||||
@TOR_LZMA_LIBS@ @TOR_ZSTD_LIBS@
|
||||
@@ -26,9 +26,9 @@ if COVERAGE_ENABLED
|
||||
src_app_tor_cov_SOURCES = $(src_app_tor_SOURCES)
|
||||
src_app_tor_cov_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_CPPFLAGS)
|
||||
src_app_tor_cov_CFLAGS = $(AM_CFLAGS) $(TEST_CFLAGS)
|
||||
src_app_tor_cov_LDFLAGS = @TOR_LDFLAGS_zlib@ @TOR_LDFLAGS_openssl@ @TOR_LDFLAGS_libevent@
|
||||
src_app_tor_cov_LDFLAGS = @TOR_LDFLAGS_zlib@ $(TOR_LDFLAGS_CRYPTLIB) @TOR_LDFLAGS_libevent@
|
||||
src_app_tor_cov_LDADD = $(TOR_INTERNAL_TESTING_LIBS) \
|
||||
@TOR_ZLIB_LIBS@ @TOR_LIB_MATH@ @TOR_LIBEVENT_LIBS@ @TOR_OPENSSL_LIBS@ \
|
||||
@TOR_ZLIB_LIBS@ @TOR_LIB_MATH@ @TOR_LIBEVENT_LIBS@ $(TOR_LIBS_CRYPTLIB) \
|
||||
@TOR_LIB_WS32@ @TOR_LIB_IPHLPAPI@ @TOR_LIB_GDI@ \
|
||||
@CURVE25519_LIBS@ @TOR_SYSTEMD_LIBS@ \
|
||||
@TOR_LZMA_LIBS@ @TOR_ZSTD_LIBS@
|
||||
|
||||
Reference in New Issue
Block a user