Commit d908b29f authored by jan.koester's avatar jan.koester
Browse files

crypto: DTLS 1.2 server for DTLS-SRTP (RFC 6347/5764), interop-tested against openssl s_client

ECDHE-RSA-AES128-GCM-SHA256 with x25519/P-256, client certificate checked
against the SDP fingerprint (ECDSA P-256 / RSA CertificateVerify), use_srtp
AES128_CM_HMAC_SHA1_80, extended master secret, fragmentation, retransmission,
RFC 5705 exporter.

Co-Authored-By: default avatarClaude Opus 5.5 <noreply@anthropic.com>
parent baa0ceac
Loading
Loading
Loading
Loading
+2 −0
Changes for src/CMakeLists.txt: 2 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -19,6 +19,7 @@ list(APPEND netplussrc
    crypto/ecdsa_verify.cpp
    crypto/curve25519.cpp
    crypto/srtp.cpp
    crypto/dtls.cpp
    crypto/pkcs12.cpp
    crypto/tls.cpp
    utils/certgen.cpp
@@ -88,6 +89,7 @@ set(headers
    crypto/tls.h
    crypto/curve25519.h
    crypto/srtp.h
    crypto/dtls.h
    utils/certgen.h
    threadpool.h
)

src/crypto/dtls.cpp

0 → 100644
+535 −0

File added.

Preview size limit exceeded, changes collapsed.

src/crypto/dtls.h

0 → 100644
+119 −0

File added.

Preview size limit exceeded, changes collapsed.

+4 −0
Changes for test/CMakeLists.txt: 4 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -324,3 +324,7 @@ add_test(NAME close_race_test COMMAND close_race_test)
add_executable(srtp_test srtp_test.cpp)
target_link_libraries(srtp_test netplus-static)
add_test(NAME srtp_test COMMAND srtp_test)

add_executable(dtls_harness dtls_harness.cpp)
target_link_libraries(dtls_harness netplus-static)
add_test(NAME dtls_openssl COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/dtls_openssl.sh $<TARGET_FILE:dtls_harness>)

test/dtls_harness.cpp

0 → 100644
+53 −0

File added.

Preview size limit exceeded, changes collapsed.

Loading