LeviLamina
Loading...
Searching...
No Matches
DtlsTransportInternal.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/external/rtc/PacketTransportInternal.h"
7#include "mc/external/rtc/SSLRole.h"
8#include "mc/external/webrtc/DtlsTransportState.h"
9#include "mc/external/webrtc/scoped_refptr.h"
10
11// auto generated forward declare list
12// clang-format off
13namespace cricket { class IceTransportInternal; }
14namespace rtc { class RTCCertificate; }
15namespace rtc { class SSLCertChain; }
16namespace webrtc { class RTCError; }
17// clang-format on
18
19namespace cricket {
20
21class DtlsTransportInternal : public ::rtc::PacketTransportInternal {
22public:
23 // member variables
24 // NOLINTBEGIN
27 // NOLINTEND
28
29public:
30 // prevent constructor by default
31 DtlsTransportInternal& operator=(DtlsTransportInternal const&);
32 DtlsTransportInternal(DtlsTransportInternal const&);
33
34public:
35 // virtual functions
36 // NOLINTBEGIN
37 virtual ~DtlsTransportInternal() /*override*/;
38
39 virtual ::webrtc::DtlsTransportState dtls_state() const = 0;
40
41 virtual int component() const = 0;
42
43 virtual bool IsDtlsActive() const = 0;
44
45 virtual bool GetDtlsRole(::rtc::SSLRole* role) const = 0;
46
47 virtual bool SetDtlsRole(::rtc::SSLRole role) = 0;
48
49 virtual bool GetSslVersionBytes(int* version) const = 0;
50
51 virtual bool GetSrtpCryptoSuite(int* cipher) = 0;
52
53 virtual bool GetSslCipherSuite(int* cipher) = 0;
54
55 virtual ushort GetSslPeerSignatureAlgorithm() const = 0;
56
57 virtual ::webrtc::scoped_refptr<::rtc::RTCCertificate> GetLocalCertificate() const = 0;
58
59 virtual bool SetLocalCertificate(::webrtc::scoped_refptr<::rtc::RTCCertificate> const& certificate) = 0;
60
61 virtual ::std::unique_ptr<::rtc::SSLCertChain> GetRemoteSSLCertChain() const = 0;
62
63 virtual bool ExportKeyingMaterial(
64 ::std::string_view label,
65 uchar const* context,
66 uint64 context_len,
67 bool use_context,
68 uchar* result,
69 uint64 result_len
70 ) = 0;
71
72 virtual bool SetRemoteFingerprint(::std::string_view digest_alg, uchar const* digest, uint64 digest_len) = 0;
73
74 virtual ::webrtc::RTCError SetRemoteParameters(
75 ::std::string_view digest_alg,
76 uchar const* digest,
77 uint64 digest_len,
78 ::std::optional<::rtc::SSLRole> role
79 ) = 0;
80
81 virtual ::cricket::IceTransportInternal* ice_transport() = 0;
82 // NOLINTEND
83
84public:
85 // member functions
86 // NOLINTBEGIN
88 // NOLINTEND
89
90public:
91 // constructor thunks
92 // NOLINTBEGIN
93 MCNAPI void* $ctor();
94 // NOLINTEND
95
96public:
97 // destructor thunk
98 // NOLINTBEGIN
99 MCNAPI void $dtor();
100 // NOLINTEND
101
102public:
103 // virtual function thunks
104 // NOLINTBEGIN
105
106 // NOLINTEND
107
108public:
109 // vftables
110 // NOLINTBEGIN
111 MCNAPI static void** $vftable();
112 // NOLINTEND
113};
114
115} // namespace cricket
static MCAPI void ** $vftable()
Definition IceTransportInternal.h:26
Definition PacketTransportInternal.h:20
Definition RTCCertificate.h:18
Definition SSLCertChain.h:13
Definition RTCError.h:10
Definition scoped_refptr.h:8
Definition context.h:5
Definition Alias.h:14