Lines Matching defs:handle
51 gsskrb5_cred cred, handle;
54 handle = NULL;
99 handle = calloc(1, sizeof(*handle));
100 if (handle == NULL) {
106 handle->usage = cred_usage;
107 handle->lifetime = cred->lifetime;
108 handle->principal = NULL;
109 handle->keytab = NULL;
110 handle->ccache = NULL;
111 handle->mechanisms = NULL;
112 HEIMDAL_MUTEX_init(&handle->cred_id_mutex);
117 &handle->principal);
120 free(handle);
137 &handle->keytab);
159 NULL, &handle->ccache);
166 handle->ccache);
186 &handle->ccache);
194 ret = gss_create_empty_oid_set(minor_status, &handle->mechanisms);
199 &handle->mechanisms);
217 *output_cred_handle = (gss_cred_id_t)handle;
225 if (handle) {
226 if (handle->principal)
227 krb5_free_principal(context, handle->principal);
228 if (handle->keytab)
229 krb5_kt_close(context, handle->keytab);
230 if (handle->ccache)
231 krb5_cc_destroy(context, handle->ccache);
232 if (handle->mechanisms)
233 gss_release_oid_set(NULL, &handle->mechanisms);
234 free(handle);