mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-05-09 03:04:24 +02:00
Do not return a structure, use a return parameter
Signed-off-by: Johan Pascal <johan.pascal@belledonne-communications.com>
This commit is contained in:
@@ -2754,8 +2754,8 @@ int main( int argc, char *argv[] )
|
||||
else if( opt.use_srtp != 0 )
|
||||
{
|
||||
size_t j = 0;
|
||||
mbedtls_dtls_srtp_info dtls_srtp_negotiation_result =
|
||||
mbedtls_ssl_get_dtls_srtp_negotiation_result( &ssl );
|
||||
mbedtls_dtls_srtp_info dtls_srtp_negotiation_result;
|
||||
mbedtls_ssl_get_dtls_srtp_negotiation_result( &ssl, &dtls_srtp_negotiation_result );
|
||||
|
||||
if( ( dtls_srtp_negotiation_result.chosen_dtls_srtp_profile
|
||||
== MBEDTLS_TLS_SRTP_UNSET ) )
|
||||
|
||||
@@ -3865,8 +3865,8 @@ handshake:
|
||||
else if( opt.use_srtp != 0 )
|
||||
{
|
||||
size_t j = 0;
|
||||
mbedtls_dtls_srtp_info dtls_srtp_negotiation_result =
|
||||
mbedtls_ssl_get_dtls_srtp_negotiation_result( &ssl );
|
||||
mbedtls_dtls_srtp_info dtls_srtp_negotiation_result;
|
||||
mbedtls_ssl_get_dtls_srtp_negotiation_result( &ssl, &dtls_srtp_negotiation_result );
|
||||
|
||||
if( ( dtls_srtp_negotiation_result.chosen_dtls_srtp_profile
|
||||
== MBEDTLS_TLS_SRTP_UNSET ) )
|
||||
|
||||
Reference in New Issue
Block a user