Home
last modified time | relevance | path

Searched refs:auth_context (Results 1 – 25 of 68) sorted by relevance

123

/external/grpc-grpc/src/python/grpcio/grpc/_cython/_cygrpc/
Dsecurity.pyx.pxi35 cdef grpc_auth_context* auth_context
39 auth_context = grpc_call_auth_context(call.c_call)
40 if auth_context == NULL:
42 properties = grpc_auth_context_peer_identity(auth_context)
50 grpc_auth_context_release(auth_context)
54 cdef grpc_auth_context* auth_context
56 auth_context = grpc_call_auth_context(call.c_call)
57 if auth_context == NULL:
59 c_key = grpc_auth_context_peer_identity_property_name(auth_context)
63 key = <bytes> grpc_auth_context_peer_identity_property_name(auth_context)
[all …]
/external/rust/crates/grpcio-sys/grpc/test/core/security/
Devaluate_args_test.cc181 grpc_auth_context auth_context(nullptr); in TEST() local
182 EvaluateArgs eval_args(nullptr, &auth_context, nullptr); in TEST()
188 grpc_auth_context auth_context(nullptr); in TEST() local
190 auth_context.add_cstring_property(GRPC_PEER_SPIFFE_ID_PROPERTY_NAME, kId); in TEST()
191 EvaluateArgs eval_args(nullptr, &auth_context, nullptr); in TEST()
196 grpc_auth_context auth_context(nullptr); in TEST() local
197 auth_context.add_cstring_property(GRPC_PEER_SPIFFE_ID_PROPERTY_NAME, "id1"); in TEST()
198 auth_context.add_cstring_property(GRPC_PEER_SPIFFE_ID_PROPERTY_NAME, "id2"); in TEST()
199 EvaluateArgs eval_args(nullptr, &auth_context, nullptr); in TEST()
204 grpc_auth_context auth_context(nullptr); in TEST() local
[all …]
Dinsecure_security_connector_test.cc34 auto auth_context = TestOnlyMakeInsecureAuthContext(); in TEST() local
36 EXPECT_EQ(auth_context->is_authenticated(), false); in TEST()
39 auth_context.get(), GRPC_TRANSPORT_SECURITY_TYPE_PROPERTY_NAME); in TEST()
46 auth_context.get(), GRPC_TRANSPORT_SECURITY_LEVEL_PROPERTY_NAME); in TEST()
/external/rust/crates/grpcio-sys/grpc/src/core/lib/security/transport/
Dclient_auth_filter.cc52 grpc_auth_context* auth_context) in channel_data()
55 auth_context(auth_context->Ref(DEBUG_LOCATION, "client_auth_filter")) {} in channel_data()
58 auth_context.reset(DEBUG_LOCATION, "client_auth_filter"); in ~channel_data()
62 grpc_core::RefCountedPtr<grpc_auth_context> auth_context; member
80 sec_ctx->auth_context.reset(DEBUG_LOCATION, "client_auth_filter"); in call_data()
81 sec_ctx->auth_context = in call_data()
82 chand->auth_context->Ref(DEBUG_LOCATION, "client_auth_filter"); in call_data()
190 const grpc_slice& call_method, grpc_auth_context* auth_context, in grpc_auth_metadata_context_build() argument
220 auth_context == nullptr in grpc_auth_metadata_context_build()
222 : auth_context->Ref(DEBUG_LOCATION, "grpc_auth_metadata_context") in grpc_auth_metadata_context_build()
[all …]
Dserver_auth_filter.cc42 channel_data(grpc_auth_context* auth_context, grpc_server_credentials* creds) in channel_data()
43 : auth_context(auth_context->Ref()), creds(creds->Ref()) {} in channel_data()
44 ~channel_data() { auth_context.reset(DEBUG_LOCATION, "server_auth_filter"); } in ~channel_data()
46 grpc_core::RefCountedPtr<grpc_auth_context> auth_context; member
64 server_ctx->auth_context = in call_data()
65 chand->auth_context->Ref(DEBUG_LOCATION, "server_auth_filter"); in call_data()
229 chand->auth_context.get(), calld->md.metadata, calld->md.count, in recv_initial_metadata_ready()
301 grpc_auth_context* auth_context = in server_auth_init_channel_elem() local
303 GPR_ASSERT(auth_context != nullptr); in server_auth_init_channel_elem()
306 new (elem->channel_data) channel_data(auth_context, creds); in server_auth_init_channel_elem()
/external/rust/crates/grpcio-sys/grpc/src/cpp/common/
Dalts_util.cc35 const std::shared_ptr<const AuthContext>& auth_context) { in GetAltsContextFromAuthContext() argument
36 if (auth_context == nullptr) { in GetAltsContextFromAuthContext()
41 auth_context->FindPropertyValues(TSI_ALTS_CONTEXT); in GetAltsContextFromAuthContext()
62 const std::shared_ptr<const AuthContext>& auth_context, in AltsClientAuthzCheck() argument
65 GetAltsContextFromAuthContext(auth_context); in AltsClientAuthzCheck()
/external/rust/crates/grpcio-sys/grpc/src/core/lib/security/security_connector/fake/
Dfake_security_connector.cc79 grpc_core::RefCountedPtr<grpc_auth_context>* auth_context,
214 grpc_core::RefCountedPtr<grpc_auth_context>* auth_context, in fake_check_peer() argument
218 *auth_context = nullptr; in fake_check_peer()
255 *auth_context = grpc_core::MakeRefCounted<grpc_auth_context>(nullptr); in fake_check_peer()
257 auth_context->get(), GRPC_TRANSPORT_SECURITY_TYPE_PROPERTY_NAME, in fake_check_peer()
260 auth_context->get(), GRPC_TRANSPORT_SECURITY_LEVEL_PROPERTY_NAME, in fake_check_peer()
269 grpc_core::RefCountedPtr<grpc_auth_context>* auth_context, in check_peer() argument
271 fake_check_peer(this, peer, auth_context, on_peer_checked); in check_peer()
285 grpc_core::RefCountedPtr<grpc_auth_context>* auth_context, in check_peer() argument
287 fake_check_peer(this, peer, auth_context, on_peer_checked); in check_peer()
/external/grpc-grpc/src/core/lib/security/transport/
Dclient_auth_filter.cc67 grpc_auth_context* auth_context; member
128 grpc_auth_context* auth_context, in grpc_auth_metadata_context_build() argument
158 GRPC_AUTH_CONTEXT_REF(auth_context, "grpc_auth_metadata_context"); in grpc_auth_metadata_context_build()
209 chand->auth_context, &calld->auth_md_context); in send_security_metadata()
289 GRPC_AUTH_CONTEXT_UNREF(sec_ctx->auth_context, "client auth filter"); in auth_start_transport_stream_op_batch()
290 sec_ctx->auth_context = in auth_start_transport_stream_op_batch()
291 GRPC_AUTH_CONTEXT_REF(chand->auth_context, "client_auth_filter"); in auth_start_transport_stream_op_batch()
311 chand->security_connector, call_host, chand->auth_context, in auth_start_transport_stream_op_batch()
372 grpc_auth_context* auth_context = in init_channel_elem() local
374 if (auth_context == nullptr) { in init_channel_elem()
[all …]
Dserver_auth_filter.cc55 grpc_auth_context* auth_context; member
182 chand->creds->processor.state, chand->auth_context, in recv_initial_metadata_ready()
235 server_ctx->auth_context = in init_call_elem()
236 GRPC_AUTH_CONTEXT_REF(chand->auth_context, "server_auth_filter"); in init_call_elem()
260 grpc_auth_context* auth_context = in init_channel_elem() local
262 GPR_ASSERT(auth_context != nullptr); in init_channel_elem()
263 chand->auth_context = in init_channel_elem()
264 GRPC_AUTH_CONTEXT_REF(auth_context, "server_auth_filter"); in init_channel_elem()
274 GRPC_AUTH_CONTEXT_UNREF(chand->auth_context, "server_auth_filter"); in destroy_channel_elem()
/external/rust/crates/grpcio-sys/grpc/src/core/lib/security/security_connector/insecure/
Dinsecure_security_connector.cc54 absl::string_view host, grpc_auth_context* auth_context, in check_call_host() argument
80 RefCountedPtr<grpc_auth_context>* auth_context, in check_peer() argument
82 *auth_context = MakeAuthContext(); in check_peer()
108 grpc_core::RefCountedPtr<grpc_auth_context>* auth_context, in check_peer() argument
110 *auth_context = MakeAuthContext(); in check_peer()
Dinsecure_security_connector.h48 bool check_call_host(absl::string_view host, grpc_auth_context* auth_context,
60 grpc_core::RefCountedPtr<grpc_auth_context>* auth_context,
78 grpc_core::RefCountedPtr<grpc_auth_context>* auth_context,
/external/rust/crates/grpcio-sys/grpc/src/core/lib/security/security_connector/local/
Dlocal_security_connector.cc70 grpc_core::RefCountedPtr<grpc_auth_context>* auth_context, in local_check_peer() argument
135 *auth_context = local_auth_context_create(&peer); in local_check_peer()
137 error = *auth_context != nullptr ? GRPC_ERROR_NONE in local_check_peer()
176 grpc_core::RefCountedPtr<grpc_auth_context>* auth_context, in check_peer() argument
180 local_check_peer(peer, ep, auth_context, on_peer_checked, in check_peer()
225 grpc_core::RefCountedPtr<grpc_auth_context>* auth_context, in check_peer() argument
229 local_check_peer(peer, ep, auth_context, on_peer_checked, in check_peer()
/external/grpc-grpc/src/core/lib/security/security_connector/
Dsecurity_connector.cc139 grpc_auth_context** auth_context, in grpc_security_connector_check_peer() argument
147 sc->vtable->check_peer(sc, peer, auth_context, on_peer_checked); in grpc_security_connector_check_peer()
186 grpc_auth_context* auth_context, grpc_closure* on_call_host_checked, in grpc_channel_security_connector_check_call_host() argument
193 return sc->check_call_host(sc, host, auth_context, on_call_host_checked, in grpc_channel_security_connector_check_call_host()
399 grpc_auth_context** auth_context, argument
403 *auth_context = nullptr;
425 *auth_context = grpc_auth_context_create(nullptr);
427 *auth_context, GRPC_TRANSPORT_SECURITY_TYPE_PROPERTY_NAME,
435 grpc_auth_context** auth_context, argument
437 fake_check_peer(sc, peer, auth_context, on_peer_checked);
[all …]
Dsecurity_connector.h57 grpc_auth_context** auth_context,
92 grpc_auth_context** auth_context,
121 grpc_auth_context* auth_context,
141 grpc_auth_context* auth_context, grpc_closure* on_call_host_checked,
245 const grpc_auth_context* auth_context);
/external/rust/crates/grpcio-sys/grpc/src/core/lib/security/security_connector/alts/
Dalts_security_connector.cc52 grpc_core::RefCountedPtr<grpc_auth_context>* auth_context, in alts_check_peer() argument
54 *auth_context = in alts_check_peer()
58 *auth_context != nullptr in alts_check_peer()
101 grpc_core::RefCountedPtr<grpc_auth_context>* auth_context, in check_peer() argument
103 alts_check_peer(peer, auth_context, on_peer_checked); in check_peer()
166 grpc_core::RefCountedPtr<grpc_auth_context>* auth_context, in check_peer() argument
168 alts_check_peer(peer, auth_context, on_peer_checked); in check_peer()
/external/rust/crates/grpcio-sys/grpc/src/core/lib/security/security_connector/ssl/
Dssl_security_connector.cc50 grpc_core::RefCountedPtr<grpc_auth_context>* auth_context) { in ssl_check_peer() argument
61 *auth_context = in ssl_check_peer()
143 grpc_core::RefCountedPtr<grpc_auth_context>* auth_context, in check_peer() argument
148 grpc_error* error = ssl_check_peer(target_name, &peer, auth_context); in check_peer()
186 bool check_call_host(absl::string_view host, grpc_auth_context* auth_context, in check_call_host() argument
191 auth_context, error); in check_call_host()
289 grpc_core::RefCountedPtr<grpc_auth_context>* auth_context, in check_peer() argument
291 grpc_error* error = ssl_check_peer(nullptr, &peer, auth_context); in check_peer()
/external/rust/crates/grpcio-sys/grpc/src/core/lib/security/context/
Dsecurity_context.cc71 if (sc->auth_context == nullptr) { in grpc_call_auth_context()
74 return sc->auth_context in grpc_call_auth_context()
80 if (sc->auth_context == nullptr) { in grpc_call_auth_context()
83 return sc->auth_context in grpc_call_auth_context()
98 auth_context.reset(DEBUG_LOCATION, "client_security_context"); in ~grpc_client_security_context()
119 auth_context.reset(DEBUG_LOCATION, "server_security_context"); in ~grpc_server_security_context()
/external/rust/crates/grpcio-sys/grpc/include/grpcpp/security/
Dalts_util.h38 const std::shared_ptr<const AuthContext>& auth_context);
44 const std::shared_ptr<const AuthContext>& auth_context,
/external/rust/crates/grpcio-sys/grpc/spm-cpp-include/grpcpp/security/
Dalts_util.h38 const std::shared_ptr<const AuthContext>& auth_context);
44 const std::shared_ptr<const AuthContext>& auth_context,
/external/rust/crates/grpcio-sys/grpc/src/core/lib/security/authorization/
Devaluate_args.h34 EvaluateArgs(grpc_metadata_batch* metadata, grpc_auth_context* auth_context, in EvaluateArgs() argument
36 : metadata_(metadata), auth_context_(auth_context), endpoint_(endpoint) {} in EvaluateArgs()
/external/openscreen/cast/sender/channel/
Dcast_auth_util.cc238 const AuthContext& auth_context, in AuthenticateChallengeReplyImpl() argument
258 result = auth_context.VerifySenderNonce(nonce_response); in AuthenticateChallengeReplyImpl()
285 const AuthContext& auth_context) { in AuthenticateChallengeReply() argument
290 challenge_reply, peer_cert, auth_context, policy, in AuthenticateChallengeReply()
297 const AuthContext& auth_context, in AuthenticateChallengeReplyForTest() argument
303 challenge_reply, peer_cert, auth_context, crl_policy, cast_trust_store, in AuthenticateChallengeReplyForTest()
Dcast_auth_util.h59 const AuthContext& auth_context);
68 const AuthContext& auth_context,
Dmessage_util.cc17 CastMessage CreateAuthChallengeMessage(const AuthContext& auth_context) { in CreateAuthChallengeMessage() argument
22 challenge->set_sender_nonce(auth_context.nonce()); in CreateAuthChallengeMessage()
/external/grpc-grpc/src/core/lib/security/context/
Dsecurity_context.h90 grpc_auth_context* auth_context; member
103 grpc_auth_context* auth_context; member
/external/rust/crates/grpcio/src/
Dlib.rs29 mod auth_context; module
68 pub use crate::auth_context::{AuthContext, AuthProperty, AuthPropertyIter};

123