Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
OpenSSLIdentity.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/external/webrtc/OpenSSLCertificate.h"
7#include "mc/external/webrtc/SSLIdentity.h"
8
9// auto generated forward declare list
10// clang-format off
11namespace webrtc { class KeyParams; }
12namespace webrtc { class OpenSSLKeyPair; }
13namespace webrtc { class SSLCertChain; }
14namespace webrtc { struct SSLIdentityParams; }
15// clang-format on
16
17namespace webrtc {
18
19class OpenSSLIdentity : public ::webrtc::SSLIdentity {
20public:
21 // member variables
22 // NOLINTBEGIN
25 // NOLINTEND
26
27public:
28 // prevent constructor by default
29 OpenSSLIdentity& operator=(OpenSSLIdentity const&);
30 OpenSSLIdentity(OpenSSLIdentity const&);
31 OpenSSLIdentity();
32
33public:
34 // virtual functions
35 // NOLINTBEGIN
36 virtual ~OpenSSLIdentity() /*override*/;
37
38 virtual ::webrtc::OpenSSLCertificate const& certificate() const /*override*/;
39
40 virtual ::webrtc::SSLCertChain const& cert_chain() const /*override*/;
41
42 virtual ::std::string PrivateKeyToPEMString() const /*override*/;
43
44 virtual ::std::string PublicKeyToPEMString() const /*override*/;
45
46 virtual ::std::unique_ptr<::webrtc::SSLIdentity> CloneInternal() const /*override*/;
47 // NOLINTEND
48
49public:
50 // member functions
51 // NOLINTBEGIN
52 MCNAPI bool ConfigureIdentity(::ssl_ctx_st* ctx);
53
55 ::std::unique_ptr<::webrtc::OpenSSLKeyPair> key_pair,
56 ::std::unique_ptr<::webrtc::SSLCertChain> cert_chain
57 );
58
60 ::std::unique_ptr<::webrtc::OpenSSLKeyPair> key_pair,
61 ::std::unique_ptr<::webrtc::OpenSSLCertificate> certificate
62 );
63 // NOLINTEND
64
65public:
66 // static functions
67 // NOLINTBEGIN
68 MCNAPI static ::std::unique_ptr<::webrtc::OpenSSLIdentity>
70
71 MCNAPI static ::std::unique_ptr<::webrtc::OpenSSLIdentity> CreateWithExpiration(
72 ::std::string_view common_name,
73 ::webrtc::KeyParams const& key_params,
74 int64 certificate_lifetime
75 );
76 // NOLINTEND
77
78public:
79 // constructor thunks
80 // NOLINTBEGIN
81 MCNAPI void*
82 $ctor(::std::unique_ptr<::webrtc::OpenSSLKeyPair> key_pair, ::std::unique_ptr<::webrtc::SSLCertChain> cert_chain);
83
84 MCNAPI void* $ctor(
85 ::std::unique_ptr<::webrtc::OpenSSLKeyPair> key_pair,
86 ::std::unique_ptr<::webrtc::OpenSSLCertificate> certificate
87 );
88 // NOLINTEND
89
90public:
91 // destructor thunk
92 // NOLINTBEGIN
93 MCNAPI void $dtor();
94 // NOLINTEND
95
96public:
97 // virtual function thunks
98 // NOLINTBEGIN
99 MCNAPI ::webrtc::OpenSSLCertificate const& $certificate() const;
100
101 MCNAPI ::webrtc::SSLCertChain const& $cert_chain() const;
102
103 MCNAPI ::std::string $PrivateKeyToPEMString() const;
104
105 MCNAPI ::std::string $PublicKeyToPEMString() const;
106
107 MCNAPI ::std::unique_ptr<::webrtc::SSLIdentity> $CloneInternal() const;
108
109
110 // NOLINTEND
111
112public:
113 // vftables
114 // NOLINTBEGIN
115 MCNAPI static void** $vftable();
116 // NOLINTEND
117};
118
119} // namespace webrtc
Definition KeyParams.h:16
MCAPI bool ConfigureIdentity(::ssl_ctx_st *ctx)
MCAPI OpenSSLIdentity(::std::unique_ptr<::webrtc::OpenSSLKeyPair > key_pair, ::std::unique_ptr<::webrtc::OpenSSLCertificate > certificate)
MCAPI ::std::unique_ptr<::webrtc::SSLIdentity > $CloneInternal() const
static MCAPI ::std::unique_ptr<::webrtc::OpenSSLIdentity > CreateInternal(::webrtc::SSLIdentityParams const &params)
MCAPI void * $ctor(::std::unique_ptr<::webrtc::OpenSSLKeyPair > key_pair, ::std::unique_ptr<::webrtc::SSLCertChain > cert_chain)
static MCAPI ::std::unique_ptr<::webrtc::OpenSSLIdentity > CreateWithExpiration(::std::string_view common_name, ::webrtc::KeyParams const &key_params, int64 certificate_lifetime)
MCAPI::webrtc::OpenSSLCertificate const & $certificate() const
static MCAPI void ** $vftable()
MCAPI::webrtc::SSLCertChain const & $cert_chain() const
MCAPI::std::string $PublicKeyToPEMString() const
MCAPI void * $ctor(::std::unique_ptr<::webrtc::OpenSSLKeyPair > key_pair, ::std::unique_ptr<::webrtc::OpenSSLCertificate > certificate)
MCAPI::std::string $PrivateKeyToPEMString() const
MCAPI OpenSSLIdentity(::std::unique_ptr<::webrtc::OpenSSLKeyPair > key_pair, ::std::unique_ptr<::webrtc::SSLCertChain > cert_chain)
Definition OpenSSLKeyPair.h:12
Definition SSLCertChain.h:13
Definition SSLIdentity.h:14
Definition ctx.h:5
Definition Alias.h:14
Definition SSLIdentityParams.h:7