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
14public:
15 // member variables
16 // NOLINTBEGIN
27 // NOLINTEND
28
29public:
30 // prevent constructor by default
31 SrtpSession& operator=(SrtpSession const&);
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 void HandleEvent(::srtp_event_data_t const* ev);
48
49 MCNAPI bool IsExternalAuthEnabled() const;
50
51 MCNAPI bool ProtectRtcp(void* p, int in_len, int max_len, int* out_len);
52
53 MCNAPI bool ProtectRtp(void* p, int in_len, int max_len, int* out_len);
54
55 MCNAPI bool RemoveSsrcFromSession(uint ssrc);
56
57 MCNAPI bool
58 SetKey(int type, int crypto_suite, uchar const* key, uint64 len, ::std::vector<int> const& extension_ids);
59
60 MCNAPI bool SetRecv(int crypto_suite, uchar const* key, uint64 len, ::std::vector<int> const& extension_ids);
61
62 MCNAPI bool SetSend(int crypto_suite, uchar const* key, uint64 len, ::std::vector<int> const& extension_ids);
63
64 MCNAPI explicit SrtpSession(::webrtc::FieldTrialsView const& field_trials);
65
66 MCNAPI bool UnprotectRtcp(void* p, int in_len, int* out_len);
67
68 MCNAPI bool UnprotectRtp(void* p, int in_len, int* out_len);
69
70 MCNAPI bool
71 UpdateKey(int type, int crypto_suite, uchar const* key, uint64 len, ::std::vector<int> const& extension_ids);
72
73 MCNAPI bool UpdateRecv(int crypto_suite, uchar const* key, uint64 len, ::std::vector<int> const& extension_ids);
74
75 MCNAPI bool UpdateSend(int crypto_suite, uchar const* key, uint64 len, ::std::vector<int> const& extension_ids);
76
77 MCNAPI ~SrtpSession();
78 // NOLINTEND
79
80public:
81 // static functions
82 // NOLINTBEGIN
83 MCNAPI static void HandleEventThunk(::srtp_event_data_t* ev);
84 // NOLINTEND
85
86public:
87 // constructor thunks
88 // NOLINTBEGIN
89 MCNAPI void* $ctor(::webrtc::FieldTrialsView const& field_trials);
90 // NOLINTEND
91
92public:
93 // destructor thunk
94 // NOLINTBEGIN
95 MCNAPI void $dtor();
96 // NOLINTEND
97};
98
99} // namespace cricket
Definition SrtpSession.h:13
MCAPI void $dtor()
MCAPI void EnableExternalAuth()
MCAPI bool RemoveSsrcFromSession(uint ssrc)
MCAPI bool UpdateKey(int type, int crypto_suite, uchar const *key, uint64 len, ::std::vector< int > const &extension_ids)
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)
MCAPI bool IsExternalAuthEnabled() const
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 void HandleEvent(::srtp_event_data_t const *ev)
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