Lines Matching full:handle
74 gsskrb5_cred handle; in _gsskrb5_krb5_import_cred() local
81 handle = calloc(1, sizeof(*handle)); in _gsskrb5_krb5_import_cred()
82 if (handle == NULL) { in _gsskrb5_krb5_import_cred()
87 HEIMDAL_MUTEX_init(&handle->cred_id_mutex); in _gsskrb5_krb5_import_cred()
89 handle->usage = 0; in _gsskrb5_krb5_import_cred()
94 handle->usage |= GSS_C_INITIATE; in _gsskrb5_krb5_import_cred()
97 &handle->principal); in _gsskrb5_krb5_import_cred()
99 free(handle); in _gsskrb5_krb5_import_cred()
108 handle->principal, in _gsskrb5_krb5_import_cred()
111 krb5_free_principal(context, handle->principal); in _gsskrb5_krb5_import_cred()
112 free(handle); in _gsskrb5_krb5_import_cred()
122 handle->principal, in _gsskrb5_krb5_import_cred()
123 &handle->lifetime); in _gsskrb5_krb5_import_cred()
125 krb5_free_principal(context, handle->principal); in _gsskrb5_krb5_import_cred()
126 free(handle); in _gsskrb5_krb5_import_cred()
135 kret = krb5_cc_resolve(context, str, &handle->ccache); in _gsskrb5_krb5_import_cred()
145 handle->usage |= GSS_C_ACCEPT; in _gsskrb5_krb5_import_cred()
147 if (keytab_principal && handle->principal == NULL) { in _gsskrb5_krb5_import_cred()
150 &handle->principal); in _gsskrb5_krb5_import_cred()
159 kret = krb5_kt_resolve(context, str, &handle->keytab); in _gsskrb5_krb5_import_cred()
167 ret = gss_create_empty_oid_set(minor_status, &handle->mechanisms); in _gsskrb5_krb5_import_cred()
170 &handle->mechanisms); in _gsskrb5_krb5_import_cred()
178 *cred = (gss_cred_id_t)handle; in _gsskrb5_krb5_import_cred()
182 gss_release_oid_set(minor_status, &handle->mechanisms); in _gsskrb5_krb5_import_cred()
183 if (handle->ccache) in _gsskrb5_krb5_import_cred()
184 krb5_cc_close(context, handle->ccache); in _gsskrb5_krb5_import_cred()
185 if (handle->keytab) in _gsskrb5_krb5_import_cred()
186 krb5_kt_close(context, handle->keytab); in _gsskrb5_krb5_import_cred()
187 if (handle->principal) in _gsskrb5_krb5_import_cred()
188 krb5_free_principal(context, handle->principal); in _gsskrb5_krb5_import_cred()
189 HEIMDAL_MUTEX_destroy(&handle->cred_id_mutex); in _gsskrb5_krb5_import_cred()
190 free(handle); in _gsskrb5_krb5_import_cred()