Browse Source

use portable macro to access private members

gaojiawei 1 year ago
parent
commit
5c2983b44a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/impl/dtlssrtptransport.cpp

+ 1 - 1
src/impl/dtlssrtptransport.cpp

@@ -269,7 +269,7 @@ void DtlsSrtpTransport::postHandshake() {
 
 
 	mbedtls_dtls_srtp_info srtpInfo;
 	mbedtls_dtls_srtp_info srtpInfo;
 	mbedtls_ssl_get_dtls_srtp_negotiation_result(&mSsl, &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");
 		throw std::runtime_error("Failed to get SRTP profile");
 
 
 	const srtp_profile_t srtpProfile = srtp_profile_aes128_cm_sha1_80;
 	const srtp_profile_t srtpProfile = srtp_profile_aes128_cm_sha1_80;