17c3057f26
This is a C++ interface for encrypting and decrypting TLS application data records in-place, wrapping the existing C API in tls_record.cc. Also add bssl::Span, a non-owning reference to a contiguous array of elements which can be used as a common interface over contiguous container types (like std::vector), pointer-length-pairs, arrays, etc. Change-Id: Iaa2ca4957cde511cb734b997db38f54e103b0d92 Reviewed-on: https://boringssl-review.googlesource.com/18104 Commit-Queue: Martin Kreichgauer <martinkr@google.com> Reviewed-by: Adam Langley <agl@google.com>
60 lines
910 B
CMake
60 lines
910 B
CMake
include_directories(../include)
|
|
|
|
add_library(
|
|
ssl
|
|
|
|
bio_ssl.cc
|
|
custom_extensions.cc
|
|
d1_both.cc
|
|
d1_lib.cc
|
|
d1_pkt.cc
|
|
d1_srtp.cc
|
|
dtls_method.cc
|
|
dtls_record.cc
|
|
handshake_client.cc
|
|
handshake_server.cc
|
|
s3_both.cc
|
|
s3_lib.cc
|
|
s3_pkt.cc
|
|
ssl_aead_ctx.cc
|
|
ssl_asn1.cc
|
|
ssl_buffer.cc
|
|
ssl_cert.cc
|
|
ssl_cipher.cc
|
|
ssl_file.cc
|
|
ssl_key_share.cc
|
|
ssl_lib.cc
|
|
ssl_privkey.cc
|
|
ssl_session.cc
|
|
ssl_stat.cc
|
|
ssl_transcript.cc
|
|
ssl_versions.cc
|
|
ssl_x509.cc
|
|
t1_enc.cc
|
|
t1_lib.cc
|
|
tls_method.cc
|
|
tls_record.cc
|
|
tls13_both.cc
|
|
tls13_client.cc
|
|
tls13_enc.cc
|
|
tls13_server.cc
|
|
)
|
|
|
|
target_link_libraries(ssl crypto)
|
|
|
|
add_executable(
|
|
ssl_test
|
|
|
|
span_test.cc
|
|
ssl_test.cc
|
|
|
|
$<TARGET_OBJECTS:gtest_main>
|
|
$<TARGET_OBJECTS:test_support>
|
|
)
|
|
|
|
target_link_libraries(ssl_test ssl crypto gtest)
|
|
if (WIN32)
|
|
target_link_libraries(ssl_test ws2_32)
|
|
endif()
|
|
add_dependencies(all_tests ssl_test)
|