|
webkit
2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
|
#include <srtpfilter.h>
Public Types | |
| enum | Mode { PROTECT, UNPROTECT, PROTECT, UNPROTECT } |
| enum | Error { ERROR_NONE, ERROR_FAIL, ERROR_AUTH, ERROR_REPLAY, ERROR_NONE, ERROR_FAIL, ERROR_AUTH, ERROR_REPLAY } |
| enum | Mode { PROTECT, UNPROTECT, PROTECT, UNPROTECT } |
| enum | Error { ERROR_NONE, ERROR_FAIL, ERROR_AUTH, ERROR_REPLAY, ERROR_NONE, ERROR_FAIL, ERROR_AUTH, ERROR_REPLAY } |
Public Member Functions | |
| SrtpFilter () | |
| ~SrtpFilter () | |
| bool | IsActive () const |
| bool | SetOffer (const std::vector< CryptoParams > &offer_params, ContentSource source) |
| bool | SetProvisionalAnswer (const std::vector< CryptoParams > &answer_params, ContentSource source) |
| bool | SetAnswer (const std::vector< CryptoParams > &answer_params, ContentSource source) |
| bool | SetRtpParams (int send_cs, const uint8_t *send_key, int send_key_len, int recv_cs, const uint8_t *recv_key, int recv_key_len) |
| bool | SetRtcpParams (int send_cs, const uint8_t *send_key, int send_key_len, int recv_cs, const uint8_t *recv_key, int recv_key_len) |
| bool | ProtectRtp (void *data, int in_len, int max_len, int *out_len) |
| bool | ProtectRtp (void *data, int in_len, int max_len, int *out_len, int64_t *index) |
| bool | ProtectRtcp (void *data, int in_len, int max_len, int *out_len) |
| bool | UnprotectRtp (void *data, int in_len, int *out_len) |
| bool | UnprotectRtcp (void *data, int in_len, int *out_len) |
| bool | GetRtpAuthParams (uint8_t **key, int *key_len, int *tag_len) |
| bool | GetSrtpOverhead (int *srtp_overhead) const |
| void | set_signal_silent_time (int signal_silent_time_in_ms) |
| bool | ResetParams () |
| SrtpFilter () | |
| ~SrtpFilter () | |
| bool | IsActive () const |
| bool | SetOffer (const std::vector< CryptoParams > &offer_params, ContentSource source) |
| bool | SetProvisionalAnswer (const std::vector< CryptoParams > &answer_params, ContentSource source) |
| bool | SetAnswer (const std::vector< CryptoParams > &answer_params, ContentSource source) |
| bool | SetRtpParams (int send_cs, const uint8_t *send_key, int send_key_len, int recv_cs, const uint8_t *recv_key, int recv_key_len) |
| bool | SetRtcpParams (int send_cs, const uint8_t *send_key, int send_key_len, int recv_cs, const uint8_t *recv_key, int recv_key_len) |
| bool | ProtectRtp (void *data, int in_len, int max_len, int *out_len) |
| bool | ProtectRtp (void *data, int in_len, int max_len, int *out_len, int64_t *index) |
| bool | ProtectRtcp (void *data, int in_len, int max_len, int *out_len) |
| bool | UnprotectRtp (void *data, int in_len, int *out_len) |
| bool | UnprotectRtcp (void *data, int in_len, int *out_len) |
| bool | GetRtpAuthParams (uint8_t **key, int *key_len, int *tag_len) |
| bool | GetSrtpOverhead (int *srtp_overhead) const |
| void | set_signal_silent_time (int signal_silent_time_in_ms) |
| bool | ResetParams () |
Public Attributes | |
| sigslot::repeater3< uint32_t, Mode, Error > | SignalSrtpError |
Protected Member Functions | |
| bool | ExpectOffer (ContentSource source) |
| bool | StoreParams (const std::vector< CryptoParams > ¶ms, ContentSource source) |
| bool | ExpectAnswer (ContentSource source) |
| bool | DoSetAnswer (const std::vector< CryptoParams > &answer_params, ContentSource source, bool final) |
| void | CreateSrtpSessions () |
| bool | NegotiateParams (const std::vector< CryptoParams > &answer_params, CryptoParams *selected_params) |
| bool | ApplyParams (const CryptoParams &send_params, const CryptoParams &recv_params) |
| bool | ExpectOffer (ContentSource source) |
| bool | StoreParams (const std::vector< CryptoParams > ¶ms, ContentSource source) |
| bool | ExpectAnswer (ContentSource source) |
| bool | DoSetAnswer (const std::vector< CryptoParams > &answer_params, ContentSource source, bool final) |
| void | CreateSrtpSessions () |
| bool | NegotiateParams (const std::vector< CryptoParams > &answer_params, CryptoParams *selected_params) |
| bool | ApplyParams (const CryptoParams &send_params, const CryptoParams &recv_params) |
Static Protected Member Functions | |
| static bool | ParseKeyParams (const std::string ¶ms, uint8_t *key, size_t len) |
| static bool | ParseKeyParams (const std::string ¶ms, uint8_t *key, size_t len) |
| cricket::SrtpFilter::SrtpFilter | ( | ) |
| cricket::SrtpFilter::~SrtpFilter | ( | ) |
| cricket::SrtpFilter::SrtpFilter | ( | ) |
| cricket::SrtpFilter::~SrtpFilter | ( | ) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
| bool cricket::SrtpFilter::GetRtpAuthParams | ( | uint8_t ** | key, |
| int * | key_len, | ||
| int * | tag_len | ||
| ) |
| bool cricket::SrtpFilter::GetRtpAuthParams | ( | uint8_t ** | key, |
| int * | key_len, | ||
| int * | tag_len | ||
| ) |
| bool cricket::SrtpFilter::GetSrtpOverhead | ( | int * | srtp_overhead | ) | const |
| bool cricket::SrtpFilter::GetSrtpOverhead | ( | int * | srtp_overhead | ) | const |
| bool cricket::SrtpFilter::IsActive | ( | ) | const |
| bool cricket::SrtpFilter::IsActive | ( | ) | const |
|
protected |
|
protected |
|
staticprotected |
|
staticprotected |
| bool cricket::SrtpFilter::ProtectRtcp | ( | void * | data, |
| int | in_len, | ||
| int | max_len, | ||
| int * | out_len | ||
| ) |
| bool cricket::SrtpFilter::ProtectRtcp | ( | void * | data, |
| int | in_len, | ||
| int | max_len, | ||
| int * | out_len | ||
| ) |
| bool cricket::SrtpFilter::ProtectRtp | ( | void * | data, |
| int | in_len, | ||
| int | max_len, | ||
| int * | out_len | ||
| ) |
| bool cricket::SrtpFilter::ProtectRtp | ( | void * | data, |
| int | in_len, | ||
| int | max_len, | ||
| int * | out_len | ||
| ) |
| bool cricket::SrtpFilter::ProtectRtp | ( | void * | data, |
| int | in_len, | ||
| int | max_len, | ||
| int * | out_len, | ||
| int64_t * | index | ||
| ) |
| bool cricket::SrtpFilter::ProtectRtp | ( | void * | data, |
| int | in_len, | ||
| int | max_len, | ||
| int * | out_len, | ||
| int64_t * | index | ||
| ) |
| bool cricket::SrtpFilter::ResetParams | ( | ) |
| bool cricket::SrtpFilter::ResetParams | ( | ) |
| void cricket::SrtpFilter::set_signal_silent_time | ( | int | signal_silent_time_in_ms | ) |
| void cricket::SrtpFilter::set_signal_silent_time | ( | int | signal_silent_time_in_ms | ) |
| bool cricket::SrtpFilter::SetAnswer | ( | const std::vector< CryptoParams > & | answer_params, |
| ContentSource | source | ||
| ) |
| bool cricket::SrtpFilter::SetAnswer | ( | const std::vector< CryptoParams > & | answer_params, |
| ContentSource | source | ||
| ) |
| bool cricket::SrtpFilter::SetOffer | ( | const std::vector< CryptoParams > & | offer_params, |
| ContentSource | source | ||
| ) |
| bool cricket::SrtpFilter::SetOffer | ( | const std::vector< CryptoParams > & | offer_params, |
| ContentSource | source | ||
| ) |
| bool cricket::SrtpFilter::SetProvisionalAnswer | ( | const std::vector< CryptoParams > & | answer_params, |
| ContentSource | source | ||
| ) |
| bool cricket::SrtpFilter::SetProvisionalAnswer | ( | const std::vector< CryptoParams > & | answer_params, |
| ContentSource | source | ||
| ) |
| bool cricket::SrtpFilter::SetRtcpParams | ( | int | send_cs, |
| const uint8_t * | send_key, | ||
| int | send_key_len, | ||
| int | recv_cs, | ||
| const uint8_t * | recv_key, | ||
| int | recv_key_len | ||
| ) |
| bool cricket::SrtpFilter::SetRtcpParams | ( | int | send_cs, |
| const uint8_t * | send_key, | ||
| int | send_key_len, | ||
| int | recv_cs, | ||
| const uint8_t * | recv_key, | ||
| int | recv_key_len | ||
| ) |
| bool cricket::SrtpFilter::SetRtpParams | ( | int | send_cs, |
| const uint8_t * | send_key, | ||
| int | send_key_len, | ||
| int | recv_cs, | ||
| const uint8_t * | recv_key, | ||
| int | recv_key_len | ||
| ) |
| bool cricket::SrtpFilter::SetRtpParams | ( | int | send_cs, |
| const uint8_t * | send_key, | ||
| int | send_key_len, | ||
| int | recv_cs, | ||
| const uint8_t * | recv_key, | ||
| int | recv_key_len | ||
| ) |
|
protected |
|
protected |
| bool cricket::SrtpFilter::UnprotectRtcp | ( | void * | data, |
| int | in_len, | ||
| int * | out_len | ||
| ) |
| bool cricket::SrtpFilter::UnprotectRtcp | ( | void * | data, |
| int | in_len, | ||
| int * | out_len | ||
| ) |
| bool cricket::SrtpFilter::UnprotectRtp | ( | void * | data, |
| int | in_len, | ||
| int * | out_len | ||
| ) |
| bool cricket::SrtpFilter::UnprotectRtp | ( | void * | data, |
| int | in_len, | ||
| int * | out_len | ||
| ) |
| sigslot::repeater3< uint32_t, Mode, Error > cricket::SrtpFilter::SignalSrtpError |
1.8.13