Home
last modified time | relevance | path

Searched refs:creds (Results 1 – 25 of 33) sorted by relevance

12

/external/dbus/dbus/
Ddbus-credentials-util.c86 DBusCredentials *creds; in _dbus_credentials_test() local
92 creds = make_credentials (12, 511, SAMPLE_SID); in _dbus_credentials_test()
93 if (creds == NULL) in _dbus_credentials_test()
97 _dbus_credentials_ref (creds); in _dbus_credentials_test()
98 _dbus_credentials_unref (creds); in _dbus_credentials_test()
100 _dbus_assert (_dbus_credentials_include (creds, DBUS_CREDENTIAL_UNIX_USER_ID)); in _dbus_credentials_test()
101 _dbus_assert (_dbus_credentials_include (creds, DBUS_CREDENTIAL_UNIX_PROCESS_ID)); in _dbus_credentials_test()
102 _dbus_assert (_dbus_credentials_include (creds, DBUS_CREDENTIAL_WINDOWS_SID)); in _dbus_credentials_test()
104 _dbus_assert (_dbus_credentials_get_unix_uid (creds) == 12); in _dbus_credentials_test()
105 _dbus_assert (_dbus_credentials_get_unix_pid (creds) == 511); in _dbus_credentials_test()
[all …]
Ddbus-credentials.c72 DBusCredentials *creds; in _dbus_credentials_new() local
74 creds = dbus_new (DBusCredentials, 1); in _dbus_credentials_new()
75 if (creds == NULL) in _dbus_credentials_new()
78 creds->refcount = 1; in _dbus_credentials_new()
79 creds->unix_uid = DBUS_UID_UNSET; in _dbus_credentials_new()
80 creds->unix_pid = DBUS_PID_UNSET; in _dbus_credentials_new()
81 creds->windows_sid = NULL; in _dbus_credentials_new()
82 creds->adt_audit_data = NULL; in _dbus_credentials_new()
83 creds->adt_audit_data_size = 0; in _dbus_credentials_new()
85 return creds; in _dbus_credentials_new()
[all …]
Ddbus-auth-script.c361 DBusCredentials *creds; in _dbus_auth_script_run() local
380 creds = _dbus_credentials_new_from_current_process (); in _dbus_auth_script_run()
381 if (creds == NULL) in _dbus_auth_script_run()
389 if (!_dbus_auth_set_credentials (auth, creds)) in _dbus_auth_script_run()
394 _dbus_credentials_unref (creds); in _dbus_auth_script_run()
398 _dbus_credentials_unref (creds); in _dbus_auth_script_run()
403 DBusCredentials *creds; in _dbus_auth_script_run() local
422 creds = _dbus_credentials_new_from_current_process (); in _dbus_auth_script_run()
423 if (creds == NULL) in _dbus_auth_script_run()
431 if (!_dbus_auth_set_credentials (auth, creds)) in _dbus_auth_script_run()
[all …]
Ddbus-transport.c111 DBusCredentials *creds; in _dbus_transport_init_base() local
135 creds = _dbus_credentials_new (); in _dbus_transport_init_base()
136 if (creds == NULL) in _dbus_transport_init_base()
155 _dbus_credentials_unref (creds); in _dbus_transport_init_base()
195 transport->credentials = creds; in _dbus_transport_init_base()
/external/chromium-trace/catapult/third_party/gsutil/third_party/oauth2client/tests/
Dtest_devshell.py95 creds = DevshellCredentials()
96 self.assertEquals(None, creds.refresh_token)
100 creds = DevshellCredentials()
101 self.assertEqual('joe@example.com', creds.user_email)
102 self.assertEqual('fooproj', creds.project_id)
103 self.assertEqual('sometoken', creds.access_token)
107 creds = DevshellCredentials()
108 self.assertEqual('joe@example.com', creds.user_email)
109 self.assertEqual(None, creds.project_id)
110 self.assertEqual(None, creds.access_token)
[all …]
/external/chromium-trace/catapult/third_party/gsutil/third_party/boto/tests/unit/sts/
Dtest_credentials.py11 self.creds = Credentials()
17 self.assertEqual(self.creds.to_dict(), {
26 creds = Credentials()
27 creds.access_key = 'something'
28 creds.secret_key = 'crypto'
29 creds.session_token = 'this'
30 creds.expiration = 'way'
31 creds.request_id = 'comes'
32 self.assertEqual(creds.to_dict(), {
/external/libnl/lib/
Dnl.c238 struct ucred *creds; in nl_send_iovec() local
254 creds = nlmsg_get_creds(msg); in nl_send_iovec()
255 if (creds != NULL) { in nl_send_iovec()
266 memcpy(CMSG_DATA(cmsg), creds, sizeof(struct ucred)); in nl_send_iovec()
400 unsigned char **buf, struct ucred **creds) in nl_recv() argument
475 *creds = calloc(1, sizeof(struct ucred)); in nl_recv()
476 memcpy(*creds, CMSG_DATA(cmsg), sizeof(struct ucred)); in nl_recv()
513 struct ucred *creds = NULL; in recvmsgs() local
518 n = cb->cb_recv_ow(sk, &nla, &buf, &creds); in recvmsgs()
520 n = nl_recv(sk, &nla, &buf, &creds); in recvmsgs()
[all …]
/external/apache-http/src/org/apache/http/impl/client/
DBasicCredentialsProvider.java101 Credentials creds = map.get(authscope); in matchCredentials() local
102 if (creds == null) { in matchCredentials()
115 creds = map.get(bestMatch); in matchCredentials()
118 return creds; in matchCredentials()
DDefaultUserTokenHandler.java86 Credentials creds = authState.getCredentials(); in getAuthPrincipal() local
87 if (creds != null) { in getAuthPrincipal()
88 return creds.getUserPrincipal(); in getAuthPrincipal()
DDefaultRequestDirector.java737 Credentials creds = this.proxyAuthState.getCredentials(); in createTunnelToTarget() local
738 if (creds != null) { in createTunnelToTarget()
741 connect.addHeader(authScheme.authenticate(creds, connect)); in createTunnelToTarget()
1113 Credentials creds = authState.getCredentials(); in updateAuthState() local
1114 if (creds == null) { in updateAuthState()
1115 creds = credsProvider.getCredentials(authScope); in updateAuthState()
1117 if (creds != null) { in updateAuthState()
1126 creds = null; in updateAuthState()
1130 authState.setCredentials(creds); in updateAuthState()
/external/autotest/contrib/
Dcrbug_shell.py46 creds = auth_store.get()
47 if creds is None or creds.invalid:
64 creds = tools.run(input_flow, auth_store)
/external/apache-http/src/org/apache/http/client/protocol/
DRequestTargetAuthentication.java93 Credentials creds = authState.getCredentials(); in process() local
94 if (creds == null) { in process()
101 request.addHeader(authScheme.authenticate(creds, request)); in process()
DRequestProxyAuthentication.java93 Credentials creds = authState.getCredentials(); in process() local
94 if (creds == null) { in process()
100 request.addHeader(authScheme.authenticate(creds, request)); in process()
/external/chromium-trace/catapult/third_party/gsutil/gslib/
Ddevshell_auth_plugin.py34 self.creds = devshell.DevshellCredentials()
39 http_request.headers['Authorization'] = 'Bearer %s' % self.creds.access_token
/external/strace/tests/
Dscm_rights-fd.test57 creds='\{cmsg_len='"$n"', cmsg_level=SOL_SOCKET, cmsg_type=SCM_CREDENTIALS, \{pid='"$n"', uid=[0-9]…
63 ${prefix}recvmsg\\(0<socket:\\[[0-9]+\\]>, $msg, \\[$creds, $rights\\], msg_flags=0\\}, 0\\) += $n
/external/chromium-trace/catapult/third_party/gsutil/third_party/boto/tests/integration/sts/
Dtest_session_token.py74 creds = c.assume_role_with_web_identity(
88 creds = c.decode_authorization_message('b94d27b9934')
/external/chromium-trace/catapult/third_party/gsutil/third_party/apitools/apitools/base/py/
Dcredentials_lib.py212 creds = { # Credentials metadata dict.
226 if (creds['svc_acct_name'] ==
228 if (creds['scopes'] in
252 creds = { # Credentials metadata dict.
256 json.dumps(creds, encoding='ascii'))
/external/autotest/site_utils/
Dmysql_bootstrap.py165 creds = {
176 dest_host, MySQLCommandExecutor.mysql_cmd(grant_privileges % creds))
/external/autotest/site_utils/suite_scheduler/
Dsuite_scheduler.py124 creds = None
126 creds = (self._smtp_user, self._smtp_password)
135 creds)
/external/chromium-trace/catapult/third_party/apiclient/googleapiclient/
Dhttp.py1024 creds = None
1027 creds = request.http.request.credentials
1029 creds = http.request.credentials
1030 if creds is not None:
1031 if id(creds) not in self._refreshed_credentials:
1032 creds.refresh(http)
1033 self._refreshed_credentials[id(creds)] = 1
1039 creds.apply(request.headers)
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/tester/org/apache/http/impl/client/
DDefaultRequestDirector.java1143 Credentials creds = authState.getCredentials(); in updateAuthState() local
1144 if (creds == null) { in updateAuthState()
1145 creds = credsProvider.getCredentials(authScope); in updateAuthState()
1147 if (creds != null) { in updateAuthState()
1156 creds = null; in updateAuthState()
1160 authState.setCredentials(creds); in updateAuthState()
/external/autotest/client/site_tests/power_SuspendStress/
Dcontrol.video22 [lambda: job.run_test('graphics_SanAngeles', creds='$default',
/external/autotest/client/site_tests/graphics_SanAngeles/
Dcontrol.hwqual26 job.run_test('graphics_SanAngeles', creds='$backdoor')
Dcontrol.bvt-cq29 job.run_test('graphics_SanAngeles', creds=None)
Dcontrol28 job.run_test('graphics_SanAngeles', creds=None)

12