From 350cc9afc2bd18acfa1ceb31c80de1d9e417c191 Mon Sep 17 00:00:00 2001 From: gaojiawei Date: Fri, 17 Nov 2023 11:50:35 +0800 Subject: [PATCH] use portable macro to access private members --- src/impl/dtlssrtptransport.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/impl/dtlssrtptransport.cpp b/src/impl/dtlssrtptransport.cpp index 3a1e30950..8566338ab 100644 --- a/src/impl/dtlssrtptransport.cpp +++ b/src/impl/dtlssrtptransport.cpp @@ -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;