Searched defs:cred (Results 1 - 25 of 242) sorted by relevance

12345678910

/illumos-gate/usr/src/lib/libnsl/rpc/
H A Dauthdes_prot.c50 xdr_authdes_cred(XDR *xdrs, struct authdes_cred *cred) argument
55 if (!xdr_enum(xdrs, (enum_t *)&cred->adc_namekind))
57 switch (cred->adc_namekind) {
59 if (!xdr_string(xdrs, &cred->adc_fullname.name,
62 if (!xdr_opaque(xdrs, (caddr_t)&cred->adc_fullname.key,
65 return (xdr_opaque(xdrs, (caddr_t)&cred->adc_fullname.window,
66 (uint_t)sizeof (cred->adc_fullname.window)));
68 return (xdr_opaque(xdrs, (caddr_t)&cred->adc_nickname,
69 (uint_t)sizeof (cred->adc_nickname)));
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/mech/
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
[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
234 krb5_gss_cred_id_t cred; local
[all...]
H A Dset_allowable_enctypes.c72 krb5_gss_cred_id_t cred; local
80 /* verify and valildate cred handle */
90 cred = (krb5_gss_cred_id_t) cred_handle;
100 kerr = k5_mutex_lock(&cred->lock);
103 if (cred->req_enctypes)
104 free(cred->req_enctypes);
105 cred->req_enctypes = NULL;
106 k5_mutex_unlock(&cred->lock);
110 /* Copy the requested ktypes into the cred structure */
119 kerr = k5_mutex_lock(&cred
[all...]
H A Dacquire_cred_with_pw.c97 acquire_accept_cred_with_pw(context, minor_status, desired_name, password, cred)
102 krb5_gss_cred_id_rec *cred;
112 acquire_init_cred_with_pw(context, minor_status, desired_name, password, cred)
117 krb5_gss_cred_id_rec *cred;
125 cred->ccache = NULL;
188 cred->ccache = ccache2;
224 krb5_gss_cred_id_t cred; local
290 /* create the gss cred structure */
291 if ((cred = (krb5_gss_cred_id_t)
297 memset(cred,
[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);
137 /* check if the cred_usage is equal or "less" than the passed-in cred
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
[all...]
H A Dstore_cred.c40 store_init_cred(ct, minor_status, cred, dflt)
43 const krb5_gss_cred_id_t cred;
65 * client principals other than the given cred's
67 * c) copy the given cred's tickets to that same tmp ccache
69 * princ as before (!dflt) or with the input cred's princ as the
73 * (dflt), and copy the input cred's tickets to it.
87 if ((code = krb5_cc_initialize(ct, ccache, cred->princ))) {
98 if ((code = krb5_cc_copy_creds(ct, cred->ccache, ccache))) {
129 krb5_gss_cred_id_t cred = (krb5_gss_cred_id_t)input_cred; local
132 OM_uint32 in_time_rec; /* lifetime of input cred */
[all...]
/illumos-gate/usr/src/uts/common/rpc/sec/
H A Dauthdesprt.c51 xdr_authdes_cred(XDR *xdrs, struct authdes_cred *cred) argument
56 ATTEMPT(xdr_enum(xdrs, (enum_t *)&cred->adc_namekind));
57 switch (cred->adc_namekind) {
59 ATTEMPT(xdr_string(xdrs, &cred->adc_fullname.name,
61 ATTEMPT(xdr_opaque(xdrs, (caddr_t)&cred->adc_fullname.key,
63 ATTEMPT(xdr_opaque(xdrs, (caddr_t)&cred->adc_fullname.window,
64 sizeof (cred->adc_fullname.window)));
67 ATTEMPT(xdr_int(xdrs, (int *)&cred->adc_nickname));
H A Dauth_kern.c47 #include <sys/cred.h>
64 static bool_t authkern_marshal(AUTH *, XDR *, struct cred *);
119 authkern_marshal(AUTH *auth, XDR *xdrs, struct cred *cr)
123 struct opaque_auth *cred; local
148 IXDR_PUT_INT32(ptr, AUTH_UNIX); /* cred flavor */
149 IXDR_PUT_INT32(ptr, credsize); /* cred len */
181 cred = &(auth->ah_cred);
182 cred->oa_length = XDR_GETPOS(&xdrm);
183 cred->oa_base = sercred;
H A Dauth_loopb.c51 #include <sys/cred.h>
67 static bool_t authloopback_marshal(AUTH *, XDR *, struct cred *);
123 authloopback_marshal(AUTH *auth, XDR *xdrs, struct cred *cr)
127 struct opaque_auth *cred; local
151 IXDR_PUT_INT32(ptr, AUTH_LOOPBACK); /* cred flavor */
152 IXDR_PUT_INT32(ptr, credsize); /* cred len */
184 cred = &(auth->ah_cred);
185 cred->oa_length = XDR_GETPOS(&xdrm);
186 cred->oa_base = sercred;
/illumos-gate/usr/src/lib/gss_mechs/mech_dh/backend/mech/
H A Dvalidate.c74 * __dh_validate_cred: Check the cred database if the supplied crediential
80 __dh_validate_cred(dh_cred_id_t cred) argument
86 * __dh_install_cred: Installed the cred into the credential database
91 __dh_install_cred(dh_cred_id_t cred) argument
97 * __dh_remove_cred: Remove the supplied cred from the database.
102 __dh_remove_cred(dh_cred_id_t cred) argument
H A Dcred.c23 * cred.c
60 gss_cred_id_t *cred, /* The return credential */
70 if (minor == 0 || cred == 0)
79 *cred = GSS_C_NO_CREDENTIAL;
142 /* Return the Diffie-Hellman credential through cred */
143 *cred = (gss_cred_id_t)dh_cred;
174 gss_cred_id_t cred, /* cred of interest */
180 /* cred is a Diffie-Hellman credential */
181 dh_cred_id_t crid = (dh_cred_id_t)cred;
54 __dh_gss_acquire_cred(void *ctx, OM_uint32 *minor, gss_name_t principal, OM_uint32 expire_req, gss_OID_set desired_mechs, gss_cred_usage_t usage, gss_cred_id_t *cred, gss_OID_set *mechs, OM_uint32 *expire_rec ) argument
172 __dh_gss_inquire_cred(void *ctx, OM_uint32 *minor, gss_cred_id_t cred, gss_name_t *name, OM_uint32 *lifetime, gss_cred_usage_t *usage, gss_OID_set *mechs ) argument
245 __dh_gss_inquire_cred_by_mech(void *ctx, OM_uint32 *minor, gss_cred_id_t cred, gss_OID mech, gss_name_t *name, OM_uint32 *init_time, OM_uint32 *accept_time, gss_cred_usage_t *usage ) argument
[all...]
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/mech/
H A Dval_cred.c40 krb5_gss_cred_id_t cred; local
49 cred = (krb5_gss_cred_id_t) cred_handle;
51 code = k5_mutex_lock(&cred->lock);
57 if (cred->ccache) {
58 if ((code = krb5_cc_get_principal(context, cred->ccache, &princ))) {
59 k5_mutex_unlock(&cred->lock);
63 if (!krb5_principal_compare(context, princ, cred->princ)) {
64 k5_mutex_unlock(&cred->lock);
91 krb5_gss_cred_id_t cred = (krb5_gss_cred_id_t) cred_handle; local
92 k5_mutex_assert_locked(&cred
[all...]
/illumos-gate/usr/src/lib/libfakekernel/common/
H A Dcred.c20 #include <sys/cred.h>
22 struct cred { struct
/illumos-gate/usr/src/lib/libproc/common/
H A Dproc_set.c34 * Convenience wrapper to set the cred attributes of a victim process
45 prcred_t cred; member in struct:__anon3803
56 (void) memcpy(&ctlp->cred, credp, ctlsize);
/illumos-gate/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) argument
41 return (iptun_create(karg, cred));
46 iptun_ioc_delete(void *karg, intptr_t arg, int mode, cred_t *cred, int *rvalp) argument
48 return (iptun_delete(*(datalink_id_t *)karg, cred));
53 iptun_ioc_modify(void *karg, intptr_t arg, int mode, cred_t *cred, int *rvalp) argument
55 return (iptun_modify(karg, cred));
60 iptun_ioc_info(void *karg, intptr_t arg, int mode, cred_t *cred, int *rvalp) argument
62 return (iptun_info(karg, cred));
67 iptun_ioc_set_6to4relay(void *karg, intptr_t arg, int mode, cred_t *cred, argument
71 netstack_t *ns = netstack_find_by_cred(cred);
81 iptun_ioc_get_6to4relay(void *karg, intptr_t arg, int mode, cred_t *cred, int *rvalp) argument
[all...]
/illumos-gate/usr/src/uts/i86pc/io/gfx_private/
H A Dgfxp_segmap.c61 off_t len, uint_t prot, uint_t maxprot, uint_t flags, cred_t *cred,
60 gfxp_ddi_segmap_setup(dev_t dev, off_t offset, struct as *as, caddr_t *addrp, off_t len, uint_t prot, uint_t maxprot, uint_t flags, cred_t *cred, ddi_device_acc_attr_t *accattrp, uint_t rnumber) argument
/illumos-gate/usr/src/uts/common/io/
H A Dstrredirm.c132 wcmopen(queue_t *q, dev_t *dev, int flag, int sflag, cred_t *cred) argument
142 wcmclose(queue_t *q, int flag, cred_t *cred) argument
/illumos-gate/usr/src/lib/libpicltree/
H A Dpicltree.h51 door_cred_t cred; member in struct:__anon3756
57 door_cred_t cred; member in struct:__anon3757
/illumos-gate/usr/src/lib/libgss/
H A Dg_acquire_cred_with_pw.c251 gss_cred_id_t cred = NULL; local
324 GSS_C_NULL_OID_SET, cred_usage, &cred, NULL,
371 new_cred_array[union_cred->count] = cred;
421 if (cred != NULL && mech->gss_release_cred)
423 &temp_minor_status, &cred);
/illumos-gate/usr/src/lib/libldap5/sources/ldap/common/
H A Dcram_md5.c67 struct berval *cred,
94 (unsigned char *)cred->bv_val, cred->bv_len, digest);
64 ldap_sasl_cram_md5_bind_s( LDAP *ld, char *dn, struct berval *cred, LDAPControl **serverctrls, LDAPControl **clientctrls ) argument
H A Dsaslbind.c50 const struct berval *cred,
102 cred, LDAP_AUTH_SASL )) != 0 ) {
120 if ( cred == NULL ) {
123 cred = &tmpcred;
126 ldapversion, dn, LDAP_AUTH_SIMPLE, cred->bv_val,
127 (int)cred->bv_len /* XXX lossy cast */ );
130 if ( cred == NULL ) {
137 mechanism, cred->bv_val,
138 (int)cred->bv_len /* XXX lossy cast */ );
179 const struct berval *cred,
46 ldap_sasl_bind( LDAP *ld, const char *dn, const char *mechanism, const struct berval *cred, LDAPControl **serverctrls, LDAPControl **clientctrls, int *msgidp ) argument
175 ldap_sasl_bind_s( LDAP *ld, const char *dn, const char *mechanism, const struct berval *cred, LDAPControl **serverctrls, LDAPControl **clientctrls, struct berval **servercredp ) argument
[all...]
/illumos-gate/usr/src/uts/common/fs/nfs/
H A Dnfs4_acache.c54 acache4hash(rnode4_t *rp, cred_t *cred) argument
56 return ((((intptr_t)rp >> ACACHE4_SHIFT_BITS) + crgetuid(cred)) &
82 if (crcmp(ap->cred, cr) == 0 && ap->rnode == rp) {
131 nap->cred = cr;
140 if (crcmp(ap->cred, cr) == 0 && ap->rnode == rp) {
146 crfree(nap->cred);
203 crfree(ap->cred);
/illumos-gate/usr/src/uts/common/fs/tmpfs/
H A Dtmp_subr.c37 #include <sys/cred.h>
47 tmp_taccess(void *vtp, int mode, struct cred *cred) argument
55 if (crgetuid(cred) != tp->tn_uid) {
57 if (groupmember(tp->tn_gid, cred) == 0)
61 return (secpolicy_vnode_access2(cred, TNTOV(tp), tp->tn_uid,
77 struct cred *cr)
H A Dtmp_tnode.c160 tmpnode_init(struct tmount *tm, struct tmpnode *t, vattr_t *vap, cred_t *cred) argument
176 if (cred == NULL) {
180 t->tn_uid = crgetuid(cred);
181 t->tn_gid = crgetgid(cred);

Completed in 110 milliseconds

12345678910