srtp: remove deprecated non-span versions of key setters
BUG=webrtc:357776213 Change-Id: Idca7defe99b6d3dafb538a8a7599fe7edf2bff43 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/363141 Commit-Queue: Philipp Hancke <phancke@meta.com> Reviewed-by: Elad Alon <eladalon@webrtc.org> Reviewed-by: Florent Castelli <orphis@webrtc.org> Cr-Commit-Position: refs/heads/main@{#43397}
This commit is contained in:
parent
54ed3ad524
commit
d4a3002b9b
@ -168,52 +168,24 @@ SrtpSession::~SrtpSession() {
|
||||
}
|
||||
}
|
||||
|
||||
bool SrtpSession::SetSend(int crypto_suite,
|
||||
const uint8_t* key,
|
||||
size_t len,
|
||||
const std::vector<int>& extension_ids) {
|
||||
return SetSend(crypto_suite, {key, len}, extension_ids);
|
||||
}
|
||||
|
||||
bool SrtpSession::SetSend(int crypto_suite,
|
||||
const rtc::ZeroOnFreeBuffer<uint8_t>& key,
|
||||
const std::vector<int>& extension_ids) {
|
||||
return SetKey(ssrc_any_outbound, crypto_suite, key, extension_ids);
|
||||
}
|
||||
|
||||
bool SrtpSession::UpdateSend(int crypto_suite,
|
||||
const uint8_t* key,
|
||||
size_t len,
|
||||
const std::vector<int>& extension_ids) {
|
||||
return UpdateSend(crypto_suite, {key, len}, extension_ids);
|
||||
}
|
||||
|
||||
bool SrtpSession::UpdateSend(int crypto_suite,
|
||||
const rtc::ZeroOnFreeBuffer<uint8_t>& key,
|
||||
const std::vector<int>& extension_ids) {
|
||||
return UpdateKey(ssrc_any_outbound, crypto_suite, key, extension_ids);
|
||||
}
|
||||
|
||||
bool SrtpSession::SetRecv(int crypto_suite,
|
||||
const uint8_t* key,
|
||||
size_t len,
|
||||
const std::vector<int>& extension_ids) {
|
||||
return SetReceive(crypto_suite, {key, len}, extension_ids);
|
||||
}
|
||||
|
||||
bool SrtpSession::SetReceive(int crypto_suite,
|
||||
const rtc::ZeroOnFreeBuffer<uint8_t>& key,
|
||||
const std::vector<int>& extension_ids) {
|
||||
return SetKey(ssrc_any_inbound, crypto_suite, key, extension_ids);
|
||||
}
|
||||
|
||||
bool SrtpSession::UpdateRecv(int crypto_suite,
|
||||
const uint8_t* key,
|
||||
size_t len,
|
||||
const std::vector<int>& extension_ids) {
|
||||
return UpdateReceive(crypto_suite, {key, len}, extension_ids);
|
||||
}
|
||||
|
||||
bool SrtpSession::UpdateReceive(int crypto_suite,
|
||||
const rtc::ZeroOnFreeBuffer<uint8_t>& key,
|
||||
const std::vector<int>& extension_ids) {
|
||||
|
||||
@ -44,38 +44,18 @@ class SrtpSession {
|
||||
|
||||
// Configures the session for sending data using the specified
|
||||
// crypto suite and key. Receiving must be done by a separate session.
|
||||
[[deprecated("Pass ZeroOnFreeBuffer to SetSend")]] bool SetSend(
|
||||
int crypto_suite,
|
||||
const uint8_t* key,
|
||||
size_t len,
|
||||
const std::vector<int>& extension_ids);
|
||||
bool SetSend(int crypto_suite,
|
||||
const rtc::ZeroOnFreeBuffer<uint8_t>& key,
|
||||
const std::vector<int>& extension_ids);
|
||||
[[deprecated("Pass ZeroOnFreeBuffer to UpdateSend")]] bool UpdateSend(
|
||||
int crypto_suite,
|
||||
const uint8_t* key,
|
||||
size_t len,
|
||||
const std::vector<int>& extension_ids);
|
||||
bool UpdateSend(int crypto_suite,
|
||||
const rtc::ZeroOnFreeBuffer<uint8_t>& key,
|
||||
const std::vector<int>& extension_ids);
|
||||
|
||||
// Configures the session for receiving data using the specified
|
||||
// crypto suite and key. Sending must be done by a separate session.
|
||||
[[deprecated("Pass ZeroOnFreeBuffer to SetReceive")]] bool SetRecv(
|
||||
int crypto_suite,
|
||||
const uint8_t* key,
|
||||
size_t len,
|
||||
const std::vector<int>& extension_ids);
|
||||
bool SetReceive(int crypto_suite,
|
||||
const rtc::ZeroOnFreeBuffer<uint8_t>& key,
|
||||
const std::vector<int>& extension_ids);
|
||||
[[deprecated("Pass ZeroOnFreeBuffer to UpdateReceive")]] bool UpdateRecv(
|
||||
int crypto_suite,
|
||||
const uint8_t* key,
|
||||
size_t len,
|
||||
const std::vector<int>& extension_ids);
|
||||
bool UpdateReceive(int crypto_suite,
|
||||
const rtc::ZeroOnFreeBuffer<uint8_t>& key,
|
||||
const std::vector<int>& extension_ids);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user