e8f783ac0d
This will allow a static linker (with -ffunction-sections since things aren't split into files) to drop unused parts of DH and DSA. Notably, the parameter generation bits pull in primality-checking code. Change-Id: I25087e4cb91bc9d0ab43bcb267c2e2c164e56b59 Reviewed-on: https://boringssl-review.googlesource.com/6388 Reviewed-by: Adam Langley <agl@google.com>
24 lines
259 B
CMake
24 lines
259 B
CMake
include_directories(../../include)
|
|
|
|
add_library(
|
|
dh
|
|
|
|
OBJECT
|
|
|
|
dh.c
|
|
params.c
|
|
check.c
|
|
dh_asn1.c
|
|
)
|
|
|
|
add_executable(
|
|
dh_test
|
|
|
|
dh_test.cc
|
|
|
|
$<TARGET_OBJECTS:test_support>
|
|
)
|
|
|
|
target_link_libraries(dh_test crypto)
|
|
add_dependencies(all_tests dh_test)
|