Home
last modified time | relevance | path

Searched refs:pem_root_certs (Results 1 – 25 of 35) sorted by relevance

12

/third_party/grpc/src/core/lib/security/credentials/ssl/
Dssl_credentials.cc48 const char* pem_root_certs, grpc_ssl_pem_key_cert_pair* pem_key_cert_pair, in grpc_ssl_credentials() argument
51 build_config(pem_root_certs, pem_key_cert_pair, verify_options); in grpc_ssl_credentials()
55 gpr_free(config_.pem_root_certs); in ~grpc_ssl_credentials()
96 const char* pem_root_certs, grpc_ssl_pem_key_cert_pair* pem_key_cert_pair, in build_config() argument
98 config_.pem_root_certs = gpr_strdup(pem_root_certs); in build_config()
133 const char* pem_root_certs, grpc_ssl_pem_key_cert_pair* pem_key_cert_pair, in grpc_ssl_credentials_create() argument
140 4, (pem_root_certs, pem_key_cert_pair, verify_options, reserved)); in grpc_ssl_credentials_create()
144 pem_root_certs, pem_key_cert_pair, in grpc_ssl_credentials_create()
149 const char* pem_root_certs, grpc_ssl_pem_key_cert_pair* pem_key_cert_pair, in grpc_ssl_credentials_create_ex() argument
156 4, (pem_root_certs, pem_key_cert_pair, verify_options, reserved)); in grpc_ssl_credentials_create_ex()
[all …]
Dssl_credentials.h29 grpc_ssl_credentials(const char* pem_root_certs,
47 void build_config(const char* pem_root_certs,
57 char* pem_root_certs = nullptr; member
94 const char* pem_root_certs,
/third_party/grpc/src/ruby/ext/grpc/
Drb_channel_credentials.c38 static char* pem_root_certs = NULL; variable
147 VALUE pem_root_certs = Qnil; in grpc_rb_channel_credentials_init() local
157 rb_scan_args(argc, argv, "03", &pem_root_certs, &pem_private_key, in grpc_rb_channel_credentials_init()
162 if (pem_root_certs != Qnil) { in grpc_rb_channel_credentials_init()
163 pem_root_certs_cstr = RSTRING_PTR(pem_root_certs); in grpc_rb_channel_credentials_init()
191 rb_ivar_set(self, id_pem_root_certs, pem_root_certs); in grpc_rb_channel_credentials_init()
227 *pem_root_certs_ptr = pem_root_certs; in get_ssl_roots_override()
228 if (pem_root_certs == NULL) { in get_ssl_roots_override()
239 pem_root_certs = gpr_malloc((length + 1) * sizeof(char)); in grpc_rb_set_default_roots_pem()
240 memcpy(pem_root_certs, roots_ptr, length + 1); in grpc_rb_set_default_roots_pem()
Drb_server_credentials.c128 static VALUE grpc_rb_server_credentials_init(VALUE self, VALUE pem_root_certs, in grpc_rb_server_credentials_init() argument
195 if (pem_root_certs == Qnil) { in grpc_rb_server_credentials_init()
199 creds = grpc_ssl_server_credentials_create_ex(RSTRING_PTR(pem_root_certs), in grpc_rb_server_credentials_init()
212 rb_ivar_set(self, id_pem_root_certs, pem_root_certs); in grpc_rb_server_credentials_init()
Drb_grpc_imports.generated.h356 typedef grpc_channel_credentials*(*grpc_ssl_credentials_create_type)(const char* pem_root_certs, gr…
359 typedef grpc_channel_credentials*(*grpc_ssl_credentials_create_ex_type)(const char* pem_root_certs,…
407 …config*(*grpc_ssl_server_certificate_config_create_type)(const char* pem_root_certs, const grpc_ss…
413 …r_credentials*(*grpc_ssl_server_credentials_create_type)(const char* pem_root_certs, grpc_ssl_pem_…
416 …redentials*(*grpc_ssl_server_credentials_create_ex_type)(const char* pem_root_certs, grpc_ssl_pem_…
/third_party/grpc/src/core/lib/security/security_connector/ssl/
Dssl_security_connector.cc91 const grpc_ssl_config* config, const char* pem_root_certs, in InitializeHandshakerFactory() argument
99 GPR_DEBUG_ASSERT(pem_root_certs != nullptr); in InitializeHandshakerFactory()
100 options.pem_root_certs = pem_root_certs; in InitializeHandshakerFactory()
247 server_credentials->config().pem_root_certs; in InitializeHandshakerFactory()
354 GPR_DEBUG_ASSERT(config->pem_root_certs != nullptr); in try_replace_server_handshaker_factory()
359 options.pem_client_root_certs = config->pem_root_certs; in try_replace_server_handshaker_factory()
407 const char* pem_root_certs; in grpc_ssl_channel_security_connector_create() local
409 if (config->pem_root_certs == nullptr) { in grpc_ssl_channel_security_connector_create()
411 pem_root_certs = grpc_core::DefaultSslRootStore::GetPemRootCerts(); in grpc_ssl_channel_security_connector_create()
412 if (pem_root_certs == nullptr) { in grpc_ssl_channel_security_connector_create()
[all …]
Dssl_security_connector.h34 char* pem_root_certs; member
65 char* pem_root_certs = nullptr; member
/third_party/grpc/src/core/lib/http/
Dhttpcli_security_connector.cc62 tsi_result InitHandshakerFactory(const char* pem_root_certs, in InitHandshakerFactory() argument
65 options.pem_root_certs = pem_root_certs; in InitHandshakerFactory()
137 const char* pem_root_certs, const tsi_ssl_root_certs_store* root_store, in httpcli_ssl_channel_security_connector_create() argument
139 if (secure_peer_name != nullptr && pem_root_certs == nullptr) { in httpcli_ssl_channel_security_connector_create()
147 tsi_result result = c->InitHandshakerFactory(pem_root_certs, root_store); in httpcli_ssl_channel_security_connector_create()
184 const char* pem_root_certs = in ssl_handshake() local
198 pem_root_certs, root_store, host, in ssl_handshake()
/third_party/grpc/src/core/lib/security/credentials/tls/
Dgrpc_tls_certificate_distributor.cc28 const std::string& cert_name, absl::optional<std::string> pem_root_certs, in SetKeyMaterials() argument
30 GPR_ASSERT(pem_root_certs.has_value() || pem_key_cert_pairs.has_value()); in SetKeyMaterials()
33 if (pem_root_certs.has_value()) { in SetKeyMaterials()
54 pem_root_certs, std::move(pem_key_cert_pairs_to_report)); in SetKeyMaterials()
56 cert_info.pem_root_certs = std::move(*pem_root_certs); in SetKeyMaterials()
67 if (pem_root_certs.has_value() && in SetKeyMaterials()
75 if (!root_cert_info.pem_root_certs.empty()) { in SetKeyMaterials()
76 pem_root_certs_to_report = root_cert_info.pem_root_certs; in SetKeyMaterials()
91 !it->second.pem_root_certs.empty(); in HasRootCerts()
207 if (!cert_info.pem_root_certs.empty()) { in WatchTlsCertificates()
[all …]
Dgrpc_tls_certificate_distributor.h81 const std::string& cert_name, absl::optional<std::string> pem_root_certs,
168 std::string pem_root_certs; member
/third_party/grpc/src/php/ext/grpc/
Dchannel_credentials.c41 char **pem_root_certs) { in get_ssl_roots_override() argument
43 *pem_root_certs = NULL; in get_ssl_roots_override()
46 *pem_root_certs = gpr_strdup(default_pem_root_certs); in get_ssl_roots_override()
150 char *pem_root_certs = NULL; in PHP_METHOD() local
163 &pem_root_certs, &root_certs_length, in PHP_METHOD()
176 strcpy(hashkey, pem_root_certs); in PHP_METHOD()
186 pem_root_certs, in PHP_METHOD()
292 ZEND_ARG_INFO(0, pem_root_certs)
Dserver_credentials.c70 char *pem_root_certs = 0; in PHP_METHOD() local
79 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s!ss", &pem_root_certs, in PHP_METHOD()
90 pem_root_certs, &pem_key_cert_pair, 1, in PHP_METHOD()
97 ZEND_ARG_INFO(0, pem_root_certs)
/third_party/grpc/src/core/lib/security/security_connector/
Dssl_utils.cc391 tsi_ssl_pem_key_cert_pair* pem_key_cert_pair, const char* pem_root_certs, in grpc_ssl_tsi_client_handshaker_factory_init() argument
397 if (pem_root_certs == nullptr) { in grpc_ssl_tsi_client_handshaker_factory_init()
409 root_certs = pem_root_certs; in grpc_ssl_tsi_client_handshaker_factory_init()
417 options.pem_root_certs = root_certs; in grpc_ssl_tsi_client_handshaker_factory_init()
444 const char* pem_root_certs, in grpc_ssl_tsi_server_handshaker_factory_init() argument
454 options.pem_client_root_certs = pem_root_certs; in grpc_ssl_tsi_server_handshaker_factory_init()
550 char* pem_root_certs = nullptr; in ComputePemRootCerts() local
551 ovrd_res = ssl_roots_override_cb(&pem_root_certs); in ComputePemRootCerts()
553 GPR_ASSERT(pem_root_certs != nullptr); in ComputePemRootCerts()
555 pem_root_certs, in ComputePemRootCerts()
[all …]
Dssl_utils.h91 tsi_ssl_pem_key_cert_pair* key_cert_pair, const char* pem_root_certs,
98 const char* pem_root_certs,
/third_party/grpc/src/python/grpcio/grpc/_cython/_cygrpc/
Dcredentials.pyx.pxi223 cdef const char* _get_c_pem_root_certs(pem_root_certs): argument
224 if pem_root_certs is None:
227 return pem_root_certs
246 def server_credentials_ssl(pem_root_certs, pem_key_cert_pairs, argument
248 pem_root_certs = str_to_bytes(pem_root_certs)
251 credentials.references.append(pem_root_certs)
253 cdef const char * c_pem_root_certs = _get_c_pem_root_certs(pem_root_certs)
271 def server_certificate_config_ssl(pem_root_certs, pem_key_cert_pairs): argument
272 pem_root_certs = str_to_bytes(pem_root_certs)
275 cert_config.references.append(pem_root_certs)
[all …]
Dsecurity.pyx.pxi21 char **pem_root_certs) nogil:
27 pem_root_certs[0] = <char *>gpr_malloc(len(temporary_pem_root_certs) + 1)
29 pem_root_certs[0], <char *>temporary_pem_root_certs,
31 pem_root_certs[0][len(temporary_pem_root_certs)] = '\0'
Dsecurity.pxd.pxi17 char **pem_root_certs) nogil
/third_party/grpc/include/grpc/
Dgrpc_security.h173 char** pem_root_certs);
267 const char* pem_root_certs, grpc_ssl_pem_key_cert_pair* pem_key_cert_pair,
299 const char* pem_root_certs, grpc_ssl_pem_key_cert_pair* pem_key_cert_pair,
524 const char* pem_root_certs,
555 const char* pem_root_certs, grpc_ssl_pem_key_cert_pair* pem_key_cert_pairs,
563 const char* pem_root_certs, grpc_ssl_pem_key_cert_pair* pem_key_cert_pairs,
/third_party/grpc/src/core/tsi/
Dssl_transport_security.h119 const char* pem_root_certs, const char* cipher_suites,
130 const char* pem_root_certs; member
162 pem_root_certs(nullptr), in tsi_ssl_client_handshaker_options()
/third_party/grpc/src/core/lib/security/security_connector/tls/
Dtls_security_connector.cc385 std::string pem_root_certs; in UpdateHandshakerFactoryLocked() local
389 pem_root_certs = std::string(*pem_root_certs_); in UpdateHandshakerFactoryLocked()
398 pem_root_certs.empty() || use_default_roots ? nullptr in UpdateHandshakerFactoryLocked()
399 : pem_root_certs.c_str(), in UpdateHandshakerFactoryLocked()
645 std::string pem_root_certs; in UpdateHandshakerFactoryLocked() local
649 pem_root_certs = std::string(*pem_root_certs_); in UpdateHandshakerFactoryLocked()
656 pem_root_certs.empty() ? nullptr : pem_root_certs.c_str(), in UpdateHandshakerFactoryLocked()
/third_party/grpc/test/cpp/client/
Dcredentials_test.cc285 EXPECT_STREQ("pem_root_certs", c_config->pem_root_certs()); in TEST_F()
299 EXPECT_STREQ(config->pem_root_certs().c_str(), "pem_root_certs"); in TEST_F()
324 EXPECT_STREQ(c_arg->key_materials_config->pem_root_certs(), "pem_root_certs"); in TEST_F()
359 EXPECT_STREQ(c_arg->key_materials_config->pem_root_certs(), in TEST_F()
417 EXPECT_STREQ(c_arg.key_materials_config->pem_root_certs(), in TEST_F()
611 EXPECT_STREQ(c_key_materials_config->pem_root_certs(), "pem_root_certs"); in TEST_F()
626 EXPECT_STREQ(c_credential_reload_arg.key_materials_config->pem_root_certs(), in TEST_F()
/third_party/grpc/src/cpp/server/
Dsecure_server_credentials.cc117 options.pem_root_certs.empty() ? nullptr : options.pem_root_certs.c_str(), in SslServerCredentials()
/third_party/grpc/src/csharp/ext/
Dgrpc_csharp_ext.c998 char** pem_root_certs) { in override_ssl_roots_handler() argument
1000 *pem_root_certs = NULL; in override_ssl_roots_handler()
1003 *pem_root_certs = gpr_strdup(default_pem_root_certs); in override_ssl_roots_handler()
1008 grpcsharp_override_default_ssl_roots(const char* pem_root_certs) { in grpcsharp_override_default_ssl_roots() argument
1015 default_pem_root_certs = gpr_strdup(pem_root_certs); in grpcsharp_override_default_ssl_roots()
1031 grpcsharp_ssl_credentials_create(const char* pem_root_certs, in grpcsharp_ssl_credentials_create() argument
1058 return grpc_ssl_credentials_create(pem_root_certs, key_cert_pair_ptr, in grpcsharp_ssl_credentials_create()
1080 const char* pem_root_certs, const char** key_cert_pair_cert_chain_array, in grpcsharp_ssl_server_credentials_create() argument
1097 creds = grpc_ssl_server_credentials_create_ex(pem_root_certs, key_cert_pairs, in grpcsharp_ssl_server_credentials_create()
/third_party/grpc/include/grpcpp/security/
Dserver_credentials.h51 std::string pem_root_certs; member
/third_party/grpc/test/core/security/
Dgrpc_tls_credentials_options_test.cc76 EXPECT_STREQ(config->pem_root_certs(), ca_cert); in TEST()

12