Lines Matching defs:handle
76 gsskrb5_cred handle;
83 handle = calloc(1, sizeof(*handle));
84 if (handle == NULL) {
89 HEIMDAL_MUTEX_init(&handle->cred_id_mutex);
91 handle->usage = 0;
98 handle->usage |= GSS_C_INITIATE;
101 &handle->principal);
103 free(handle);
112 handle->principal,
115 krb5_free_principal(context, handle->principal);
116 free(handle);
127 handle->principal,
130 krb5_free_principal(context, handle->principal);
131 free(handle);
134 handle->endtime = now + left;
140 kret = krb5_cc_resolve(context, str, &handle->ccache);
150 handle->usage |= GSS_C_ACCEPT;
152 if (keytab_principal && handle->principal == NULL) {
155 &handle->principal);
164 kret = krb5_kt_resolve(context, str, &handle->keytab);
172 ret = gss_create_empty_oid_set(minor_status, &handle->mechanisms);
175 &handle->mechanisms);
183 *cred = (gss_cred_id_t)handle;
187 gss_release_oid_set(minor_status, &handle->mechanisms);
188 if (handle->ccache)
189 krb5_cc_close(context, handle->ccache);
190 if (handle->keytab)
191 krb5_kt_close(context, handle->keytab);
192 if (handle->principal)
193 krb5_free_principal(context, handle->principal);
194 HEIMDAL_MUTEX_destroy(&handle->cred_id_mutex);
195 free(handle);