Browse Source

Merge pull request #1040 from realprocrastinator/gjw-mbedtls

Access mbedtls private member via a portable macro
Paul-Louis Ageneau 1 year ago
parent
commit
e33a3fa3cd
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_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;