GRPC Core  5.0.0
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
grpc_security_constants.h
Go to the documentation of this file.
1 /*
2  *
3  * Copyright 2016 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_GRPC_SECURITY_CONSTANTS_H
20 #define GRPC_GRPC_SECURITY_CONSTANTS_H
21 
22 #ifdef __cplusplus
23 extern "C" {
24 #endif
25 
26 #define GRPC_TRANSPORT_SECURITY_TYPE_PROPERTY_NAME "transport_security_type"
27 #define GRPC_SSL_TRANSPORT_SECURITY_TYPE "ssl"
28 
29 #define GRPC_X509_CN_PROPERTY_NAME "x509_common_name"
30 #define GRPC_X509_SAN_PROPERTY_NAME "x509_subject_alternative_name"
31 #define GRPC_X509_PEM_CERT_PROPERTY_NAME "x509_pem_cert"
32 
36 #define GRPC_DEFAULT_SSL_ROOTS_FILE_PATH_ENV_VAR \
37  "GRPC_DEFAULT_SSL_ROOTS_FILE_PATH"
38 
42 #define GRPC_GOOGLE_CREDENTIALS_ENV_VAR "GOOGLE_APPLICATION_CREDENTIALS"
43 
45 typedef enum {
50 
52 typedef enum {
57 
58 typedef enum {
101 
102 #ifdef __cplusplus
103 }
104 #endif
105 
106 #endif /* GRPC_GRPC_SECURITY_CONSTANTS_H */
grpc_ssl_certificate_config_reload_status
Callback results for dynamically loading a SSL certificate config.
Definition: grpc_security_constants.h:52
Server requests client certificate but enforces that the client presents a certificate.
Definition: grpc_security_constants.h:99
Definition: grpc_security_constants.h:55
Definition: grpc_security_constants.h:47
Definition: grpc_security_constants.h:53
Do not try fallback options.
Definition: grpc_security_constants.h:48
grpc_ssl_client_certificate_request_type
Definition: grpc_security_constants.h:58
Server requests client certificate but enforces that the client presents a certificate.
Definition: grpc_security_constants.h:90
Definition: grpc_security_constants.h:54
grpc_ssl_roots_override_result
Results for the SSL roots override callback.
Definition: grpc_security_constants.h:45
Definition: grpc_security_constants.h:46
Server requests client certificate but does not enforce that the client presents a certificate...
Definition: grpc_security_constants.h:81
Server requests client certificate but does not enforce that the client presents a certificate...
Definition: grpc_security_constants.h:71
Server does not request client certificate.
Definition: grpc_security_constants.h:62