Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tls: always enable USE_OPENSSL_SRTP #1122

Merged
merged 1 commit into from
May 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading