Home
last modified time | relevance | path

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

123456789

/illumos-gate/usr/src/lib/libsecdb/common/
H A Dgetauthattr.c52 authstr_t auth; in getauthattr() local
66 authstr_t auth; in getauthnam() local
95 if (auth) { in free_authattr()
96 free(auth->name); in free_authattr()
97 free(auth->res1); in free_authattr()
98 free(auth->res2); in free_authattr()
102 free(auth); in free_authattr()
112 if (auth == NULL) in authstr2attr()
140 printf("name=%s\n", auth->name ? auth->name : empty); in print_authattr()
141 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.test27 do_test auth-1.1.1 {
39 do_test auth-1.1.2 {
42 do_test auth-1.2 {
45 do_test auth-1.3.1 {
55 do_test auth-1.3.2 {
58 do_test auth-1.3.3 {
61 do_test auth-1.4 {
65 do_test auth-1.5 {
74 do_test auth-1.6 {
90 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.h84 #define SVCAUTH_GSSPARMS(auth) ((svc_rpc_gss_parms_t *)&(auth)->svc_gss_parms) argument
93 #define SVCAUTH_WRAP(auth, xdrs, xfunc, xwhere) \ argument
94 ((*((auth)->svc_ah_ops.svc_ah_wrap))(auth, xdrs, xfunc, xwhere))
95 #define SVCAUTH_UNWRAP(auth, xdrs, xfunc, xwhere) \ argument
96 ((*((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.c132 AUTH *auth; in authdes_pk_seccreate() local
139 auth = malloc(sizeof (AUTH)); in authdes_pk_seccreate()
140 if (auth == NULL) { in authdes_pk_seccreate()
192 auth->ah_key = *ckey; in authdes_pk_seccreate()
206 return (auth); in authdes_pk_seccreate()
209 if (auth) in authdes_pk_seccreate()
210 free(auth); in authdes_pk_seccreate()
236 authdes_nextverf(AUTH *auth) in authdes_nextverf() argument
421 ad->ad_xkey = auth->ah_key; in authdes_refresh()
440 authdes_destroy(AUTH *auth) in authdes_destroy() argument
[all …]
/illumos-gate/usr/src/lib/smbsrv/libmlsvc/common/
H A Dnetr_ssp.c140 netr_info_t *auth = arg; in netr_ssp_init() local
156 strlen(auth->hostname) * 2 + strlen(auth->fqdn_domain) * 2; in netr_ssp_init()
224 netr_info_t *auth = arg; in netr_ssp_recv() local
241 auth->clh_seqnum = 0; in netr_ssp_recv()
310 auth->clh_seqnum++; in netr_ssp_sign()
328 auth->session_key.key, auth->session_key.len, in netr_ssp_sign()
340 auth->session_key.key, auth->session_key.len, in netr_ssp_sign()
395 auth->session_key.key, auth->session_key.len, in netr_ssp_verify()
436 auth->clh_seqnum++; in netr_ssp_verify()
451 auth->session_key.key, auth->session_key.len, in netr_ssp_verify()
[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
151 if ((auth = (AUTH *) malloc(sizeof (*auth))) != NULL)
237 AUTH *auth;
259 memset((char *)auth, 0, sizeof (*auth));
416 AUTH *auth; in __rpc_gss_set_defaults()
552 AUTH *auth; in rpc_gss_marshall()
641 AUTH *auth; in rpc_gss_refresh()
705 AUTH *auth; in rpc_gss_destroy()
712 free(auth);
722 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.c62 #define AUTH_PRIVATE(auth) (struct ad_private *)auth->ah_private argument
111 AUTH *auth; in authdes_create() local
125 auth = ALLOC(AUTH); in authdes_create()
178 auth->ah_key = *ckey; in authdes_create()
191 *retauth = auth; in authdes_create()
201 if (auth != NULL) in authdes_create()
202 FREE(auth, sizeof (AUTH)); in authdes_create()
215 authdes_nextverf(AUTH *auth) in authdes_nextverf() argument
394 ad->ad_xkey = auth->ah_key; in authdes_refresh()
413 authdes_destroy(AUTH *auth) in authdes_destroy() argument
[all …]
/illumos-gate/usr/src/uts/common/rpc/sec_gss/
H A Drpcsec_gss.c100 #define AUTH_PRIVATE(auth) ((rpc_gss_data *)auth->ah_private) argument
123 AUTH *auth; member
327 auth = current->auth; in rpc_gss_secget()
340 if (!auth) { in rpc_gss_secget()
365 new->auth = auth; in rpc_gss_secget()
406 if (cur->auth == auth) { in rpc_gss_secfree()
468 kmem_free((char *)auth, sizeof (*auth)); in rpc_gss_seccreate()
502 kmem_free((char *)auth, sizeof (*auth)); in rpc_gss_seccreate()
573 bzero((char *)auth, sizeof (*auth));
1074 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/sun4v/motherboard/
H A Dmotherboard.c244 mb_prop_set(tnode_t *node, nvlist_t *auth) in mb_prop_set() argument
288 nvlist_t *auth = topo_mod_auth(mod, parent); in mb_tnode_create() local
298 if (nvlist_add_string(auth, FM_FMRI_AUTH_CHASSIS, csn) != 0) { in mb_tnode_create()
301 nvlist_free(auth); in mb_tnode_create()
308 if (nvlist_add_string(auth, FM_FMRI_AUTH_PRODUCT_SN, psn) in mb_tnode_create()
312 nvlist_free(auth); in mb_tnode_create()
318 NULL, auth, part, NULL, serial); in mb_tnode_create()
329 nvlist_free(auth); in mb_tnode_create()
340 nvlist_free(auth); in mb_tnode_create()
345 mb_prop_set(ntn, auth); in mb_tnode_create()
[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.c68 authstr_t *auth = (authstr_t *)ent; in str2authattr() local
87 auth->name = _strtok_escape(buffer, sep, &last); in str2authattr()
88 auth->res1 = _strtok_escape(NULL, sep, &last); in str2authattr()
89 auth->res2 = _strtok_escape(NULL, sep, &last); in str2authattr()
90 auth->short_desc = _strtok_escape(NULL, sep, &last); in str2authattr()
91 auth->long_desc = _strtok_escape(NULL, sep, &last); in str2authattr()
92 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()

123456789