LeviLamina
Loading...
Searching...
No Matches
SSLStreamAdapter.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/external/absl/AnyInvocable.h"
7#include "mc/external/rtc/SSLHandshakeError.h"
8#include "mc/external/rtc/SSLMode.h"
9#include "mc/external/rtc/SSLPeerCertificateDigestError.h"
10#include "mc/external/rtc/SSLProtocolVersion.h"
11#include "mc/external/rtc/SSLRole.h"
12#include "mc/external/rtc/StreamInterface.h"
13
14// auto generated forward declare list
15// clang-format off
16namespace rtc { class SSLCertChain; }
17namespace rtc { class SSLIdentity; }
18// clang-format on
19
20namespace rtc {
21
23public:
24 // member variables
25 // NOLINTBEGIN
27 // NOLINTEND
28
29public:
30 // prevent constructor by default
31 SSLStreamAdapter& operator=(SSLStreamAdapter const&);
34
35public:
36 // virtual functions
37 // NOLINTBEGIN
38 // vIndex: 0
39 virtual ~SSLStreamAdapter() /*override*/ = default;
40
41 // vIndex: 6
42 virtual void SetIdentity(::std::unique_ptr<::rtc::SSLIdentity>) = 0;
43
44 // vIndex: 7
45 virtual ::rtc::SSLIdentity* GetIdentityForTesting() const = 0;
46
47 // vIndex: 8
48 virtual void SetServerRole(::rtc::SSLRole) = 0;
49
50 // vIndex: 9
51 virtual void SetMode(::rtc::SSLMode) = 0;
52
53 // vIndex: 10
54 virtual void SetMaxProtocolVersion(::rtc::SSLProtocolVersion) = 0;
55
56 // vIndex: 11
57 virtual void SetInitialRetransmissionTimeout(int) = 0;
58
59 // vIndex: 12
60 virtual int StartSSL() = 0;
61
62 // vIndex: 13
63 virtual bool
64 SetPeerCertificateDigest(::std::string_view, uchar const*, uint64, ::rtc::SSLPeerCertificateDigestError*) = 0;
65
66 // vIndex: 14
67 virtual ::std::unique_ptr<::rtc::SSLCertChain> GetPeerSSLCertChain() const = 0;
68
69 // vIndex: 15
70 virtual bool GetSslCipherSuite(int*);
71
72 // vIndex: 16
73 virtual ::rtc::SSLProtocolVersion GetSslVersion() const = 0;
74
75 // vIndex: 17
76 virtual bool GetSslVersionBytes(int*) const = 0;
77
78 // vIndex: 18
79 virtual bool ExportKeyingMaterial(::std::string_view, uchar const*, uint64, bool, uchar*, uint64);
80
81 // vIndex: 19
82 virtual ushort GetPeerSignatureAlgorithm() const = 0;
83
84 // vIndex: 20
85 virtual bool SetDtlsSrtpCryptoSuites(::std::vector<int> const&);
86
87 // vIndex: 21
88 virtual bool GetDtlsSrtpCryptoSuite(int*);
89
90 // vIndex: 22
91 virtual bool IsTlsConnected() = 0;
92 // NOLINTEND
93
94public:
95 // static functions
96 // NOLINTBEGIN
97 MCAPI static ::std::unique_ptr<::rtc::SSLStreamAdapter>
98 Create(::std::unique_ptr<::rtc::StreamInterface>, ::absl::AnyInvocable<void(::rtc::SSLHandshakeError)>);
99
100 MCAPI static ::std::string SslCipherSuiteToName(int);
101 // NOLINTEND
102
103public:
104 // destructor thunk
105 // NOLINTBEGIN
106
107 // NOLINTEND
108
109public:
110 // virtual function thunks
111 // NOLINTBEGIN
112
113 // NOLINTEND
114
115public:
116 // vftables
117 // NOLINTBEGIN
118 MCAPI static void** $vftable();
119 // NOLINTEND
120};
121
122} // namespace rtc
Definition AnyInvocable.h:8
Definition SSLStreamAdapter.h:22
Definition StreamInterface.h:11
Definition Alias.h:14