1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-07-29 11:41:15 +03:00

Test check the key material exported match

- include interop with openssl client

Signed-off-by: Johan Pascal <johan.pascal@belledonne-communications.com>
This commit is contained in:
Johan Pascal
2020-09-24 12:01:13 +02:00
parent 39cfd3b96e
commit 9bc50b0122
3 changed files with 56 additions and 0 deletions

View File

@ -2779,7 +2779,17 @@ int main( int argc, char *argv[] )
mbedtls_printf( "\n " );
mbedtls_printf( "%02x ", dtls_srtp_key_material[j] );
}
mbedtls_printf( "\n" );
/* produce a less readable output used to perform automatic checks
* - compare client and server output
* - interop test with openssl which client produces this kind of output
*/
mbedtls_printf( " Keying material: " );
for( j = 0; j < sizeof( dtls_srtp_key_material ); j++ )
{
mbedtls_printf( "%02X", dtls_srtp_key_material[j] );
}
mbedtls_printf( "\n" );
}
}