mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-30 22:43:08 +03:00
Make API safer
Signed-off-by: Johan Pascal <johan.pascal@belledonne-communications.com>
This commit is contained in:
@ -2754,10 +2754,10 @@ int main( int argc, char *argv[] )
|
||||
else if( opt.use_srtp != 0 )
|
||||
{
|
||||
size_t j = 0;
|
||||
const mbedtls_dtls_srtp_info *dtls_srtp_negotiation_result =
|
||||
mbedtls_dtls_srtp_info dtls_srtp_negotiation_result =
|
||||
mbedtls_ssl_get_dtls_srtp_negotiation_result( &ssl );
|
||||
|
||||
if( ( dtls_srtp_negotiation_result->chosen_dtls_srtp_profile
|
||||
if( ( dtls_srtp_negotiation_result.chosen_dtls_srtp_profile
|
||||
== MBEDTLS_TLS_SRTP_UNSET ) )
|
||||
{
|
||||
mbedtls_printf( " Unable to negotiate "
|
||||
@ -2800,12 +2800,12 @@ int main( int argc, char *argv[] )
|
||||
}
|
||||
mbedtls_printf( "\n" );
|
||||
|
||||
if ( dtls_srtp_negotiation_result->mki_len > 0 )
|
||||
if ( dtls_srtp_negotiation_result.mki_len > 0 )
|
||||
{
|
||||
mbedtls_printf( " DTLS-SRTP mki value: " );
|
||||
for( j = 0; j < dtls_srtp_negotiation_result->mki_len; j++ )
|
||||
for( j = 0; j < dtls_srtp_negotiation_result.mki_len; j++ )
|
||||
{
|
||||
mbedtls_printf( "%02X", dtls_srtp_negotiation_result->mki_value[j] );
|
||||
mbedtls_printf( "%02X", dtls_srtp_negotiation_result.mki_value[j] );
|
||||
}
|
||||
}
|
||||
else
|
||||
|
Reference in New Issue
Block a user