Home
last modified time | relevance | path

Searched refs:auth (Results 1 – 25 of 200) sorted by relevance

12345678

/illumos-gate/usr/src/lib/libsecdb/common/
H A Dgetauthattr.c50 authstr_t auth; in getauthattr() local
64 authstr_t auth; in getauthnam() local
93 if (auth) { in free_authattr()
94 free(auth->name); in free_authattr()
95 free(auth->res1); in free_authattr()
96 free(auth->res2); in free_authattr()
100 free(auth); in free_authattr()
110 if (auth == NULL) in authstr2attr()
138 printf("name=%s\n", auth->name ? auth->name : empty); in print_authattr()
139 printf("res1=%s\n", auth->res1 ? auth->res1 : empty); in print_authattr()
[all …]
H A Dchkauthattr.c233 char *auth, *last, *auths; in _enum_auths_a() local
241 while (auth = strtok_r(auths, KV_SEPSTR, &last)) { in _enum_auths_a()
244 res = cb(auth, ctxt, pres); in _enum_auths_a()
293 _auth_match_noun(const char *pattern, const char *auth, in _auth_match_noun() argument
317 (strncmp(pattern, auth, pattern_len) == 0)) { in _auth_match_noun()
333 if (strncmp(pattern, auth, pattern_len - 1) == 0) { in _auth_match_noun()
334 grant = strrchr(auth, '.'); in _auth_match_noun()
344 _auth_match(const char *pattern, const char *auth) in _auth_match() argument
346 return (_auth_match_noun(pattern, auth, strlen(auth), NULL)); in _auth_match()
367 if (strcmp(authname, auth) == 0) { in _is_authorized()
[all …]
/illumos-gate/usr/src/lib/libsqlite/test/
H A Dauth.test25 do_test auth-1.1.1 {
37 do_test auth-1.1.2 {
40 do_test auth-1.2 {
43 do_test auth-1.3.1 {
53 do_test auth-1.3.2 {
56 do_test auth-1.3.3 {
59 do_test auth-1.4 {
63 do_test auth-1.5 {
72 do_test auth-1.6 {
88 do_test auth-1.8 {
[all …]
/illumos-gate/usr/src/uts/common/rpc/
H A Dauth.h254 ((*((auth)->ah_ops->ah_nextverf))(auth))
256 ((*((auth)->ah_ops->ah_nextverf))(auth))
266 ((*((auth)->ah_ops->ah_marshal))(auth, xdrs))
268 ((*((auth)->ah_ops->ah_marshal))(auth, xdrs))
273 ((*((auth)->ah_ops->ah_validate))((auth), verfp))
279 ((*((auth)->ah_ops->ah_refresh))(auth, msg, cr))
281 ((*((auth)->ah_ops->ah_refresh))(auth, msg, cr))
284 ((*((auth)->ah_ops->ah_refresh))(auth, msg))
286 ((*((auth)->ah_ops->ah_refresh))(auth, msg))
290 ((*((auth)->ah_ops->ah_destroy))(auth))
[all …]
H A Dsvc_auth.h82 #define SVCAUTH_GSSPARMS(auth) ((svc_rpc_gss_parms_t *)&(auth)->svc_gss_parms) argument
91 #define SVCAUTH_WRAP(auth, xdrs, xfunc, xwhere) \ argument
92 ((*((auth)->svc_ah_ops.svc_ah_wrap))(auth, xdrs, xfunc, xwhere))
93 #define SVCAUTH_UNWRAP(auth, xdrs, xfunc, xwhere) \ argument
94 ((*((auth)->svc_ah_ops.svc_ah_unwrap))(auth, xdrs, xfunc, xwhere))
/illumos-gate/usr/src/lib/libpam/
H A Dpam.conf39 login auth required pam_dhkeys.so.1
48 rlogin auth required pam_dhkeys.so.1
55 krlogin auth required pam_krb5.so.1
61 rsh auth required pam_unix_cred.so.1
66 krsh auth required pam_krb5.so.1
71 ktelnet auth required pam_krb5.so.1
76 ppp auth required pam_dhkeys.so.1
77 ppp auth required pam_unix_cred.so.1
78 ppp auth required pam_unix_auth.so.1
79 ppp auth required pam_dial_auth.so.1
[all …]
/illumos-gate/usr/src/stand/lib/fs/nfs/
H A Dauth_unix.c69 #define AUTH_PRIVATE(auth) ((struct audata *)auth->ah_private) argument
85 AUTH *auth; in authunix_create() local
91 auth = (AUTH *) bkmem_alloc(sizeof (*auth)); in authunix_create()
92 if (auth == NULL) { in authunix_create()
138 marshal_new_auth(auth); in authunix_create()
139 return (auth); in authunix_create()
168 au = AUTH_PRIVATE(auth); in authunix_validate()
182 marshal_new_auth(auth); in authunix_validate()
220 marshal_new_auth(auth); in authunix_refresh()
238 bkmem_free(auth->ah_verf.oa_base, auth->ah_verf.oa_length); in authunix_destroy()
[all …]
/illumos-gate/usr/src/lib/libnsl/rpc/
H A Dauth_sys.c72 #define AUTH_PRIVATE(auth) ((struct audata *)auth->ah_private) argument
92 AUTH *auth; in authsys_create() local
98 auth = malloc(sizeof (*auth)); in authsys_create()
99 if (auth == NULL) { in authsys_create()
108 free(auth); in authsys_create()
143 free(auth); in authsys_create()
154 return (auth); in authsys_create()
260 au = AUTH_PRIVATE(auth); in authsys_validate()
324 authsys_destroy(AUTH *auth) in authsys_destroy() argument
332 free(auth->ah_private); in authsys_destroy()
[all …]
H A Dauth_des.c130 AUTH *auth; in authdes_pk_seccreate() local
137 auth = malloc(sizeof (AUTH)); in authdes_pk_seccreate()
138 if (auth == NULL) { in authdes_pk_seccreate()
190 auth->ah_key = *ckey; in authdes_pk_seccreate()
204 return (auth); in authdes_pk_seccreate()
207 if (auth) in authdes_pk_seccreate()
208 free(auth); in authdes_pk_seccreate()
234 authdes_nextverf(AUTH *auth) in authdes_nextverf() argument
419 ad->ad_xkey = auth->ah_key; in authdes_refresh()
438 authdes_destroy(AUTH *auth) in authdes_destroy() argument
[all …]
/illumos-gate/usr/src/lib/smbsrv/libmlsvc/common/
H A Dnetr_ssp.c162 strlen(auth->hostname) * 2 + strlen(auth->fqdn_domain) * 2; in netr_ssp_init()
247 auth->clh_seqnum = 0; in netr_ssp_recv()
338 auth->clh_seqnum++; in netr_ssp_make_token()
357 auth->session_key.key, auth->session_key.len, in netr_ssp_make_token()
380 auth->rpc_seal_key.key, auth->rpc_seal_key.len, in netr_ssp_make_token()
404 if (netr_ssp_derive_key(auth->session_key.key, auth->session_key.len, in netr_ssp_make_token()
456 if (netr_ssp_derive_key(auth->session_key.key, auth->session_key.len, in netr_ssp_check_token()
490 auth->clh_seqnum++; in netr_ssp_check_token()
501 auth->rpc_seal_key.key, auth->rpc_seal_key.len, in netr_ssp_check_token()
534 auth->session_key.key, auth->session_key.len, in netr_ssp_check_token()
[all …]
/illumos-gate/usr/src/cmd/getent/
H A Ddogetauthattr.c34 putauthattr(const authattr_t *auth, FILE *fp) in putauthattr() argument
40 if (auth == NULL) in putauthattr()
44 auth->name != NULL ? auth->name : "", in putauthattr()
45 auth->res1 != NULL ? auth->res1 : "", in putauthattr()
46 auth->res2 != NULL ? auth->res2 : "", in putauthattr()
47 auth->short_desc != NULL ? auth->short_desc : "", in putauthattr()
48 auth->long_desc != NULL ? auth->long_desc : "") == EOF) in putauthattr()
50 attrs = auth->attr; in putauthattr()
/illumos-gate/usr/src/lib/rpcsec_gss/
H A Drpcsec_gss.c95 #define AUTH_PRIVATE(auth) ((rpc_gss_data *)auth->ah_private) argument
160 if ((auth = (AUTH *) malloc(sizeof (*auth))) != NULL)
250 AUTH *auth;
272 memset((char *)auth, 0, sizeof (*auth));
429 AUTH *auth; in __rpc_gss_set_defaults()
565 AUTH *auth; in rpc_gss_marshall()
654 AUTH *auth; in rpc_gss_refresh()
718 AUTH *auth; in rpc_gss_destroy()
725 free(auth);
735 AUTH *auth; in rpc_gss_destroy_pvt()
[all …]
/illumos-gate/usr/src/uts/common/rpc/sec/
H A Dauth_kern.c99 AUTH *auth = (AUTH *)buf; in authkern_init() local
101 auth->ah_ops = &auth_kern_ops; in authkern_init()
102 auth->ah_cred.oa_flavor = AUTH_UNIX; in authkern_init()
103 auth->ah_verf = _null_auth; in authkern_init()
113 authkern_nextverf(AUTH *auth) in authkern_nextverf() argument
130 ASSERT(auth->ah_cred.oa_flavor == AUTH_SYS); in authkern_marshal()
131 ASSERT(auth->ah_verf.oa_flavor == AUTH_NONE); in authkern_marshal()
132 ASSERT(auth->ah_verf.oa_length == 0); in authkern_marshal()
217 auth->ah_cred.oa_base = sercred; in authkern_marshal()
252 authkern_destroy(AUTH *auth) in authkern_destroy() argument
[all …]
H A Dauth_loopb.c100 AUTH *auth = (AUTH *)buf; in authloopback_init() local
102 auth->ah_ops = &authloopback_ops; in authloopback_init()
103 auth->ah_cred.oa_flavor = AUTH_LOOPBACK; in authloopback_init()
104 auth->ah_verf = _null_auth; in authloopback_init()
114 authloopback_nextverf(AUTH *auth) in authloopback_nextverf() argument
134 ASSERT(auth->ah_verf.oa_flavor == AUTH_NONE); in authloopback_marshal()
135 ASSERT(auth->ah_verf.oa_length == 0); in authloopback_marshal()
222 auth->ah_cred.oa_base = sercred; in authloopback_marshal()
230 (xdr_opaque_auth(xdrs, &(auth->ah_verf)))) in authloopback_marshal()
257 authloopback_destroy(register AUTH *auth) in authloopback_destroy() argument
[all …]
H A Dauth_none.c73 AUTH *auth = (AUTH *)buf; in authnone_init() local
75 auth->ah_ops = &auth_none_ops; in authnone_init()
85 auth->ah_cred = auth->ah_verf = _null_auth; in authnone_init()
95 authnone_nextverf(AUTH *auth) in authnone_nextverf() argument
102 authnone_marshal(AUTH *auth, XDR *xdrs, struct cred *cr) in authnone_marshal() argument
123 if ((xdr_opaque_auth(xdrs, &(auth->ah_cred))) && in authnone_marshal()
124 (xdr_opaque_auth(xdrs, &(auth->ah_verf)))) in authnone_marshal()
132 authnone_validate(AUTH *auth, struct opaque_auth *verf) in authnone_validate() argument
139 authnone_refresh(AUTH *auth, struct rpc_msg *msg, cred_t *cr) in authnone_refresh() argument
145 authnone_destroy(AUTH *auth) in authnone_destroy() argument
[all …]
H A Dauth_des.c60 #define AUTH_PRIVATE(auth) (struct ad_private *)auth->ah_private argument
109 AUTH *auth; in authdes_create() local
123 auth = ALLOC(AUTH); in authdes_create()
176 auth->ah_key = *ckey; in authdes_create()
189 *retauth = auth; in authdes_create()
199 if (auth != NULL) in authdes_create()
200 FREE(auth, sizeof (AUTH)); in authdes_create()
213 authdes_nextverf(AUTH *auth) in authdes_nextverf() argument
392 ad->ad_xkey = auth->ah_key; in authdes_refresh()
411 authdes_destroy(AUTH *auth) in authdes_destroy() argument
[all …]
/illumos-gate/usr/src/uts/common/rpc/sec_gss/
H A Drpcsec_gss.c101 #define AUTH_PRIVATE(auth) ((rpc_gss_data *)auth->ah_private) argument
124 AUTH *auth; member
328 auth = current->auth; in rpc_gss_secget()
341 if (!auth) { in rpc_gss_secget()
366 new->auth = auth; in rpc_gss_secget()
407 if (cur->auth == auth) { in rpc_gss_secfree()
478 kmem_free((char *)auth, sizeof (*auth)); in rpc_gss_seccreate()
516 kmem_free((char *)auth, sizeof (*auth)); in rpc_gss_seccreate()
587 bzero((char *)auth, sizeof (*auth));
1088 AUTH *auth; in rpc_gss_refresh()
[all …]
/illumos-gate/usr/src/lib/libslp/javalib/com/sun/slp/
H A DSAttrMsg.java141 SrvLocMsg makeReply(Vector attrs, Hashtable auth) in makeReply() argument
150 if (auth != null) { in makeReply()
151 AuthBlock selectedAuth = AuthBlock.getEquivalentAuth(spi, auth); in makeReply()
152 auth = null; in makeReply()
154 auth = new Hashtable(); in makeReply()
155 auth.put(spi, selectedAuth); in makeReply()
161 hdr.parseAttributeVectorOut(attrs, 0, (auth != null), in makeReply()
162 auth, baos, true); in makeReply()
173 AuthBlock.desc(auth) + in makeReply()
H A DSSrvMsg.java176 Hashtable auth = null; in makeReply() local
179 auth = (Hashtable)URLSignatures.get(surl); in makeReply()
181 AuthBlock.getEquivalentAuth(spi, auth); in makeReply()
182 auth = null; in makeReply()
184 auth = new Hashtable(); in makeReply()
185 auth.put(spi, selectedAuth); in makeReply()
189 (auth != null ? in makeReply()
198 (auth != null), in makeReply()
199 auth, in makeReply()
/illumos-gate/usr/src/lib/libsldap/common/
H A Dns_connect.c722 if (auth->auth.saslmech == NS_LDAP_SASL_GSSAPI) { in makeConnection()
775 if (auth->auth.saslmech == NS_LDAP_SASL_GSSAPI) { in makeConnection()
973 con->auth = __ns_ldap_dupAuth(auth); in makeConnection()
2292 switch (auth->auth.type) { in createSession()
2314 if (auth->auth.type == NS_LDAP_AUTH_SASL && in createSession()
2315 auth->auth.saslmech == NS_LDAP_SASL_GSSAPI) in createSession()
2454 auth->auth.saslopt); in doSASLBind()
2481 switch (auth->auth.saslmech) { in doSASLBind()
2604 "mechanism (%d)"), auth->auth.saslmech); in doSASLBind()
2660 bindType = auth->auth.type == NS_LDAP_AUTH_TLS ? in performBind()
[all …]
/illumos-gate/usr/src/lib/fm/topo/modules/common/pcibus/
H A Dpcibus_hba.c79 instance, NULL, auth, NULL, NULL, NULL); in pci_scsi_device_create()
138 instance, NULL, auth, NULL, NULL, NULL); in pci_smp_device_create()
172 instance, NULL, auth, NULL, NULL, NULL); in pci_iport_device_create()
197 nvlist_t *auth; in pci_iports_instantiate() local
201 auth = topo_mod_auth(mod, parent); in pci_iports_instantiate()
231 pci_scsi_device_create(mod, auth, iport, sd, in pci_iports_instantiate()
238 pci_scsi_device_create(mod, auth, iport, in pci_iports_instantiate()
256 nvlist_free(auth); in pci_iports_instantiate()
264 nvlist_t *fmri, *auth; in pci_receptacle_instantiate() local
285 auth = topo_mod_auth(mod, parent); in pci_receptacle_instantiate()
[all …]
/illumos-gate/usr/src/uts/common/io/comstar/port/iscsit/
H A Discsit_authclient.c176 conn_auth_t *auth = &lsm->icl_auth; in iscsit_verify_chap_resp() local
179 if (auth->ca_use_radius == B_TRUE) { in iscsit_verify_chap_resp()
182 struct sockaddr_storage *sa = &auth->ca_radius_server; in iscsit_verify_chap_resp()
205 bcopy(auth->ca_radius_secret, in iscsit_verify_chap_resp()
209 auth->ca_radius_secretlen; in iscsit_verify_chap_resp()
212 auth->ca_ini_chapuser, in iscsit_verify_chap_resp()
213 auth->ca_tgt_chapuser, in iscsit_verify_chap_resp()
231 if (auth->ca_ini_chapsecretlen == 0) { in iscsit_verify_chap_resp()
243 auth->ca_ini_chapsecret, auth->ca_ini_chapsecretlen, in iscsit_verify_chap_resp()
/illumos-gate/usr/src/lib/libnsl/nss/
H A Dgetauthattr.c66 authstr_t *auth = (authstr_t *)ent; in str2authattr() local
85 auth->name = _strtok_escape(buffer, sep, &last); in str2authattr()
86 auth->res1 = _strtok_escape(NULL, sep, &last); in str2authattr()
87 auth->res2 = _strtok_escape(NULL, sep, &last); in str2authattr()
88 auth->short_desc = _strtok_escape(NULL, sep, &last); in str2authattr()
89 auth->long_desc = _strtok_escape(NULL, sep, &last); in str2authattr()
90 auth->attr = _strtok_escape(NULL, sep, &last); in str2authattr()
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/rcache/
H A Drc_conv.c26 krb5_auth_to_rep(krb5_context context, krb5_tkt_authent *auth, krb5_donot_replay *rep) in krb5_auth_to_rep() argument
29 rep->cusec = auth->authenticator->cusec; in krb5_auth_to_rep()
30 rep->ctime = auth->authenticator->ctime; in krb5_auth_to_rep()
31 if ((retval = krb5_unparse_name(context, auth->ticket->server, &rep->server))) in krb5_auth_to_rep()
33 if ((retval = krb5_unparse_name(context, auth->authenticator->client, in krb5_auth_to_rep()
/illumos-gate/usr/src/lib/fm/topo/modules/i86pc/chip/
H A Dchip_intel.c145 RANK, rank, NULL, auth, part, rev, serial); in mc_add_ranks()
360 const char *name, nvlist_t *auth, nvlist_t *nvl) in mc_nb_create() argument
435 auth, channel_nvl[channel], maxdimms, in mc_nb_create()
471 NULL, auth, NULL, NULL, NULL); in mc_rank_create_v1()
578 NULL, auth, NULL, NULL, NULL); in mc_dimm_create_v1()
797 nvlist_t *auth, nvlist_t *mc_nvl, uint_t id) in mc_imc_create_v1() argument
885 nvlist_t *auth, nvlist_t *nvl) in mc_nb_create_v1() argument
913 const char *name, nvlist_t *auth) in mc_node_create() argument
948 rc = mc_nb_create_v1(mod, pnode, name, auth, nvl); in mc_node_create()
959 const char *name, nvlist_t *auth) in onchip_mc_create() argument
[all …]

12345678