Home
last modified time | relevance | path

Searched refs:union_cred (Results 1 – 9 of 9) sorted by relevance

/titanic_50/usr/src/lib/libgss/
H A Dg_rel_cred.c46 gss_union_cred_t union_cred; local
63 union_cred = (gss_union_cred_t)*cred_handle;
64 if (union_cred == (gss_union_cred_t)GSS_C_NO_CREDENTIAL)
67 if (GSSINT_CHK_LOOP(union_cred))
74 for (j = 0; j < union_cred->count; j++) {
76 mech = __gss_get_mechanism(&union_cred->mechs_array[j]);
78 if (union_cred->mechs_array[j].elements)
79 free(union_cred->mechs_array[j].elements);
84 &union_cred->cred_array[j]);
96 (void) gss_release_buffer(minor_status, &union_cred->auxinfo.name);
[all …]
H A Dg_acquire_cred_with_pw.c248 gss_union_cred_t union_cred, new_union_cred; local
288 union_cred = malloc(sizeof (gss_union_cred_desc));
289 if (union_cred == NULL)
292 (void) memset(union_cred, 0, sizeof (gss_union_cred_desc));
295 union_cred = (gss_union_cred_t)input_cred_handle;
296 if (__gss_get_mechanism_cred(union_cred, desired_mech) !=
331 if (union_cred->auxinfo.creation_time == 0) {
332 union_cred->auxinfo.creation_time = time(NULL);
333 union_cred->auxinfo.time_rec = time_rec;
334 union_cred->auxinfo.cred_usage = cred_usage;
[all …]
H A Dg_acquire_cred.c337 gss_union_cred_t union_cred, new_union_cred; local
365 union_cred = malloc(sizeof (gss_union_cred_desc));
366 if (union_cred == NULL)
369 (void) memset(union_cred, 0, sizeof (gss_union_cred_desc));
372 union_cred = (gss_union_cred_t)input_cred_handle;
374 if (__gss_get_mechanism_cred(union_cred, desired_mech) !=
386 &union_cred->auxinfo.name,
387 union_cred->auxinfo.name_type,
437 if (union_cred->auxinfo.creation_time == 0) {
438 union_cred->auxinfo.creation_time = time(NULL);
[all …]
H A Dg_inquire_cred.c53 gss_union_cred_t union_cred; local
122 union_cred = (gss_union_cred_t)cred_handle;
130 *cred_usage = union_cred->auxinfo.cred_usage;
133 elapsed_time = time(0) - union_cred->auxinfo.creation_time;
134 *lifetime = union_cred->auxinfo.time_rec < elapsed_time ? 0 :
135 union_cred->auxinfo.time_rec - elapsed_time;
150 if (union_cred->auxinfo.name.length == 0) {
153 &union_cred->auxinfo.name,
154 union_cred->auxinfo.name_type,
157 &union_cred->mechs_array[0],
[all …]
H A Dg_store_cred.c98 gss_union_cred_t union_cred; local
121 union_cred = (gss_union_cred_t)input_cred_handle;
132 mech_cred = __gss_get_mechanism_cred(union_cred, desired_mech);
154 for (i = 0; i < union_cred->count; i++) {
156 dmech = &union_cred->mechs_array[i];
164 mech_cred = __gss_get_mechanism_cred(union_cred, dmech);
H A Dg_glue.c630 gssint_get_mechanism_cred(union_cred, mech_type) in gssint_get_mechanism_cred() argument
631 gss_union_cred_t union_cred; in gssint_get_mechanism_cred()
636 if (union_cred == (gss_union_cred_t) GSS_C_NO_CREDENTIAL)
647 return (gss_cred_id_t)union_cred;
650 for (i=0; i < union_cred->count; i++) {
651 if (g_OID_equal(mech_type, &union_cred->mechs_array[i]))
652 return union_cred->cred_array[i];
655 if (g_OID_equal(&gss_spnego_mechanism_oid_desc, &union_cred->mechs_array[i])) {
659 candidate_cred = (gss_union_cred_t)union_cred->cred_array[i];
H A Dg_init_sec_context.c105 gss_union_cred_t union_cred; local
184 union_cred = (gss_union_cred_t)claimant_cred_handle;
185 input_cred_handle = __gss_get_mechanism_cred(union_cred, mech_type);
H A Dg_accept_sec_context.c114 gss_union_cred_t union_cred; local
180 union_cred = (gss_union_cred_t)verifier_cred_handle;
181 input_cred_handle = __gss_get_mechanism_cred(union_cred,
/titanic_50/usr/src/lib/gss_mechs/mech_krb5/mech/
H A Dkrb5_gss_glue.c1253 gssint_get_mechanism_cred(union_cred, mech_type) in gssint_get_mechanism_cred() argument
1254 gss_union_cred_t union_cred; in gssint_get_mechanism_cred()
1259 if (union_cred == (gss_union_cred_t) GSS_C_NO_CREDENTIAL)
1262 for (i=0; i < union_cred->count; i++) {
1263 if (g_OID_equal(mech_type, &union_cred->mechs_array[i]))
1264 return union_cred->cred_array[i];