mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Move consttime library code into its own directory.
This commit is contained in:
@@ -167,6 +167,8 @@ uptime-*.json
|
||||
/src/ext/keccak-tiny/libkeccak-tiny.lib
|
||||
|
||||
# /src/lib
|
||||
/src/lib/libtor-ctime.a
|
||||
/src/lib/libtor-ctime-testing.a
|
||||
/src/lib/libtor-err.a
|
||||
/src/lib/libtor-err-testing.a
|
||||
|
||||
|
||||
+2
-2
@@ -41,14 +41,14 @@ endif
|
||||
TOR_UTIL_LIBS = \
|
||||
src/common/libor.a \
|
||||
src/lib/libtor-err.a \
|
||||
src/common/libor-ctime.a
|
||||
src/lib/libtor-ctime.a
|
||||
|
||||
# Variants of the above for linking the testing variant of tor (for coverage
|
||||
# and tests)
|
||||
TOR_UTIL_TESTING_LIBS = \
|
||||
src/common/libor-testing.a \
|
||||
src/lib/libtor-err-testing.a \
|
||||
src/common/libor-ctime-testing.a
|
||||
src/lib/libtor-ctime-testing.a
|
||||
|
||||
# Internal crypto libraries used in Tor
|
||||
TOR_CRYPTO_LIBS = \
|
||||
|
||||
@@ -1,14 +1,12 @@
|
||||
|
||||
noinst_LIBRARIES += \
|
||||
src/common/libor.a \
|
||||
src/common/libor-ctime.a \
|
||||
src/common/libor-crypto.a \
|
||||
src/common/libor-event.a
|
||||
|
||||
if UNITTESTS_ENABLED
|
||||
noinst_LIBRARIES += \
|
||||
src/common/libor-testing.a \
|
||||
src/common/libor-ctime-testing.a \
|
||||
src/common/libor-crypto-testing.a \
|
||||
src/common/libor-event-testing.a
|
||||
endif
|
||||
@@ -59,26 +57,6 @@ else
|
||||
readpassphrase_source=
|
||||
endif
|
||||
|
||||
if ADD_MULODI4
|
||||
mulodi4_source=src/ext/mulodi/mulodi4.c
|
||||
else
|
||||
mulodi4_source=
|
||||
endif
|
||||
|
||||
LIBOR_CTIME_A_SRC = \
|
||||
$(mulodi4_source) \
|
||||
src/ext/csiphash.c \
|
||||
src/common/di_ops.c
|
||||
|
||||
src_common_libor_ctime_a_SOURCES = $(LIBOR_CTIME_A_SRC)
|
||||
if UNITTESTS_ENABLED
|
||||
src_common_libor_ctime_testing_a_SOURCES = $(LIBOR_CTIME_A_SRC)
|
||||
else
|
||||
src_common_libor_ctime_testing_a_SOURCES =
|
||||
endif
|
||||
src_common_libor_ctime_a_CFLAGS = @CFLAGS_CONSTTIME@
|
||||
src_common_libor_ctime_testing_a_CFLAGS = @CFLAGS_CONSTTIME@ $(TEST_CFLAGS)
|
||||
|
||||
LIBOR_A_SRC = \
|
||||
src/common/address.c \
|
||||
src/common/address_set.c \
|
||||
@@ -189,7 +167,6 @@ COMMONHEADERS = \
|
||||
src/common/crypto_rsa.h \
|
||||
src/common/crypto_s2k.h \
|
||||
src/common/crypto_util.h \
|
||||
src/common/di_ops.h \
|
||||
src/common/handles.h \
|
||||
src/common/memarea.h \
|
||||
src/common/linux_syscalls.inc \
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
include src/ext/include.am
|
||||
include src/lib/err/include.am
|
||||
include src/lib/ctime/include.am
|
||||
include src/common/include.am
|
||||
include src/trunnel/include.am
|
||||
include src/or/include.am
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
|
||||
noinst_LIBRARIES += src/lib/libtor-ctime.a
|
||||
|
||||
if UNITTESTS_ENABLED
|
||||
noinst_LIBRARIES += src/lib/libtor-ctime-testing.a
|
||||
endif
|
||||
|
||||
if ADD_MULODI4
|
||||
mulodi4_source=src/ext/mulodi/mulodi4.c
|
||||
else
|
||||
mulodi4_source=
|
||||
endif
|
||||
|
||||
src_lib_libtor_ctime_a_SOURCES = \
|
||||
$(mulodi4_source) \
|
||||
src/ext/csiphash.c \
|
||||
src/lib/ctime/di_ops.c
|
||||
|
||||
src_lib_libtor_ctime_testing_a_SOURCES = \
|
||||
$(src_lib_libtor_ctime_a_SOURCES)
|
||||
src_lib_libtor_ctime_a_CFLAGS = @CFLAGS_CONSTTIME@
|
||||
src_lib_libtor_ctime_testing_a_CFLAGS = @CFLAGS_CONSTTIME@ $(TEST_CFLAGS)
|
||||
|
||||
noinst_HEADERS += \
|
||||
src/lib/ctime/di_ops.h
|
||||
+1
-2
@@ -150,11 +150,10 @@ pub fn main() {
|
||||
// tor uses. We must be careful with factoring and dependencies
|
||||
// moving forward!
|
||||
cfg.component("or-crypto-testing");
|
||||
cfg.component("or-ctime-testing");
|
||||
cfg.component("or-testing");
|
||||
cfg.component("tor-err-testing");
|
||||
cfg.component("or-event-testing");
|
||||
cfg.component("or-ctime-testing");
|
||||
cfg.component("tor-ctime-testing");
|
||||
cfg.component("curve25519_donna");
|
||||
cfg.component("keccak-tiny");
|
||||
cfg.component("ed25519_ref10");
|
||||
|
||||
Reference in New Issue
Block a user