Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
y
z
Enumerations
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
z
Classes
Class List
Class Hierarchy
Class Members
All
:
[
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
[
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
y
Enumerations
a
b
c
d
e
f
h
i
k
l
m
n
o
p
r
s
t
u
v
w
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Properties
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
Related Functions
:
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
z
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerations
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
grpc
src
core
lib
security
credentials
tls
tls_credentials.h
Go to the documentation of this file.
1
/*
2
*
3
* Copyright 2018 gRPC authors.
4
*
5
* Licensed under the Apache License, Version 2.0 (the "License");
6
* you may not use this file except in compliance with the License.
7
* You may obtain a copy of the License at
8
*
9
* http://www.apache.org/licenses/LICENSE-2.0
10
*
11
* Unless required by applicable law or agreed to in writing, software
12
* distributed under the License is distributed on an "AS IS" BASIS,
13
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
* See the License for the specific language governing permissions and
15
* limitations under the License.
16
*
17
*/
18
19
#ifndef GRPC_CORE_LIB_SECURITY_CREDENTIALS_TLS_TLS_CREDENTIALS_H
20
#define GRPC_CORE_LIB_SECURITY_CREDENTIALS_TLS_TLS_CREDENTIALS_H
21
22
#include <
grpc/support/port_platform.h
>
23
24
#include <
grpc/grpc.h
>
25
#include <
grpc/grpc_security.h
>
26
#include <
grpc/impl/codegen/grpc_types.h
>
27
28
#include "
src/core/lib/gprpp/ref_counted_ptr.h
"
29
#include "
src/core/lib/gprpp/unique_type_name.h
"
30
#include "
src/core/lib/security/credentials/credentials.h
"
31
#include "
src/core/lib/security/security_connector/security_connector.h
"
32
33
class
TlsCredentials
final :
public
grpc_channel_credentials
{
34
public
:
35
explicit
TlsCredentials
(
36
grpc_core::RefCountedPtr<grpc_tls_credentials_options>
options
);
37
~TlsCredentials
()
override
;
38
39
grpc_core::RefCountedPtr<grpc_channel_security_connector>
40
create_security_connector
(
41
grpc_core::RefCountedPtr<grpc_call_credentials>
call_creds
,
42
const
char
* target_name,
const
grpc_channel_args
*
args
,
43
grpc_channel_args
** new_args)
override
;
44
45
grpc_core::UniqueTypeName
type
()
const override
;
46
47
grpc_tls_credentials_options
*
options
()
const
{
return
options_
.
get
(); }
48
49
private
:
50
int
cmp_impl
(
const
grpc_channel_credentials
* other)
const override
;
51
52
grpc_core::RefCountedPtr<grpc_tls_credentials_options>
options_
;
53
};
54
55
class
TlsServerCredentials
final :
public
grpc_server_credentials
{
56
public
:
57
explicit
TlsServerCredentials
(
58
grpc_core::RefCountedPtr<grpc_tls_credentials_options>
options
);
59
~TlsServerCredentials
()
override
;
60
61
grpc_core::RefCountedPtr<grpc_server_security_connector>
62
create_security_connector
(
const
grpc_channel_args
*
/* args */
)
override
;
63
64
grpc_core::UniqueTypeName
type
()
const override
;
65
66
grpc_tls_credentials_options
*
options
()
const
{
return
options_
.
get
(); }
67
68
private
:
69
grpc_core::RefCountedPtr<grpc_tls_credentials_options>
options_
;
70
};
71
72
#endif
/* GRPC_CORE_LIB_SECURITY_CREDENTIALS_TLS_TLS_CREDENTIALS_H */
TlsCredentials
Definition:
tls_credentials.h:33
TlsServerCredentials::options
grpc_tls_credentials_options * options() const
Definition:
tls_credentials.h:66
grpc_core::RefCountedPtr::get
T * get() const
Definition:
ref_counted_ptr.h:146
TlsServerCredentials::type
grpc_core::UniqueTypeName type() const override
Definition:
tls_credentials.cc:139
grpc_security.h
TlsServerCredentials::create_security_connector
grpc_core::RefCountedPtr< grpc_server_security_connector > create_security_connector(const grpc_channel_args *) override
Definition:
tls_credentials.cc:133
credentials.h
grpc_channel_args
Definition:
grpc_types.h:132
grpc_types.h
TlsServerCredentials::TlsServerCredentials
TlsServerCredentials(grpc_core::RefCountedPtr< grpc_tls_credentials_options > options)
Definition:
tls_credentials.cc:126
asyncio_get_stats.args
args
Definition:
asyncio_get_stats.py:40
TlsServerCredentials::options_
grpc_core::RefCountedPtr< grpc_tls_credentials_options > options_
Definition:
tls_credentials.h:69
grpc_core::RefCountedPtr< grpc_tls_credentials_options >
grpc.h
security_connector.h
call_creds
void call_creds(grpc_end2end_test_config config)
Definition:
call_creds.cc:523
TlsServerCredentials::~TlsServerCredentials
~TlsServerCredentials() override
Definition:
tls_credentials.cc:130
TlsCredentials::create_security_connector
grpc_core::RefCountedPtr< grpc_channel_security_connector > create_security_connector(grpc_core::RefCountedPtr< grpc_call_credentials > call_creds, const char *target_name, const grpc_channel_args *args, grpc_channel_args **new_args) override
Definition:
tls_credentials.cc:81
TlsCredentials::TlsCredentials
TlsCredentials(grpc_core::RefCountedPtr< grpc_tls_credentials_options > options)
Definition:
tls_credentials.cc:74
grpc_server_credentials
Definition:
src/core/lib/security/credentials/credentials.h:259
TlsCredentials::type
grpc_core::UniqueTypeName type() const override
Definition:
tls_credentials.cc:114
grpc_core::UniqueTypeName
Definition:
unique_type_name.h:56
grpc_tls_credentials_options
Definition:
grpc_tls_credentials_options.h:39
TlsCredentials::cmp_impl
int cmp_impl(const grpc_channel_credentials *other) const override
Definition:
tls_credentials.cc:119
unique_type_name.h
ref_counted_ptr.h
TlsCredentials::~TlsCredentials
~TlsCredentials() override
Definition:
tls_credentials.cc:78
TlsCredentials::options_
grpc_core::RefCountedPtr< grpc_tls_credentials_options > options_
Definition:
tls_credentials.h:52
TlsCredentials::options
grpc_tls_credentials_options * options() const
Definition:
tls_credentials.h:47
grpc_channel_credentials
Definition:
src/core/lib/security/credentials/credentials.h:96
TlsServerCredentials
Definition:
tls_credentials.h:55
port_platform.h
grpc
Author(s):
autogenerated on Thu Mar 13 2025 03:01:40