Lines Matching refs:cred
44 gsskrb5_cred cred;
52 cred = (gsskrb5_cred)*cred_handle;
57 HEIMDAL_MUTEX_lock(&cred->cred_id_mutex);
59 if (cred->principal != NULL)
60 krb5_free_principal(context, cred->principal);
61 if (cred->keytab != NULL)
62 krb5_kt_close(context, cred->keytab);
63 if (cred->ccache != NULL) {
64 if (cred->cred_flags & GSS_CF_DESTROY_CRED_ON_RELEASE)
65 krb5_cc_destroy(context, cred->ccache);
67 krb5_cc_close(context, cred->ccache);
69 gss_release_oid_set(&junk, &cred->mechanisms);
70 if (cred->enctypes)
71 free(cred->enctypes);
72 HEIMDAL_MUTEX_unlock(&cred->cred_id_mutex);
73 HEIMDAL_MUTEX_destroy(&cred->cred_id_mutex);
74 memset(cred, 0, sizeof(*cred));
75 free(cred);