Home
last modified time | relevance | path

Searched refs:cred (Results 1 – 25 of 444) sorted by relevance

12345678910>>...18

/titanic_41/usr/src/lib/gss_mechs/mech_krb5/mech/
H A Dacquire_cred_with_pw.c97 acquire_accept_cred_with_pw(context, minor_status, desired_name, password, cred) in acquire_accept_cred_with_pw() argument
102 krb5_gss_cred_id_rec *cred;
112 acquire_init_cred_with_pw(context, minor_status, desired_name, password, cred) in acquire_init_cred_with_pw() argument
117 krb5_gss_cred_id_rec *cred;
125 cred->ccache = NULL;
188 cred->ccache = ccache2;
224 krb5_gss_cred_id_t cred; local
291 if ((cred = (krb5_gss_cred_id_t)
297 memset(cred, 0, sizeof (krb5_gss_cred_id_rec));
299 cred->usage = cred_usage;
[all …]
H A Dacquire_cred.c146 acquire_accept_cred(context, minor_status, desired_name, output_princ, cred) in acquire_accept_cred() argument
151 krb5_gss_cred_id_rec *cred;
159 cred->keytab = NULL;
212 &cred->rcache))) {
221 cred->keytab = kt;
234 acquire_init_cred(context, minor_status, desired_name, output_princ, cred) in acquire_init_cred() argument
239 krb5_gss_cred_id_rec *cred;
250 cred->ccache = NULL;
401 cred->tgt_expire = creds.times.endtime;
409 cred->tgt_expire = creds.times.endtime;
[all …]
H A Dinq_cred.c87 krb5_gss_cred_id_t cred; local
112 if ((major = kg_get_defcred(minor_status, (gss_cred_id_t *)&cred)) &&
125 cred = (krb5_gss_cred_id_t) cred_handle;
134 code = k5_mutex_lock(&cred->lock);
140 if (cred->tgt_expire > 0) {
141 if ((lifetime = cred->tgt_expire - now) < 0)
148 if (cred->princ &&
149 (code = krb5_copy_principal(context, cred->princ, &ret_name))) {
150 k5_mutex_unlock(&cred->lock);
161 (cred->prerfc_mech &&
[all …]
H A Drel_cred.c34 krb5_gss_cred_id_t cred; local
55 cred = (krb5_gss_cred_id_t)*cred_handle;
57 k5_mutex_destroy(&cred->lock);
61 if (cred->ccache) {
71 if (strcmp("MEMORY", krb5_cc_get_type(context, cred->ccache)) == 0)
72 code1 = krb5_cc_destroy(context, cred->ccache);
74 code1 = krb5_cc_close(context, cred->ccache);
78 if (cred->keytab)
79 code2 = krb5_kt_close(context, cred->keytab);
83 if (cred->rcache)
[all …]
H A Dadd_cred.c87 krb5_gss_cred_id_t cred; local
134 cred = (krb5_gss_cred_id_t) input_cred_handle;
135 k5_mutex_assert_locked(&cred->lock);
140 if (!((cred->usage == cred_usage) ||
141 ((cred->usage == GSS_C_BOTH) &&
150 if ((g_OID_equal(desired_mech, gss_mech_krb5_old) && cred->prerfc_mech) ||
151 (g_OID_equal(desired_mech, gss_mech_krb5) && cred->rfc_mech)) {
177 cred->princ)) {
182 int kret1 = krb5_unparse_name(context, cred->princ, &s_princ);
219 new_cred->prerfc_mech = cred->prerfc_mech;
[all …]
H A Dset_allowable_enctypes.c72 krb5_gss_cred_id_t cred; in gss_krb5int_set_allowable_enctypes() local
90 cred = (krb5_gss_cred_id_t) cred_handle; in gss_krb5int_set_allowable_enctypes()
100 kerr = k5_mutex_lock(&cred->lock); in gss_krb5int_set_allowable_enctypes()
103 if (cred->req_enctypes) in gss_krb5int_set_allowable_enctypes()
104 free(cred->req_enctypes); in gss_krb5int_set_allowable_enctypes()
105 cred->req_enctypes = NULL; in gss_krb5int_set_allowable_enctypes()
106 k5_mutex_unlock(&cred->lock); in gss_krb5int_set_allowable_enctypes()
119 kerr = k5_mutex_lock(&cred->lock); in gss_krb5int_set_allowable_enctypes()
124 if (cred->req_enctypes) in gss_krb5int_set_allowable_enctypes()
125 free(cred->req_enctypes); in gss_krb5int_set_allowable_enctypes()
[all …]
/titanic_41/usr/src/uts/common/fs/sockfs/
H A Dsockcommon.h49 struct cred *, int *);
53 struct cred *);
54 extern int socket_accept(struct sonode *, int, struct cred *, struct sonode **);
55 extern int socket_listen(struct sonode *, int, struct cred *);
57 socklen_t, int, int, struct cred *);
59 boolean_t, struct cred *);
61 struct cred *);
62 extern int socket_shutdown(struct sonode *, int, struct cred *);
64 int, struct cred *);
66 socklen_t, struct cred *);
[all …]
H A Dsock_notsupp.c38 sock_upper_handle_t upper, struct cred *cr) in sock_accept_notsupp()
46 socklen_t namelen, struct cred *cr) in sock_bind_notsupp()
54 struct cred *cr) in sock_listen_notsupp()
63 struct cred *cr) in sock_connect_notsupp()
71 socklen_t *len, struct cred *cr) in sock_getsockname_notsupp()
79 socklen_t *addrlen, struct cred *cr) in sock_getpeername_notsupp()
87 int option_name, void *optval, socklen_t *optlenp, struct cred *cr) in sock_getsockopt_notsupp()
95 int option_name, const void *optval, socklen_t optlen, struct cred *cr) in sock_setsockopt_notsupp()
103 struct msghdr *msg, struct cred *cr) in sock_send_notsupp()
111 struct nmsghdr *msg, struct cred *cr) in sock_senduio_notsupp()
[all …]
H A Dsockcommon_vnops.c56 static int socket_vop_open(struct vnode **, int, struct cred *,
59 struct cred *, caller_context_t *);
61 struct cred *, caller_context_t *);
63 struct cred *, caller_context_t *);
65 struct cred *, int32_t *, caller_context_t *);
69 struct cred *, caller_context_t *);
71 struct cred *, caller_context_t *);
72 static int socket_vop_access(struct vnode *, int, int, struct cred *,
74 static int socket_vop_fsync(struct vnode *, int, struct cred *,
76 static void socket_vop_inactive(struct vnode *, struct cred *,
[all …]
/titanic_41/usr/src/uts/common/sys/
H A Dksocket.h85 extern int ksocket_socket(ksocket_t *, int, int, int, int, struct cred *);
87 struct cred *);
88 extern int ksocket_listen(ksocket_t, int, struct cred *);
90 ksocket_t *, struct cred *);
92 struct cred *);
94 struct cred *);
96 struct sockaddr *, socklen_t, size_t *, struct cred *);
98 struct cred *);
100 struct cred *);
102 struct cred *);
[all …]
/titanic_41/usr/src/lib/libnsl/rpc/
H A Dsvcauth_des.c135 struct authdes_cred *cred; in __svcauth_des() local
162 cred = (struct authdes_cred *)&area->area_cred; in __svcauth_des()
171 cred->adc_namekind = IXDR_GET_ENUM(ixdr, enum authdes_namekind); in __svcauth_des()
172 switch (cred->adc_namekind) { in __svcauth_des()
177 cred->adc_fullname.name = area->area_netname; in __svcauth_des()
178 (void) memcpy(cred->adc_fullname.name, ixdr, (uint_t)namelen); in __svcauth_des()
179 cred->adc_fullname.name[namelen] = 0; in __svcauth_des()
181 cred->adc_fullname.key.key.high = (uint32_t)*ixdr++; in __svcauth_des()
182 cred->adc_fullname.key.key.low = (uint32_t)*ixdr++; in __svcauth_des()
183 cred->adc_fullname.window = (uint32_t)*ixdr++; in __svcauth_des()
[all …]
H A Dauthdes_prot.c50 xdr_authdes_cred(XDR *xdrs, struct authdes_cred *cred) in xdr_authdes_cred() argument
55 if (!xdr_enum(xdrs, (enum_t *)&cred->adc_namekind)) in xdr_authdes_cred()
57 switch (cred->adc_namekind) { in xdr_authdes_cred()
59 if (!xdr_string(xdrs, &cred->adc_fullname.name, in xdr_authdes_cred()
62 if (!xdr_opaque(xdrs, (caddr_t)&cred->adc_fullname.key, in xdr_authdes_cred()
65 return (xdr_opaque(xdrs, (caddr_t)&cred->adc_fullname.window, in xdr_authdes_cred()
66 (uint_t)sizeof (cred->adc_fullname.window))); in xdr_authdes_cred()
68 return (xdr_opaque(xdrs, (caddr_t)&cred->adc_nickname, in xdr_authdes_cred()
69 (uint_t)sizeof (cred->adc_nickname))); in xdr_authdes_cred()
/titanic_41/usr/src/uts/common/io/
H A Dcons.c71 static int cnopen(dev_t *, int, int, struct cred *);
72 static int cnclose(dev_t, int, int, struct cred *);
73 static int cnread(dev_t, struct uio *, struct cred *);
74 static int cnwrite(dev_t, struct uio *, struct cred *);
75 static int cnioctl(dev_t, int, intptr_t, int, struct cred *, int *);
275 cnopen(dev_t *dev, int flag, int state, struct cred *cred) in cnopen() argument
281 ASSERT(cred != NULL); in cnopen()
290 if (VOP_OPEN(&vsconsvp, FREAD | FWRITE, cred, NULL) != 0) { in cnopen()
323 if ((err = VOP_OPEN(&vp, flag, cred, NULL)) != 0) in cnopen()
336 (void) VOP_CLOSE(vp, flag, 1, (offset_t)0, cred, NULL); in cnopen()
[all …]
/titanic_41/usr/src/cmd/picl/plugins/sun4u/lw8/fruaccess/
H A Dlibfruaccess.c56 door_cred_t *cred);
58 int max_sections, door_cred_t *cred);
59 int fru_get_num_segments(section_hdl_t section, door_cred_t *cred);
61 int max_segments, door_cred_t *cred);
63 section_hdl_t *newsection, door_cred_t *cred);
65 section_hdl_t *newsection, door_cred_t *cred);
67 size_t nbytes, door_cred_t *cred);
70 door_cred_t *cred);
71 int fru_get_num_packets(segment_hdl_t segment, door_cred_t *cred);
73 int max_packets, door_cred_t *cred);
[all …]
/titanic_41/usr/src/uts/common/fs/dev/
H A Dsdev_vnops.c319 sdev_open(struct vnode **vpp, int flag, struct cred *cred, caller_context_t *ct) in sdev_open() argument
343 error = VOP_OPEN(&(dv->sdev_attrvp), flag, cred, ct); in sdev_open()
351 offset_t offset, struct cred *cred, caller_context_t *ct) in sdev_close() argument
369 return (VOP_CLOSE(dv->sdev_attrvp, flag, count, offset, cred, ct)); in sdev_close()
374 sdev_read(struct vnode *vp, struct uio *uio, int ioflag, struct cred *cred, in sdev_read() argument
394 error = VOP_READ(dv->sdev_attrvp, uio, ioflag, cred, ct); in sdev_read()
401 sdev_write(struct vnode *vp, struct uio *uio, int ioflag, struct cred *cred, in sdev_write() argument
421 error = VOP_WRITE(dv->sdev_attrvp, uio, ioflag, cred, ct); in sdev_write()
433 struct cred *cred, int *rvalp, caller_context_t *ct) in sdev_ioctl() argument
445 return (VOP_IOCTL(dv->sdev_attrvp, cmd, arg, flag, cred, rvalp, ct)); in sdev_ioctl()
[all …]
H A Dsdev_vtops.c152 void **arg, cred_t *cred, void *whatever, char *whichever) in devvt_create_rvp() argument
185 struct pathname *pnp, int flags, struct vnode *rdir, struct cred *cred, in devvt_lookup() argument
202 error = devname_lookup_func(sdvp, nm, vpp, cred, in devvt_lookup()
230 devvt_create_snode(struct sdev_node *ddv, char *nm, struct cred *cred, int type) in devvt_create_snode() argument
249 error = sdev_mknode(ddv, nm, &sdv, NULL, NULL, NULL, cred, SDEV_INIT); in devvt_create_snode()
262 NULL, cred, SDEV_READY); in devvt_create_snode()
270 (void *)link, cred, SDEV_READY); in devvt_create_snode()
354 devvt_cleandir(struct vnode *dvp, struct cred *cred) in devvt_cleandir() argument
399 devvt_create_snode(sdvp, nm, cred, SDEV_VATTR); in devvt_cleandir()
420 devvt_create_snode(sdvp, DEVVT_ACTIVE_NAME, cred, SDEV_VLINK); in devvt_cleandir()
[all …]
/titanic_41/usr/src/uts/common/inet/iptun/
H A Diptun_ctl.c39 iptun_ioc_create(void *karg, intptr_t arg, int mode, cred_t *cred, int *rvalp) in iptun_ioc_create() argument
41 return (iptun_create(karg, cred)); in iptun_ioc_create()
46 iptun_ioc_delete(void *karg, intptr_t arg, int mode, cred_t *cred, int *rvalp) in iptun_ioc_delete() argument
48 return (iptun_delete(*(datalink_id_t *)karg, cred)); in iptun_ioc_delete()
53 iptun_ioc_modify(void *karg, intptr_t arg, int mode, cred_t *cred, int *rvalp) in iptun_ioc_modify() argument
55 return (iptun_modify(karg, cred)); in iptun_ioc_modify()
60 iptun_ioc_info(void *karg, intptr_t arg, int mode, cred_t *cred, int *rvalp) in iptun_ioc_info() argument
62 return (iptun_info(karg, cred)); in iptun_ioc_info()
67 iptun_ioc_set_6to4relay(void *karg, intptr_t arg, int mode, cred_t *cred, in iptun_ioc_set_6to4relay() argument
71 netstack_t *ns = netstack_find_by_cred(cred); in iptun_ioc_set_6to4relay()
[all …]
/titanic_41/usr/src/uts/common/gssapi/mechs/krb5/mech/
H A Dval_cred.c40 krb5_gss_cred_id_t cred; in krb5_gss_validate_cred_1() local
49 cred = (krb5_gss_cred_id_t) cred_handle; in krb5_gss_validate_cred_1()
51 code = k5_mutex_lock(&cred->lock); in krb5_gss_validate_cred_1()
57 if (cred->ccache) { in krb5_gss_validate_cred_1()
58 if ((code = krb5_cc_get_principal(context, cred->ccache, &princ))) { in krb5_gss_validate_cred_1()
59 k5_mutex_unlock(&cred->lock); in krb5_gss_validate_cred_1()
63 if (!krb5_principal_compare(context, princ, cred->princ)) { in krb5_gss_validate_cred_1()
64 k5_mutex_unlock(&cred->lock); in krb5_gss_validate_cred_1()
91 krb5_gss_cred_id_t cred = (krb5_gss_cred_id_t) cred_handle; local
92 k5_mutex_assert_locked(&cred->lock);
[all …]
/titanic_41/usr/src/lib/libfru/libfruraw/
H A Dfru_access.h82 int fru_get_num_sections(container_hdl_t container, door_cred_t *cred);
84 int max_sections, door_cred_t *cred);
89 section_hdl_t *newsection, door_cred_t *cred);
91 door_cred_t *cred);
93 door_cred_t *cred);
95 segment_hdl_t *newsegment, door_cred_t *cred);
96 int fru_get_num_packets(segment_hdl_t segment, door_cred_t *cred);
98 int max_packets, door_cred_t *cred);
100 size_t nbytes, door_cred_t *cred);
102 packet_hdl_t *newpacket, door_cred_t *cred);
[all …]
/titanic_41/usr/src/cmd/picl/plugins/sun4u/lib/fruaccess/
H A Dfru_access.h84 int fru_get_num_sections(container_hdl_t container, door_cred_t *cred);
86 int max_sections, door_cred_t *cred);
91 section_hdl_t *newsection, door_cred_t *cred);
93 door_cred_t *cred);
95 door_cred_t *cred);
97 segment_hdl_t *newsegment, door_cred_t *cred);
98 int fru_get_num_packets(segment_hdl_t segment, door_cred_t *cred);
100 int max_packets, door_cred_t *cred);
102 size_t nbytes, door_cred_t *cred);
104 packet_hdl_t *newpacket, door_cred_t *cred);
[all …]
/titanic_41/usr/src/uts/common/rpc/sec/
H A Dsvcauthdes.c141 struct authdes_cred *cred; in _svcauth_des() local
167 cred = (struct authdes_cred *)&area->area_cred; in _svcauth_des()
174 cred->adc_namekind = IXDR_GET_ENUM(ixdr, enum authdes_namekind); in _svcauth_des()
175 switch (cred->adc_namekind) { in _svcauth_des()
180 cred->adc_fullname.name = area->area_netname; in _svcauth_des()
181 bcopy(ixdr, cred->adc_fullname.name, namelen); in _svcauth_des()
182 cred->adc_fullname.name[namelen] = 0; in _svcauth_des()
184 cred->adc_fullname.key.key.high = (uint32_t)*ixdr++; in _svcauth_des()
185 cred->adc_fullname.key.key.low = (uint32_t)*ixdr++; in _svcauth_des()
186 cred->adc_fullname.window = (uint32_t)*ixdr++; in _svcauth_des()
[all …]
H A Dauthdesprt.c51 xdr_authdes_cred(XDR *xdrs, struct authdes_cred *cred) in xdr_authdes_cred() argument
56 ATTEMPT(xdr_enum(xdrs, (enum_t *)&cred->adc_namekind)); in xdr_authdes_cred()
57 switch (cred->adc_namekind) { in xdr_authdes_cred()
59 ATTEMPT(xdr_string(xdrs, &cred->adc_fullname.name, in xdr_authdes_cred()
61 ATTEMPT(xdr_opaque(xdrs, (caddr_t)&cred->adc_fullname.key, in xdr_authdes_cred()
63 ATTEMPT(xdr_opaque(xdrs, (caddr_t)&cred->adc_fullname.window, in xdr_authdes_cred()
64 sizeof (cred->adc_fullname.window))); in xdr_authdes_cred()
67 ATTEMPT(xdr_int(xdrs, (int *)&cred->adc_nickname)); in xdr_authdes_cred()
/titanic_41/usr/src/cmd/krb5/klist/
H A Dklist.c541 flags_string(cred) in flags_string() argument
542 register krb5_creds *cred; in flags_string()
547 if (cred->ticket_flags & TKT_FLG_FORWARDABLE)
549 if (cred->ticket_flags & TKT_FLG_FORWARDED)
551 if (cred->ticket_flags & TKT_FLG_PROXIABLE)
553 if (cred->ticket_flags & TKT_FLG_PROXY)
555 if (cred->ticket_flags & TKT_FLG_MAY_POSTDATE)
557 if (cred->ticket_flags & TKT_FLG_POSTDATED)
559 if (cred->ticket_flags & TKT_FLG_INVALID)
561 if (cred->ticket_flags & TKT_FLG_RENEWABLE)
[all …]
/titanic_41/usr/src/lib/gss_mechs/mech_dh/backend/mech/
H A Dcred.c60 gss_cred_id_t *cred, /* The return credential */ in __dh_gss_acquire_cred() argument
70 if (minor == 0 || cred == 0) in __dh_gss_acquire_cred()
79 *cred = GSS_C_NO_CREDENTIAL; in __dh_gss_acquire_cred()
143 *cred = (gss_cred_id_t)dh_cred; in __dh_gss_acquire_cred()
174 gss_cred_id_t cred, /* cred of interest */ in __dh_gss_inquire_cred() argument
181 dh_cred_id_t crid = (dh_cred_id_t)cred; in __dh_gss_inquire_cred()
194 if (cred == GSS_C_NO_CREDENTIAL) { in __dh_gss_inquire_cred()
247 gss_cred_id_t cred, /* Cred to iquire about */ in __dh_gss_inquire_cred_by_mech() argument
267 major = __dh_gss_inquire_cred(ctx, minor, cred, name, in __dh_gss_inquire_cred_by_mech()
293 gss_cred_id_t *cred /* The cred to free */) in __dh_gss_release_cred() argument
[all …]
/titanic_41/usr/src/cmd/print/lpset/
H A Dlpset.c115 ns_cred_t *cred = NULL; in main() local
203 if ((cred = calloc(1, sizeof (*cred))) == NULL) { in main()
227 cred->passwd = passwd; in main()
228 cred->passwdType = NS_PW_INSECURE; /* use default */ in main()
229 cred->binddn = binddn; in main()
230 cred->host = host; in main()
231 cred->port = 0; /* use default */ in main()
232 cred->domainDN = NULL; /* use default */ in main()
265 if (cred != NULL) { in main()
266 printer_obj->cred = cred; in main()
[all …]

12345678910>>...18