Skip to content

Commit

Permalink
tls: always enable USE_OPENSSL_SRTP (#1122)
Browse files Browse the repository at this point in the history
  • Loading branch information
alfredh authored May 16, 2024
1 parent 14c981e commit 034cc38
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 19 deletions.
1 change: 0 additions & 1 deletion cmake/re-config.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,6 @@ if(USE_OPENSSL)
USE_OPENSSL
USE_OPENSSL_AES
USE_OPENSSL_HMAC
USE_OPENSSL_SRTP
USE_TLS
)
endif()
Expand Down
18 changes: 0 additions & 18 deletions src/tls/openssl/tls.c
Original file line number Diff line number Diff line change
Expand Up @@ -1089,7 +1089,6 @@ int tls_set_verify_client_handler(struct tls_conn *tc, int depth,
*/
int tls_set_srtp(struct tls *tls, const char *suites)
{
#ifdef USE_OPENSSL_SRTP
if (!tls || !suites)
return EINVAL;

Expand All @@ -1099,12 +1098,6 @@ int tls_set_srtp(struct tls *tls, const char *suites)
}

return 0;
#else
(void)tls;
(void)suites;

return ENOSYS;
#endif
}


Expand Down Expand Up @@ -1265,7 +1258,6 @@ int tls_srtp_keyinfo(const struct tls_conn *tc, enum srtp_suite *suite,
uint8_t *cli_key, size_t cli_key_size,
uint8_t *srv_key, size_t srv_key_size)
{
#ifdef USE_OPENSSL_SRTP
static const char *label = "EXTRACTOR-dtls_srtp";
size_t key_size, salt_size, size;
SRTP_PROTECTION_PROFILE *sel;
Expand Down Expand Up @@ -1336,16 +1328,6 @@ int tls_srtp_keyinfo(const struct tls_conn *tc, enum srtp_suite *suite,
mem_secclean(keymat, sizeof(keymat));

return 0;
#else
(void)tc;
(void)suite;
(void)cli_key;
(void)cli_key_size;
(void)srv_key;
(void)srv_key_size;

return ENOSYS;
#endif
}


Expand Down

0 comments on commit 034cc38

Please sign in to comment.