9c01e00c2e
Previously, the ASN.1 functions in bytestring were capable of processing indefinite length elements when the _ber functions were used. That works well enough for PKCS#3, but NSS goes a bit crazy with BER encoding and PKCS#12. Rather than complicate the core bytestring functions further, the BER support is removed from them and moved to a separate function that converts from BER to DER (if needed). Change-Id: I2212b28e99bab9fab8c61f80d2012d3e5a3cc2f0 Reviewed-on: https://boringssl-review.googlesource.com/1591 Reviewed-by: Adam Langley <agl@google.com>
20 lines
202 B
CMake
20 lines
202 B
CMake
include_directories(. .. ../../include)
|
|
|
|
add_library(
|
|
bytestring
|
|
|
|
OBJECT
|
|
|
|
ber.c
|
|
cbs.c
|
|
cbb.c
|
|
)
|
|
|
|
add_executable(
|
|
bytestring_test
|
|
|
|
bytestring_test.c
|
|
)
|
|
|
|
target_link_libraries(bytestring_test crypto)
|