LeviLamina
Loading...
Searching...
No Matches
SrtpSession.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated forward declare list
6// clang-format off
8namespace webrtc { class FieldTrialsView; }
9// clang-format on
10
11namespace cricket {
12
13class SrtpSession {
14public:
15 // member variables
16 // NOLINTBEGIN
27 // NOLINTEND
28
29public:
30 // prevent constructor by default
31 SrtpSession& operator=(SrtpSession const&);
32 SrtpSession(SrtpSession const&);
33 SrtpSession();
34
35public:
36 // member functions
37 // NOLINTBEGIN
38 MCNAPI bool
39 DoSetKey(int type, int crypto_suite, uchar const* key, uint64 len, ::std::vector<int> const& extension_ids);
40
41 MCNAPI void DumpPacket(void const* buf, int len, bool outbound);
42
43 MCNAPI void EnableExternalAuth();
44
45 MCNAPI int GetSrtpOverhead() const;
46
47 MCNAPI bool ProtectRtcp(void* p, int in_len, int max_len, int* out_len);
48
49 MCNAPI bool ProtectRtp(void* p, int in_len, int max_len, int* out_len);
50
51 MCNAPI bool RemoveSsrcFromSession(uint ssrc);
52
53 MCNAPI bool
54 SetKey(int type, int crypto_suite, uchar const* key, uint64 len, ::std::vector<int> const& extension_ids);
55
56 MCNAPI bool SetRecv(int crypto_suite, uchar const* key, uint64 len, ::std::vector<int> const& extension_ids);
57
58 MCNAPI bool SetSend(int crypto_suite, uchar const* key, uint64 len, ::std::vector<int> const& extension_ids);
59
60 MCNAPI explicit SrtpSession(::webrtc::FieldTrialsView const& field_trials);
61
62 MCNAPI bool UnprotectRtcp(void* p, int in_len, int* out_len);
63
64 MCNAPI bool UnprotectRtp(void* p, int in_len, int* out_len);
65
66 MCNAPI bool UpdateRecv(int crypto_suite, uchar const* key, uint64 len, ::std::vector<int> const& extension_ids);
67
68 MCNAPI bool UpdateSend(int crypto_suite, uchar const* key, uint64 len, ::std::vector<int> const& extension_ids);
69
70 MCNAPI ~SrtpSession();
71 // NOLINTEND
72
73public:
74 // static functions
75 // NOLINTBEGIN
76 MCNAPI static void HandleEventThunk(::srtp_event_data_t* ev);
77 // NOLINTEND
78
79public:
80 // constructor thunks
81 // NOLINTBEGIN
82 MCNAPI void* $ctor(::webrtc::FieldTrialsView const& field_trials);
83 // NOLINTEND
84
85public:
86 // destructor thunk
87 // NOLINTBEGIN
88 MCNAPI void $dtor();
89 // NOLINTEND
90};
91
92} // namespace cricket
MCAPI void $dtor()
MCAPI void EnableExternalAuth()
MCAPI bool RemoveSsrcFromSession(uint ssrc)
MCAPI bool DoSetKey(int type, int crypto_suite, uchar const *key, uint64 len, ::std::vector< int > const &extension_ids)
MCAPI bool SetRecv(int crypto_suite, uchar const *key, uint64 len, ::std::vector< int > const &extension_ids)
MCAPI void DumpPacket(void const *buf, int len, bool outbound)
MCAPI bool UnprotectRtcp(void *p, int in_len, int *out_len)
static MCAPI void HandleEventThunk(::srtp_event_data_t *ev)
MCAPI SrtpSession(::webrtc::FieldTrialsView const &field_trials)
MCAPI bool ProtectRtcp(void *p, int in_len, int max_len, int *out_len)
MCAPI bool UpdateSend(int crypto_suite, uchar const *key, uint64 len, ::std::vector< int > const &extension_ids)
MCAPI bool SetKey(int type, int crypto_suite, uchar const *key, uint64 len, ::std::vector< int > const &extension_ids)
MCAPI bool ProtectRtp(void *p, int in_len, int max_len, int *out_len)
MCAPI void * $ctor(::webrtc::FieldTrialsView const &field_trials)
MCAPI bool UpdateRecv(int crypto_suite, uchar const *key, uint64 len, ::std::vector< int > const &extension_ids)
MCAPI int GetSrtpOverhead() const
MCAPI bool SetSend(int crypto_suite, uchar const *key, uint64 len, ::std::vector< int > const &extension_ids)
MCAPI bool UnprotectRtp(void *p, int in_len, int *out_len)
Definition FieldTrialsView.h:7
Definition Alias.h:14
Definition srtp_event_data_t.h:5