Home
last modified time | relevance | path

Searched refs:credentials (Results 1 – 25 of 404) sorted by relevance

12345678910>>...17

/third_party/glib/gio/
Dgcredentials.c131 GCredentials *credentials = G_CREDENTIALS (object); in G_DEFINE_TYPE() local
133 ucred_free (credentials->native); in G_DEFINE_TYPE()
151 g_credentials_init (GCredentials *credentials) in g_credentials_init() argument
154 credentials->native.pid = getpid (); in g_credentials_init()
155 credentials->native.uid = geteuid (); in g_credentials_init()
156 credentials->native.gid = getegid (); in g_credentials_init()
160 credentials->native.cr_version = XUCRED_VERSION; in g_credentials_init()
161 credentials->native.cr_uid = geteuid (); in g_credentials_init()
162 credentials->native.cr_ngroups = 1; in g_credentials_init()
163 credentials->native.cr_groups[0] = getegid (); in g_credentials_init()
[all …]
Dgunixcredentialsmessage.c54 GCredentials *credentials; member
112 GCredentials *credentials; in g_unix_credentials_message_deserialize() local
125 credentials = g_credentials_new (); in g_unix_credentials_message_deserialize()
126 g_credentials_set_native (credentials, G_CREDENTIALS_NATIVE_TYPE, data); in g_unix_credentials_message_deserialize()
128 if (g_credentials_get_unix_user (credentials, NULL) == (uid_t) -1) in g_unix_credentials_message_deserialize()
131 g_object_unref (credentials); in g_unix_credentials_message_deserialize()
135 message = g_unix_credentials_message_new_with_credentials (credentials); in g_unix_credentials_message_deserialize()
136 g_object_unref (credentials); in g_unix_credentials_message_deserialize()
154 g_credentials_get_native (message->priv->credentials, in g_unix_credentials_message_serialize()
165 if (message->priv->credentials != NULL) in g_unix_credentials_message_finalize()
[all …]
Dgcredentials.h54 gchar *g_credentials_to_string (GCredentials *credentials);
57 gpointer g_credentials_get_native (GCredentials *credentials,
61 void g_credentials_set_native (GCredentials *credentials,
66 gboolean g_credentials_is_same_user (GCredentials *credentials,
72 pid_t g_credentials_get_unix_pid (GCredentials *credentials,
75 uid_t g_credentials_get_unix_user (GCredentials *credentials,
78 gboolean g_credentials_set_unix_user (GCredentials *credentials,
/third_party/grpc/src/csharp/Grpc.Core/Internal/
DDefaultCallCredentialsConfigurator.cs42 …lic override void SetCompositeCredentials(object state, IReadOnlyList<CallCredentials> credentials) in SetCompositeCredentials() argument
46 GrpcPreconditions.CheckArgument(credentials.Count >= 2); in SetCompositeCredentials()
47 nativeCredentials = CompositeToNativeRecursive(credentials, 0); in SetCompositeCredentials()
52 …lsSafeHandle CompositeToNativeRecursive(IReadOnlyList<CallCredentials> credentials, int startIndex) in CompositeToNativeRecursive() argument
54 if (startIndex == credentials.Count - 1) in CompositeToNativeRecursive()
56 return credentials[startIndex].ToNativeCredentials(); in CompositeToNativeRecursive()
59 using (var cred1 = credentials[startIndex].ToNativeCredentials()) in CompositeToNativeRecursive()
60 using (var cred2 = CompositeToNativeRecursive(credentials, startIndex + 1)) in CompositeToNativeRecursive()
78 … public static CallCredentialsSafeHandle ToNativeCredentials(this CallCredentials credentials) in ToNativeCredentials() argument
81 credentials.InternalPopulateConfiguration(configurator, credentials); in ToNativeCredentials()
DChannelSafeHandle.cs43 …public static ChannelSafeHandle CreateSecure(ChannelCredentialsSafeHandle credentials, string targ… in CreateSecure() argument
48 return Native.grpcsharp_secure_channel_create(credentials, target, channelArgs); in CreateSecure()
51 …afeHandle cq, string method, string host, Timespec deadline, CallCredentialsSafeHandle credentials) in CreateCall() argument
54 if (credentials != null) in CreateCall()
56 result.SetCredentials(credentials); in CreateCall()
/third_party/node/deps/npm/node_modules/request/lib/
Dhawk.js21 exports.calculateMac = function (credentials, opts) { argument
41 var hmac = crypto.createHmac(credentials.algorithm, credentials.key).update(normalized)
48 var credentials = opts.credentials
49 if (!credentials || !credentials.id || !credentials.key || !credentials.algorithm) {
53 if (['sha1', 'sha256'].indexOf(credentials.algorithm) === -1) {
71 artifacts.hash = calculatePayloadHash(opts.payload, credentials.algorithm, opts.contentType)
74 var mac = exports.calculateMac(credentials, artifacts)
77 var header = 'Hawk id="' + credentials.id +
/third_party/grpc/src/python/grpcio/grpc/
D_interceptor.py71 credentials = call_details.credentials
73 credentials = default_details.credentials
85 return method, timeout, metadata, credentials, wait_for_ready, compression
213 credentials=None, argument
219 credentials=credentials,
228 credentials=None, argument
232 metadata, credentials,
245 credentials=new_credentials,
263 credentials=None, argument
269 credentials=credentials,
[all …]
D__init__.py582 def __init__(self, credentials): argument
583 self._credentials = credentials
599 def __init__(self, credentials): argument
600 self._credentials = credentials
649 def __init__(self, credentials): argument
650 self._credentials = credentials
679 credentials=None, argument
712 credentials=None, argument
745 credentials=None, argument
781 credentials=None, argument
[all …]
/third_party/grpc/src/ruby/lib/grpc/generic/
Dclient_stub.rb152 credentials: nil,
157 credentials: credentials)
229 credentials: nil,
234 credentials: credentials)
320 credentials: nil,
326 credentials: credentials)
442 credentials: nil,
448 credentials: credentials)
488 credentials: nil)
496 call.set_credentials! credentials unless credentials.nil?
/third_party/node/deps/npm/test/tap/
Dconfig-credentials.js113 var credentials = {
119 conf.setCredentialsByURI(URI, credentials)
130 var credentials = {
136 conf.setCredentialsByURI(URI, credentials)
147 var credentials = {
153 conf.setCredentialsByURI(URI, credentials)
164 var credentials = {
171 conf.setCredentialsByURI(URI, credentials)
194 var credentials = {
201 conf.setCredentialsByURI(URI, credentials)
[all …]
/third_party/grpc/src/csharp/Grpc.Core.Api/
DCallCredentials.cs38 public static CallCredentials Compose(params CallCredentials[] credentials) in Compose() argument
40 return new CompositeCallCredentials(credentials); in Compose()
61 readonly IReadOnlyList<CallCredentials> credentials; field in Grpc.Core.CallCredentials.CompositeCallCredentials
63 public CompositeCallCredentials(CallCredentials[] credentials) in CompositeCallCredentials() argument
65 …GrpcPreconditions.CheckArgument(credentials.Length >= 2, "Composite credentials object can only be… in CompositeCallCredentials()
66 this.credentials = new List<CallCredentials>(credentials).AsReadOnly(); in CompositeCallCredentials()
71 configurator.SetCompositeCredentials(state, credentials); in InternalPopulateConfiguration()
DCallOptions.cs36 CallCredentials credentials; field
49 …ptions = null, ContextPropagationToken propagationToken = null, CallCredentials credentials = null) in CallOptions()
56 this.credentials = credentials; in CallOptions()
111 get { return this.credentials; }
197 public CallOptions WithCredentials(CallCredentials credentials) in WithCredentials()
200 newOptions.credentials = credentials; in WithCredentials()
/third_party/grpc/src/python/grpcio/grpc/_cython/_cygrpc/
Dcredentials.pyx.pxi250 cdef ServerCredentials credentials = ServerCredentials()
251 credentials.references.append(pem_root_certs)
252 credentials.references.append(pem_key_cert_pairs)
254 credentials.c_ssl_pem_key_cert_pairs_count = len(pem_key_cert_pairs)
255 credentials.c_ssl_pem_key_cert_pairs = _create_c_ssl_pem_key_cert_pairs(pem_key_cert_pairs)
258 c_pem_root_certs, credentials.c_ssl_pem_key_cert_pairs,
259 credentials.c_ssl_pem_key_cert_pairs_count)
268 credentials.c_credentials = grpc_ssl_server_credentials_create_with_options(c_options)
269 return credentials
293 cdef ServerCredentials credentials = ServerCredentials()
[all …]
/third_party/grpc/src/csharp/Grpc.Core/
DServerPort.cs38 readonly ServerCredentials credentials; field in Grpc.Core.ServerPort
48 public ServerPort(string host, int port, ServerCredentials credentials) in ServerPort() argument
52 this.credentials = GrpcPreconditions.CheckNotNull(credentials, "credentials"); in ServerPort()
62 this.credentials = serverPort.credentials; in ServerPort()
89 return credentials;
DChannel.cs54 public Channel(string target, ChannelCredentials credentials) : in Channel() argument
55 this(target, credentials, null) in Channel()
66 …public Channel(string target, ChannelCredentials credentials, IEnumerable<ChannelOption> options) … in Channel() argument
75 var nativeCredentials = credentials.ToNativeCredentials(); in Channel()
94 public Channel(string host, int port, ChannelCredentials credentials) : in Channel() argument
95 this(host, port, credentials, null) in Channel()
106 …public Channel(string host, int port, ChannelCredentials credentials, IEnumerable<ChannelOption> o… in Channel() argument
107 this(string.Format("{0}:{1}", host, port), credentials, options) in Channel()
/third_party/grpc/src/python/grpcio_testing/grpc_testing/_channel/
D_multi_callable.py28 def __call__(self, request, timeout=None, metadata=None, credentials=None): argument
34 def with_call(self, request, timeout=None, metadata=None, credentials=None): argument
40 def future(self, request, timeout=None, metadata=None, credentials=None): argument
53 def __call__(self, request, timeout=None, metadata=None, credentials=None): argument
70 credentials=None): argument
81 credentials=None): argument
92 credentials=None): argument
110 credentials=None): argument
/third_party/node/deps/npm/node_modules/aws4/
Daws4.js27 function RequestSigner(request, credentials) { argument
35 this.credentials = credentials || this.defaultCredentials()
97 if (this.credentials.sessionToken)
98 query['X-Amz-Security-Token'] = this.credentials.sessionToken
109 query['X-Amz-Credential'] = this.credentials.accessKeyId + '/' + this.credentialString()
121 …if (this.credentials.sessionToken && !headers['X-Amz-Security-Token'] && !headers['x-amz-security-…
122 headers['X-Amz-Security-Token'] = this.credentials.sessionToken
171 'AWS4-HMAC-SHA256 Credential=' + this.credentials.accessKeyId + '/' + this.credentialString(),
179 cacheKey = [this.credentials.secretAccessKey, date, this.region, this.service].join(),
182 kDate = hmac('AWS4' + this.credentials.secretAccessKey, date)
[all …]
/third_party/gstreamer/gstplugins_base/tests/check/libs/
Drtsp.c692 GstRTSPAuthCredential **credentials; in GST_START_TEST() local
702 credentials = in GST_START_TEST()
705 fail_unless (credentials != NULL); in GST_START_TEST()
707 credential = credentials; in GST_START_TEST()
714 gst_rtsp_auth_credentials_free (credentials); in GST_START_TEST()
725 credentials = in GST_START_TEST()
728 fail_unless (credentials != NULL); in GST_START_TEST()
730 credential = credentials; in GST_START_TEST()
741 gst_rtsp_auth_credentials_free (credentials); in GST_START_TEST()
752 credentials = in GST_START_TEST()
[all …]
/third_party/grpc/src/python/grpcio/grpc/experimental/aio/
D_channel.py113 credentials: Optional[grpc.CallCredentials] = None,
121 metadata, credentials, wait_for_ready,
127 self._interceptors, request, timeout, metadata, credentials,
143 credentials: Optional[grpc.CallCredentials] = None,
152 call = UnaryStreamCall(request, deadline, metadata, credentials,
158 self._interceptors, request, deadline, metadata, credentials,
173 credentials: Optional[grpc.CallCredentials] = None,
183 credentials, wait_for_ready, self._channel,
189 credentials, wait_for_ready, self._channel, self._method,
203 credentials: Optional[grpc.CallCredentials] = None,
[all …]
/third_party/grpc/src/python/grpcio/grpc/aio/
D_channel.py114 credentials: Optional[grpc.CallCredentials] = None,
122 metadata, credentials, wait_for_ready,
128 self._interceptors, request, timeout, metadata, credentials,
145 credentials: Optional[grpc.CallCredentials] = None,
154 call = UnaryStreamCall(request, deadline, metadata, credentials,
160 self._interceptors, request, deadline, metadata, credentials,
176 credentials: Optional[grpc.CallCredentials] = None,
186 credentials, wait_for_ready, self._channel,
192 credentials, wait_for_ready, self._channel, self._method,
207 credentials: Optional[grpc.CallCredentials] = None,
[all …]
/third_party/grpc/src/python/grpcio/grpc/beta/
Dinterfaces.py37 def __init__(self, disable_compression, subcall_of, credentials): argument
40 self.credentials = credentials
43 def grpc_call_options(disable_compression=False, credentials=None): argument
54 return GRPCCallOptions(disable_compression, None, credentials)
/third_party/curl/lib/vauth/
Dspnego_sspi.c148 if(!nego->credentials) { in Curl_auth_decode_spnego_message()
164 nego->credentials = calloc(1, sizeof(CredHandle)); in Curl_auth_decode_spnego_message()
165 if(!nego->credentials) in Curl_auth_decode_spnego_message()
174 nego->credentials, &expiry); in Curl_auth_decode_spnego_message()
243 nego->status = s_pSecFn->InitializeSecurityContext(nego->credentials, in Curl_auth_decode_spnego_message()
347 if(nego->credentials) { in Curl_auth_cleanup_spnego()
348 s_pSecFn->FreeCredentialsHandle(nego->credentials); in Curl_auth_cleanup_spnego()
349 free(nego->credentials); in Curl_auth_cleanup_spnego()
350 nego->credentials = NULL; in Curl_auth_cleanup_spnego()
Dntlm_sspi.c136 ntlm->credentials = calloc(1, sizeof(CredHandle)); in Curl_auth_create_ntlm_type1_message()
137 if(!ntlm->credentials) in Curl_auth_create_ntlm_type1_message()
145 ntlm->credentials, &expiry); in Curl_auth_create_ntlm_type1_message()
167 status = s_pSecFn->InitializeSecurityContext(ntlm->credentials, NULL, in Curl_auth_create_ntlm_type1_message()
306 status = s_pSecFn->InitializeSecurityContext(ntlm->credentials, in Curl_auth_create_ntlm_type3_message()
350 if(ntlm->credentials) { in Curl_auth_cleanup_ntlm()
351 s_pSecFn->FreeCredentialsHandle(ntlm->credentials); in Curl_auth_cleanup_ntlm()
352 free(ntlm->credentials); in Curl_auth_cleanup_ntlm()
353 ntlm->credentials = NULL; in Curl_auth_cleanup_ntlm()
/third_party/grpc/examples/python/auth/
DREADME.md16 ### Channel credentials
18 Channel credentials are attached to a `Channel` object, the most common use case
19 are SSL credentials.
21 ### Call credentials
23 Call credentials are attached to a `Call` object (corresponding to an RPC).
24 Under the hood, the call credentials is a function that takes in information of
31 2) Composite client side credentials;
88 stub.FooRpc(request, credentials=call_credentials)
111 stub.FooRpc(request, credentials=call_credentials)
/third_party/glib/gio/tests/
Dgdbus-example-peer.c140 GCredentials *credentials; in on_new_connection() local
143 credentials = g_dbus_connection_get_peer_credentials (connection); in on_new_connection()
144 if (credentials == NULL) in on_new_connection()
147 s = g_credentials_to_string (credentials); in on_new_connection()
198 GCredentials *credentials, in authorize_authenticated_peer_cb() argument
205 if (credentials != NULL) in authorize_authenticated_peer_cb()
210 credentials_string = g_credentials_to_string (credentials); in authorize_authenticated_peer_cb()
220 if (g_credentials_is_same_user (credentials, own_credentials, NULL)) in authorize_authenticated_peer_cb()

12345678910>>...17