Home
last modified time | relevance | path

Searched refs:channel_creds (Results 1 – 25 of 50) sorted by relevance

12

/external/grpc-grpc/test/cpp/util/
Dcreate_test_channel.cc75 std::shared_ptr<ChannelCredentials> channel_creds; in CreateTestChannel() local
81 channel_creds = testing::GetCredentialsProvider()->GetChannelCredentials( in CreateTestChannel()
88 channel_creds = testing::GetCredentialsProvider()->GetChannelCredentials( in CreateTestChannel()
91 GPR_ASSERT(channel_creds != nullptr); in CreateTestChannel()
96 channel_creds = CompositeChannelCredentials(channel_creds, creds); in CreateTestChannel()
98 return CreateCustomChannel(connect_to, channel_creds, channel_args); in CreateTestChannel()
100 channel_creds = testing::GetCredentialsProvider()->GetChannelCredentials( in CreateTestChannel()
102 GPR_ASSERT(channel_creds != nullptr); in CreateTestChannel()
104 return CreateCustomChannel(server, channel_creds, args); in CreateTestChannel()
147 std::shared_ptr<ChannelCredentials> channel_creds = in CreateTestChannel() local
[all …]
Dcli_credentials.cc196 std::shared_ptr<grpc::ChannelCredentials> channel_creds = in GetCredentials() local
200 return (channel_creds == nullptr || call_creds == nullptr) in GetCredentials()
201 ? channel_creds in GetCredentials()
202 : grpc::CompositeChannelCredentials(channel_creds, call_creds); in GetCredentials()
/external/grpc-grpc/src/python/grpcio_tests/tests/unit/
D_session_cache_test.py70 def _do_one_shot_client_rpc(self, channel_creds, channel_options, port, argument
73 'localhost:{}'.format(port), channel_creds, options=channel_options)
84 channel_creds = grpc.ssl_channel_credentials(
91 channel_creds,
98 channel_creds,
106 channel_creds,
111 channel_creds,
119 channel_creds,
130 channel_creds,
137 channel_creds,
D_auth_context_test.py93 channel_creds = grpc.ssl_channel_credentials(
97 channel_creds,
124 channel_creds = grpc.ssl_channel_credentials(
130 channel_creds,
144 def _do_one_shot_client_rpc(self, channel_creds, channel_options, port, argument
147 'localhost:{}'.format(port), channel_creds, options=channel_options)
168 channel_creds = grpc.ssl_channel_credentials(
175 channel_creds,
182 channel_creds,
/external/grpc-grpc/src/core/lib/security/credentials/
Dcredentials.cc125 grpc_channel_credentials* channel_creds, const char* target, in grpc_channel_credentials_create_security_connector() argument
129 if (channel_creds == nullptr) { in grpc_channel_credentials_create_security_connector()
132 GPR_ASSERT(channel_creds->vtable->create_security_connector != nullptr); in grpc_channel_credentials_create_security_connector()
133 return channel_creds->vtable->create_security_connector( in grpc_channel_credentials_create_security_connector()
134 channel_creds, nullptr, target, args, sc, new_args); in grpc_channel_credentials_create_security_connector()
139 grpc_channel_credentials* channel_creds) { in grpc_channel_credentials_duplicate_without_call_credentials() argument
140 if (channel_creds != nullptr && channel_creds->vtable != nullptr && in grpc_channel_credentials_duplicate_without_call_credentials()
141 channel_creds->vtable->duplicate_without_call_credentials != nullptr) { in grpc_channel_credentials_duplicate_without_call_credentials()
142 return channel_creds->vtable->duplicate_without_call_credentials( in grpc_channel_credentials_duplicate_without_call_credentials()
143 channel_creds); in grpc_channel_credentials_duplicate_without_call_credentials()
[all …]
/external/rust/crates/grpcio-sys/grpc/src/core/lib/security/security_connector/
Dsecurity_connector.cc53 grpc_core::RefCountedPtr<grpc_channel_credentials> channel_creds, in grpc_channel_security_connector() argument
56 channel_creds_(std::move(channel_creds)), in grpc_channel_security_connector()
71 GPR_ASSERT(channel_creds() != nullptr); in channel_security_connector_cmp()
72 GPR_ASSERT(other_sc->channel_creds() != nullptr); in channel_security_connector_cmp()
73 int c = GPR_ICMP(channel_creds(), other_sc->channel_creds()); in channel_security_connector_cmp()
Dsecurity_connector.h98 grpc_core::RefCountedPtr<grpc_channel_credentials> channel_creds,
122 const grpc_channel_credentials* channel_creds() const { in channel_creds() function
/external/grpc-grpc/src/ruby/spec/
Dchannel_credentials_spec.rb58 channel_creds = ChannelCredentials.new(*certs)
61 expect { channel_creds.compose call_creds }.not_to raise_error
66 channel_creds = ChannelCredentials.new(*certs)
71 channel_creds.compose(call_creds1, call_creds2)
/external/grpc-grpc/src/core/lib/security/security_connector/
Dlocal_security_connector.cc56 grpc_channel_credentials_unref(c->base.channel_creds); in local_channel_destroy()
170 grpc_channel_credentials* channel_creds, in grpc_local_channel_security_connector_create() argument
174 if (channel_creds == nullptr || sc == nullptr || target_name == nullptr) { in grpc_local_channel_security_connector_create()
182 reinterpret_cast<grpc_local_credentials*>(channel_creds); in grpc_local_channel_security_connector_create()
205 c->base.channel_creds = grpc_channel_credentials_ref(channel_creds); in grpc_local_channel_security_connector_create()
Dalts_security_connector.cc52 grpc_channel_credentials_unref(c->base.channel_creds); in alts_channel_destroy()
72 reinterpret_cast<grpc_alts_credentials*>(c->base.channel_creds); in alts_channel_add_handshakers()
241 grpc_channel_credentials* channel_creds, in grpc_alts_channel_security_connector_create() argument
244 if (channel_creds == nullptr || sc == nullptr || target_name == nullptr) { in grpc_alts_channel_security_connector_create()
255 c->base.channel_creds = grpc_channel_credentials_ref(channel_creds); in grpc_alts_channel_security_connector_create()
261 reinterpret_cast<grpc_alts_credentials*>(c->base.channel_creds); in grpc_alts_channel_security_connector_create()
Dsecurity_connector.h118 grpc_channel_credentials* channel_creds; member
182 grpc_channel_credentials* channel_creds,
213 grpc_channel_credentials* channel_creds,
Dsecurity_connector.cc161 GPR_ASSERT(sc1->channel_creds != nullptr); in grpc_channel_security_connector_cmp()
162 GPR_ASSERT(sc2->channel_creds != nullptr); in grpc_channel_security_connector_cmp()
163 int c = GPR_ICMP(sc1->channel_creds, sc2->channel_creds); in grpc_channel_security_connector_cmp()
545 grpc_channel_credentials* channel_creds, argument
554 c->base.channel_creds = channel_creds;
653 grpc_channel_credentials_unref(c->base.channel_creds);
1038 grpc_channel_credentials* channel_creds, argument
1074 c->base.channel_creds = grpc_channel_credentials_ref(channel_creds);
/external/rust/crates/grpcio-sys/grpc/src/core/lib/security/security_connector/local/
Dlocal_security_connector.cc147 grpc_core::RefCountedPtr<grpc_channel_credentials> channel_creds, in grpc_local_channel_security_connector() argument
150 : grpc_channel_security_connector(nullptr, std::move(channel_creds), in grpc_local_channel_security_connector()
252 grpc_core::RefCountedPtr<grpc_channel_credentials> channel_creds, in grpc_local_channel_security_connector_create() argument
255 if (channel_creds == nullptr || target_name == nullptr) { in grpc_local_channel_security_connector_create()
264 static_cast<grpc_local_credentials*>(channel_creds.get()); in grpc_local_channel_security_connector_create()
277 channel_creds, request_metadata_creds, target_name); in grpc_local_channel_security_connector_create()
/external/rust/crates/grpcio-sys/grpc/src/core/lib/security/security_connector/alts/
Dalts_security_connector.cc69 grpc_core::RefCountedPtr<grpc_channel_credentials> channel_creds, in grpc_alts_channel_security_connector() argument
73 std::move(channel_creds), in grpc_alts_channel_security_connector()
84 static_cast<const grpc_alts_credentials*>(channel_creds()); in add_handshakers()
287 grpc_core::RefCountedPtr<grpc_channel_credentials> channel_creds, in grpc_alts_channel_security_connector_create() argument
290 if (channel_creds == nullptr || target_name == nullptr) { in grpc_alts_channel_security_connector_create()
297 std::move(channel_creds), std::move(request_metadata_creds), target_name); in grpc_alts_channel_security_connector_create()
/external/rust/crates/grpcio-sys/grpc/src/core/lib/security/credentials/composite/
Dcomposite_credentials.h36 grpc_core::RefCountedPtr<grpc_channel_credentials> channel_creds, in grpc_composite_channel_credentials() argument
38 : grpc_channel_credentials(channel_creds->type()), in grpc_composite_channel_credentials()
39 inner_creds_(std::move(channel_creds)), in grpc_composite_channel_credentials()
Dcomposite_credentials.cc219 grpc_channel_credentials* channel_creds, grpc_call_credentials* call_creds, in grpc_composite_channel_credentials_create() argument
221 GPR_ASSERT(channel_creds != nullptr && call_creds != nullptr && in grpc_composite_channel_credentials_create()
226 3, (channel_creds, call_creds, reserved)); in grpc_composite_channel_credentials_create()
227 return new grpc_composite_channel_credentials(channel_creds->Ref(), in grpc_composite_channel_credentials_create()
/external/grpc-grpc/src/core/lib/security/credentials/composite/
Dcomposite_credentials.cc253 grpc_channel_credentials* channel_creds, grpc_call_credentials* call_creds, in grpc_composite_channel_credentials_create() argument
257 GPR_ASSERT(channel_creds != nullptr && call_creds != nullptr && in grpc_composite_channel_credentials_create()
262 3, (channel_creds, call_creds, reserved)); in grpc_composite_channel_credentials_create()
263 c->base.type = channel_creds->type; in grpc_composite_channel_credentials_create()
266 c->inner_creds = grpc_channel_credentials_ref(channel_creds); in grpc_composite_channel_credentials_create()
/external/grpc-grpc/include/grpcpp/security/
Dcredentials.h54 const std::shared_ptr<ChannelCredentials>& channel_creds,
83 const std::shared_ptr<ChannelCredentials>& channel_creds,
184 const std::shared_ptr<ChannelCredentials>& channel_creds,
/external/grpc-grpc/test/cpp/qps/
Dbenchmark_config.cc75 std::shared_ptr<ChannelCredentials> channel_creds = in InitBenchmarkReporters() local
81 channel_creds)))); in InitBenchmarkReporters()
/external/rust/crates/grpcio-sys/grpc/src/core/lib/security/security_connector/insecure/
Dinsecure_security_connector.h42 grpc_core::RefCountedPtr<grpc_channel_credentials> channel_creds, in InsecureChannelSecurityConnector() argument
45 std::move(channel_creds), in InsecureChannelSecurityConnector()
/external/rust/crates/grpcio-sys/grpc/src/core/lib/security/security_connector/fake/
Dfake_security_connector.cc50 grpc_core::RefCountedPtr<grpc_channel_credentials> channel_creds, in grpc_fake_channel_security_connector() argument
54 std::move(channel_creds), in grpc_fake_channel_security_connector()
316 grpc_core::RefCountedPtr<grpc_channel_credentials> channel_creds, in grpc_fake_channel_security_connector_create() argument
320 std::move(channel_creds), std::move(request_metadata_creds), target, in grpc_fake_channel_security_connector_create()
/external/grpc-grpc/test/core/security/
Dcredentials_test.cc434 grpc_channel_credentials* channel_creds = in test_channel_oauth2_composite_creds() local
439 grpc_composite_channel_credentials_create(channel_creds, oauth2_creds, in test_channel_oauth2_composite_creds()
441 grpc_channel_credentials_release(channel_creds); in test_channel_oauth2_composite_creds()
508 grpc_channel_credentials* channel_creds = in test_channel_oauth2_google_iam_composite_creds() local
513 grpc_composite_channel_credentials_create(channel_creds, oauth2_creds, in test_channel_oauth2_google_iam_composite_creds()
521 grpc_channel_credentials_release(channel_creds); in test_channel_oauth2_google_iam_composite_creds()
1120 grpc_channel_credentials* channel_creds = in test_channel_creds_duplicate_without_call_creds() local
1125 channel_creds); in test_channel_creds_duplicate_without_call_creds()
1126 GPR_ASSERT(dup == channel_creds); in test_channel_creds_duplicate_without_call_creds()
1132 grpc_composite_channel_credentials_create(channel_creds, call_creds, in test_channel_creds_duplicate_without_call_creds()
[all …]
/external/rust/crates/grpcio-sys/grpc/include/grpcpp/security/
Dcredentials.h76 const std::shared_ptr<ChannelCredentials>& channel_creds,
139 const std::shared_ptr<ChannelCredentials>& channel_creds,
239 const std::shared_ptr<ChannelCredentials>& channel_creds,
/external/rust/crates/grpcio-sys/grpc/spm-cpp-include/grpcpp/security/
Dcredentials.h76 const std::shared_ptr<ChannelCredentials>& channel_creds,
139 const std::shared_ptr<ChannelCredentials>& channel_creds,
239 const std::shared_ptr<ChannelCredentials>& channel_creds,
/external/rust/crates/grpcio-sys/grpc/test/core/security/
Dcredentials_test.cc558 grpc_channel_credentials* channel_creds = new check_channel_oauth2(); in test_channel_oauth2_composite_creds() local
562 grpc_composite_channel_credentials_create(channel_creds, oauth2_creds, in test_channel_oauth2_composite_creds()
564 grpc_channel_credentials_release(channel_creds); in test_channel_oauth2_composite_creds()
645 grpc_channel_credentials* channel_creds = in test_channel_oauth2_google_iam_composite_creds() local
650 grpc_composite_channel_credentials_create(channel_creds, oauth2_creds, in test_channel_oauth2_google_iam_composite_creds()
659 grpc_channel_credentials_release(channel_creds); in test_channel_oauth2_google_iam_composite_creds()
1646 grpc_composite_channel_credentials* channel_creds = in test_google_default_creds_call_creds_specified() local
1650 GPR_ASSERT(channel_creds != nullptr); in test_google_default_creds_call_creds_specified()
1651 GPR_ASSERT(channel_creds->call_creds() != nullptr); in test_google_default_creds_call_creds_specified()
1654 run_request_metadata_test(channel_creds->mutable_call_creds(), auth_md_ctx, in test_google_default_creds_call_creds_specified()
[all …]

12