From 8f284c1b05fb79785f4e20f1f47901853f8e0cca Mon Sep 17 00:00:00 2001 From: Ron Eldor Date: Thu, 26 Sep 2019 16:43:03 +0300 Subject: [PATCH] Add the SRTP configuration to query_config Add the DTLS_SRTP configuration to `query_config`. Signed-off-by: Johan Pascal --- programs/test/query_config.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/programs/test/query_config.c b/programs/test/query_config.c index c35502fa4..1345b11fe 100644 --- a/programs/test/query_config.c +++ b/programs/test/query_config.c @@ -1480,6 +1480,14 @@ int query_config( const char *config ) } #endif /* MBEDTLS_SSL_DTLS_HELLO_VERIFY */ +#if defined(MBEDTLS_SSL_DTLS_SRTP) + if( strcmp( "MBEDTLS_SSL_DTLS_SRTP", config ) == 0 ) + { + MACRO_EXPANSION_TO_STR( MBEDTLS_SSL_DTLS_SRTP ); + return( 0 ); + } +#endif /* MBEDTLS_SSL_DTLS_SRTP */ + #if defined(MBEDTLS_SSL_DTLS_CLIENT_PORT_REUSE) if( strcmp( "MBEDTLS_SSL_DTLS_CLIENT_PORT_REUSE", config ) == 0 ) {