GRPC C++  1.26.0
tls_credentials_options_util.h
Go to the documentation of this file.
1 /*
2  *
3  * Copyright 2019 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_INTERNAL_CPP_COMMON_TLS_CREDENTIALS_OPTIONS_UTIL_H
20 #define GRPC_INTERNAL_CPP_COMMON_TLS_CREDENTIALS_OPTIONS_UTIL_H
21 
22 #include <grpc/grpc_security.h>
24 
25 #include "src/core/lib/security/credentials/tls/grpc_tls_credentials_options.h"
26 
27 namespace grpc_impl {
28 namespace experimental {
29 
31 grpc_tls_key_materials_config* ConvertToCKeyMaterialsConfig(
32  const std::shared_ptr<TlsKeyMaterialsConfig>& config);
33 
37 int TlsCredentialReloadConfigCSchedule(void* config_user_data,
39 
40 void TlsCredentialReloadConfigCCancel(void* config_user_data,
42 
44  void* config_user_data, grpc_tls_server_authorization_check_arg* arg);
45 
47  void* config_user_data, grpc_tls_server_authorization_check_arg* arg);
48 
51 void TlsCredentialReloadArgDestroyContext(void* context);
52 
54 
55 } // namespace experimental
56 } // namespace grpc_impl
57 
58 #endif // GRPC_INTERNAL_CPP_COMMON_TLS_CREDENTIALS_OPTIONS_UTIL_H
void TlsCredentialReloadArgDestroyContext(void *context)
The following 2 functions cleanup data created in the above C schedule functions.
Definition: tls_credentials_options_util.cc:93
int TlsServerAuthorizationCheckConfigCSchedule(void *, grpc_tls_server_authorization_check_arg *arg)
The C schedule and cancel functions for the server authorization check config.
Definition: tls_credentials_options_util.cc:104
void TlsCredentialReloadConfigCCancel(void *, grpc_tls_credential_reload_arg *arg)
Definition: tls_credentials_options_util.cc:75
grpc_tls_key_materials_config * ConvertToCKeyMaterialsConfig(const std::shared_ptr< TlsKeyMaterialsConfig > &config)
Converts the Cpp key materials to C key materials; this allocates memory for the C key materials.
Definition: tls_credentials_options_util.cc:31
int TlsCredentialReloadConfigCSchedule(void *, grpc_tls_credential_reload_arg *arg)
The C schedule and cancel functions for the credential reload config.
Definition: tls_credentials_options_util.cc:61
void TlsServerAuthorizationCheckArgDestroyContext(void *context)
Definition: tls_credentials_options_util.cc:140
void TlsServerAuthorizationCheckConfigCCancel(void *, grpc_tls_server_authorization_check_arg *arg)
Definition: tls_credentials_options_util.cc:120
An Alarm posts the user-provided tag to its associated completion queue or invokes the user-provided ...
Definition: alarm_impl.h:33
struct grpc_tls_server_authorization_check_arg grpc_tls_server_authorization_check_arg
Definition: tls_credentials_options.h:33
struct grpc_tls_credential_reload_arg grpc_tls_credential_reload_arg
Definition: tls_credentials_options.h:30