Home
last modified time | relevance | path

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

123456789

/titanic_44/usr/src/lib/libsecdb/common/
H A Dgetauthattr.c52 authstr_t auth; in getauthattr() local
55 (void) memset(&auth, 0, sizeof (authstr_t)); in getauthattr()
56 tmp = _getauthattr(&auth, buf, NSS_BUFLEN_AUTHATTR, &err); in getauthattr()
66 authstr_t auth; in getauthnam() local
72 (void) memset(&auth, 0, sizeof (authstr_t)); in getauthnam()
73 tmp = _getauthnam(name, &auth, buf, NSS_BUFLEN_AUTHATTR, &err); in getauthnam()
93 free_authattr(authattr_t *auth) in free_authattr() argument
95 if (auth) { in free_authattr()
96 free(auth->name); in free_authattr()
97 free(auth->res1); in free_authattr()
[all …]
/titanic_44/usr/src/lib/libbc/inc/include/rpc/
H A Dauth.h111 #define AUTH_NEXTVERF(auth) \ argument
112 ((*((auth)->ah_ops->ah_nextverf))(auth))
113 #define auth_nextverf(auth) \ argument
114 ((*((auth)->ah_ops->ah_nextverf))(auth))
116 #define AUTH_MARSHALL(auth, xdrs) \ argument
117 ((*((auth)->ah_ops->ah_marshal))(auth, xdrs))
118 #define auth_marshall(auth, xdrs) \ argument
119 ((*((auth)->ah_ops->ah_marshal))(auth, xdrs))
121 #define AUTH_VALIDATE(auth, verfp) \ argument
122 ((*((auth)->ah_ops->ah_validate))((auth), verfp))
[all …]
/titanic_44/usr/src/lib/libsqlite/test/
H A Dauth.test18 # $Id: auth.test,v 1.12 2003/12/07 00:24:35 drh Exp $
27 do_test auth-1.1.1 {
30 proc auth {code arg1 arg2 arg3 arg4} {
36 db authorizer ::auth
39 do_test auth-1.1.2 {
42 do_test auth-1.2 {
45 do_test auth-1.3.1 {
46 proc auth {code arg1 arg2 arg3 arg4} {
55 do_test auth-1.3.2 {
58 do_test auth-1.3.3 {
[all …]
/titanic_44/usr/src/uts/common/rpc/
H A Dauth.h253 #define AUTH_NEXTVERF(auth) \ argument
254 ((*((auth)->ah_ops->ah_nextverf))(auth))
255 #define auth_nextverf(auth) \ argument
256 ((*((auth)->ah_ops->ah_nextverf))(auth))
260 #define AUTH_MARSHALL(auth, xdrs, cred) \ argument
261 ((*((auth)->ah_ops->ah_marshal))(auth, xdrs, cred))
262 #define auth_marshall(auth, xdrs, cred) \ argument
263 ((*((auth)->ah_ops->ah_marshal))(auth, xdrs, cred))
265 #define AUTH_MARSHALL(auth, xdrs) \ argument
266 ((*((auth)->ah_ops->ah_marshal))(auth, xdrs))
[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))
/titanic_44/usr/src/lib/libpam/
H A Dpam.conf38 login auth requisite pam_authtok_get.so.1
39 login auth required pam_dhkeys.so.1
40 login auth required pam_unix_cred.so.1
41 login auth required pam_unix_auth.so.1
42 login auth required pam_dial_auth.so.1
46 rlogin auth sufficient pam_rhosts_auth.so.1
47 rlogin auth requisite pam_authtok_get.so.1
48 rlogin auth required pam_dhkeys.so.1
49 rlogin auth required pam_unix_cred.so.1
50 rlogin auth required pam_unix_auth.so.1
[all …]
/titanic_44/usr/src/stand/lib/fs/nfs/
H A Dauth_unix.c71 #define AUTH_PRIVATE(auth) ((struct audata *)auth->ah_private) argument
87 AUTH *auth; in authunix_create() local
93 auth = (AUTH *) bkmem_alloc(sizeof (*auth)); in authunix_create()
94 if (auth == NULL) { in authunix_create()
106 auth->ah_ops = authunix_ops(); in authunix_create()
107 auth->ah_private = (caddr_t)au; in authunix_create()
110 auth->ah_verf = au->au_shcred = _null_auth; in authunix_create()
130 bkmem_free(auth->ah_private, sizeof (struct audata)); in authunix_create()
131 bkmem_free((caddr_t)auth, sizeof (*auth)); in authunix_create()
138 bkmem_free(auth->ah_private, sizeof (struct audata)); in authunix_create()
[all …]
/titanic_44/usr/src/cmd/ssh/libssh/common/
H A Dauthfd.c115 ssh_request_reply(AuthenticationConnection *auth, Buffer *request, Buffer *reply) in ssh_request_reply() argument
125 if (atomicio(write, auth->fd, buf, 4) != 4 || in ssh_request_reply()
126 atomicio(write, auth->fd, buffer_ptr(request), in ssh_request_reply()
137 l = read(auth->fd, buf + 4 - len, len); in ssh_request_reply()
158 l = read(auth->fd, buf, l); in ssh_request_reply()
195 AuthenticationConnection *auth; in ssh_get_authentication_connection() local
207 auth = xmalloc(sizeof(*auth)); in ssh_get_authentication_connection()
208 auth->fd = sock; in ssh_get_authentication_connection()
209 buffer_init(&auth->identities); in ssh_get_authentication_connection()
210 auth->howmany = 0; in ssh_get_authentication_connection()
[all …]
/titanic_44/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()
111 auth->ah_ops = authsys_ops(); in authsys_create()
112 auth->ah_private = (caddr_t)au; in authsys_create()
113 auth->ah_verf = au->au_shcred = _null_auth; in authsys_create()
143 free(auth); in authsys_create()
152 auth->ah_cred = au->au_origcred; in authsys_create()
[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()
186 if (key_gendes(&auth->ah_key) < 0) { in authdes_pk_seccreate()
192 auth->ah_key = *ckey; in authdes_pk_seccreate()
197 auth->ah_cred.oa_flavor = AUTH_DES; in authdes_pk_seccreate()
198 auth->ah_verf.oa_flavor = AUTH_DES; in authdes_pk_seccreate()
199 auth->ah_ops = authdes_ops(); in authdes_pk_seccreate()
200 auth->ah_private = (caddr_t)ad; in authdes_pk_seccreate()
202 if (!authdes_refresh(auth, NULL)) { in authdes_pk_seccreate()
[all …]
/titanic_44/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
119 authkern_marshal(AUTH *auth, XDR *xdrs, struct cred *cr) in authkern_marshal() 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()
[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
121 authloopback_marshal(AUTH *auth, XDR *xdrs, struct cred *cr) in authloopback_marshal() argument
133 ASSERT(auth->ah_cred.oa_flavor == AUTH_LOOPBACK); in authloopback_marshal()
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()
[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()
141 if (auth == NULL || ad == NULL || ad->ad_fullname == NULL || in authdes_create()
165 if ((stat = key_gendes(&auth->ah_key)) != RPC_SUCCESS) { in authdes_create()
178 auth->ah_key = *ckey; in authdes_create()
183 auth->ah_cred.oa_flavor = AUTH_DES; in authdes_create()
184 auth->ah_verf.oa_flavor = AUTH_DES; in authdes_create()
185 auth->ah_ops = authdes_ops(); in authdes_create()
186 auth->ah_private = (caddr_t)ad; in authdes_create()
[all …]
/titanic_44/usr/src/lib/rpcsec_gss/
H A Drpcsec_gss.c95 #define AUTH_PRIVATE(auth) ((rpc_gss_data *)auth->ah_private) argument
118 AUTH *auth = NULL; local
151 if ((auth = (AUTH *) malloc(sizeof (*auth))) != NULL)
153 if (auth == NULL || ap == NULL) {
156 if (auth != NULL)
157 free((char *)auth);
186 if (!rpc_gss_seccreate_pvt(&gssstat, &minor_stat, auth, ap,
191 free((char *)auth);
202 rpc_gss_destroy(auth);
225 return (auth);
[all …]
/titanic_44/usr/src/uts/common/rpc/sec_gss/
H A Drpcsec_gss.c96 #define AUTH_PRIVATE(auth) ((rpc_gss_data *)auth->ah_private) argument
119 AUTH *auth; member
216 "%p\n", (void *)p->auth); in gssauth_zone_fini()
217 rpc_gss_destroy(p->auth); in gssauth_zone_fini()
266 AUTH *auth = NULL; in rpc_gss_secget() local
305 ap = AUTH_PRIVATE(current->auth); in rpc_gss_secget()
319 rpc_gss_destroy(current->auth); in rpc_gss_secget()
321 auth = NULL; in rpc_gss_secget()
323 auth = current->auth; in rpc_gss_secget()
336 if (!auth) { in rpc_gss_secget()
[all …]
/titanic_44/usr/src/uts/common/io/drm/
H A Ddrm_auth.c133 drm_auth_t auth; in drm_getmagic() local
137 auth.magic = fpriv->magic; in drm_getmagic()
141 auth.magic = old+1; in drm_getmagic()
142 if (!atomic_cmpset_int(&sequence, old, auth.magic)) in drm_getmagic()
144 } while (drm_find_file(dev, auth.magic)); in drm_getmagic()
145 fpriv->magic = auth.magic; in drm_getmagic()
146 (void) drm_add_magic(dev, fpriv, auth.magic); in drm_getmagic()
150 DRM_DEBUG("drm_getmagic: %u", auth.magic); in drm_getmagic()
152 DRM_COPYTO_WITH_RETURN((void *)data, &auth, sizeof (auth)); in drm_getmagic()
161 drm_auth_t auth; in drm_authmagic() local
[all …]
/titanic_44/usr/src/cmd/ssh/sshd/
H A DMakefile32 auth.o \
35 auth-options.o \
44 auth-bsdauth.o \
45 auth-chall.o \
46 auth-rhosts.o \
47 auth-krb4.o \
48 auth-krb5.o \
49 auth-pam.o \
50 auth-passwd.o \
51 auth-rsa.o \
[all …]
/titanic_44/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()
/titanic_44/usr/src/lib/libsldap/common/
H A Dns_connect.c479 (void) fprintf(fp, "tid= %d: AuthType=%d\n", t, cred->auth.type); in printCred()
480 (void) fprintf(fp, "tid= %d: TlsType=%d\n", t, cred->auth.tlstype); in printCred()
481 (void) fprintf(fp, "tid= %d: SaslMech=%d\n", t, cred->auth.saslmech); in printCred()
482 (void) fprintf(fp, "tid= %d: SaslOpt=%d\n", t, cred->auth.saslopt); in printCred()
512 printCred(fp, con->auth); in printConnection()
586 const ns_cred_t *auth, Connection **conp) in findConnection() argument
594 if (auth == NULL || conp == NULL) in findConnection()
616 printCred(stderr, auth); in findConnection()
635 if (__s_api_is_auth_matched(cp->auth, auth) == B_FALSE) in findConnection()
664 if (con->auth) in __s_api_freeConnection()
[all …]
/titanic_44/usr/src/lib/fm/topo/modules/common/pcibus/
H A Dpcibus_hba.c61 pci_scsi_device_create(topo_mod_t *mod, nvlist_t *auth, tnode_t *parent, in pci_scsi_device_create() argument
70 instance, NULL, auth, NULL, NULL, NULL); in pci_scsi_device_create()
121 pci_smp_device_create(topo_mod_t *mod, nvlist_t *auth, tnode_t *parent, in pci_smp_device_create() argument
129 instance, NULL, auth, NULL, NULL, NULL); in pci_smp_device_create()
155 pci_iport_device_create(topo_mod_t *mod, nvlist_t *auth, tnode_t *parent, in pci_iport_device_create() argument
163 instance, NULL, auth, NULL, NULL, NULL); in pci_iport_device_create()
188 nvlist_t *auth; in pci_iports_instantiate() local
192 auth = topo_mod_auth(mod, parent); in pci_iports_instantiate()
200 iport = pci_iport_device_create(mod, auth, parent, cn, i++); in pci_iports_instantiate()
222 pci_scsi_device_create(mod, auth, iport, sd, in pci_iports_instantiate()
[all …]
/titanic_44/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
255 if (nvlist_lookup_string(auth, FM_FMRI_AUTH_PRODUCT, &prod) == 0) in mb_prop_set()
258 if (nvlist_lookup_string(auth, FM_FMRI_AUTH_PRODUCT_SN, &psn) == 0) in mb_prop_set()
261 if (nvlist_lookup_string(auth, FM_FMRI_AUTH_CHASSIS, &csn) == 0) in mb_prop_set()
264 if (nvlist_lookup_string(auth, FM_FMRI_AUTH_SERVER, &server) == 0) in mb_prop_set()
288 nvlist_t *auth = topo_mod_auth(mod, parent); in mb_tnode_create() local
296 if (nvlist_lookup_string(auth, FM_FMRI_AUTH_CHASSIS, &pstr) != 0 && in mb_tnode_create()
298 if (nvlist_add_string(auth, FM_FMRI_AUTH_CHASSIS, csn) != 0) { in mb_tnode_create()
301 nvlist_free(auth); in mb_tnode_create()
306 if (nvlist_lookup_string(auth, FM_FMRI_AUTH_PRODUCT_SN, &pstr) != 0 && in mb_tnode_create()
[all …]
/titanic_44/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()
/titanic_44/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