bd42603943
An i2d compatibility function is rather long, so add CBB_finish_i2d for part of it. It takes a CBB as input so only a 'marshal' function is needed, rather than a 'to_bytes' one. Also replace the *inp d2i update pattern with a slightly shorter one. Change-Id: Ibb41059c9532f6a8ce33460890cc1afe26adc97c Reviewed-on: https://boringssl-review.googlesource.com/6868 Reviewed-by: Adam Langley <agl@google.com>
24 lines
299 B
CMake
24 lines
299 B
CMake
include_directories(../../include)
|
|
|
|
add_library(
|
|
bytestring
|
|
|
|
OBJECT
|
|
|
|
asn1_compat.c
|
|
ber.c
|
|
cbs.c
|
|
cbb.c
|
|
)
|
|
|
|
add_executable(
|
|
bytestring_test
|
|
|
|
bytestring_test.cc
|
|
|
|
$<TARGET_OBJECTS:test_support>
|
|
)
|
|
|
|
target_link_libraries(bytestring_test crypto)
|
|
add_dependencies(all_tests bytestring_test)
|