Skip to content

Commit

Permalink
use portable macro to access private members
Browse files Browse the repository at this point in the history
  • Loading branch information
gaojiawei committed Nov 17, 2023
1 parent 60da36e commit 5c2983b
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 5c2983b

Please sign in to comment.