Skip to content

Commit

Permalink
Merge pull request #1040 from realprocrastinator/gjw-mbedtls
Browse files Browse the repository at this point in the history
Access mbedtls private member via a portable macro
  • Loading branch information
paullouisageneau committed Nov 20, 2023
1 parent 54daa8f commit 0eaad1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/impl/dtlssrtptransport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ void DtlsSrtpTransport::postHandshake() {

mbedtls_dtls_srtp_info srtpInfo;
mbedtls_ssl_get_dtls_srtp_negotiation_result(&mSsl, &srtpInfo);
if (srtpInfo.private_chosen_dtls_srtp_profile != MBEDTLS_TLS_SRTP_AES128_CM_HMAC_SHA1_80)
if (srtpInfo.MBEDTLS_PRIVATE(chosen_dtls_srtp_profile) != MBEDTLS_TLS_SRTP_AES128_CM_HMAC_SHA1_80)
throw std::runtime_error("Failed to get SRTP profile");

const srtp_profile_t srtpProfile = srtp_profile_aes128_cm_sha1_80;
Expand Down

0 comments on commit 0eaad1d

Please sign in to comment.