Lines Matching refs:krb5_ctx
63 if (authctxt->krb5_ctx == NULL) { in krb5_init()
64 problem = krb5_init_context(&authctxt->krb5_ctx); in krb5_init()
94 problem = krb5_parse_name(authctxt->krb5_ctx, client, in auth_krb5_password()
101 problem = krb5_cc_new_unique(authctxt->krb5_ctx, in auth_krb5_password()
104 problem = krb5_cc_gen_new(authctxt->krb5_ctx, &krb5_mcc_ops, &ccache); in auth_krb5_password()
109 problem = krb5_cc_initialize(authctxt->krb5_ctx, ccache, in auth_krb5_password()
116 problem = krb5_verify_user(authctxt->krb5_ctx, authctxt->krb5_user, in auth_krb5_password()
125 problem = krb5_cc_new_unique(authctxt->krb5_ctx, in auth_krb5_password()
128 problem = krb5_cc_gen_new(authctxt->krb5_ctx, &krb5_fcc_ops, in auth_krb5_password()
134 problem = krb5_cc_copy_cache(authctxt->krb5_ctx, ccache, in auth_krb5_password()
136 krb5_cc_destroy(authctxt->krb5_ctx, ccache); in auth_krb5_password()
142 problem = krb5_get_init_creds_password(authctxt->krb5_ctx, &creds, in auth_krb5_password()
147 problem = krb5_sname_to_principal(authctxt->krb5_ctx, NULL, NULL, in auth_krb5_password()
153 problem = krb5_verify_init_creds(authctxt->krb5_ctx, &creds, server, in auth_krb5_password()
155 krb5_free_principal(authctxt->krb5_ctx, server); in auth_krb5_password()
160 if (!krb5_kuserok(authctxt->krb5_ctx, authctxt->krb5_user, in auth_krb5_password()
166 problem = ssh_krb5_cc_gen(authctxt->krb5_ctx, &authctxt->krb5_fwd_ccache); in auth_krb5_password()
170 problem = krb5_cc_initialize(authctxt->krb5_ctx, authctxt->krb5_fwd_ccache, in auth_krb5_password()
175 problem= krb5_cc_store_cred(authctxt->krb5_ctx, authctxt->krb5_fwd_ccache, in auth_krb5_password()
181 …authctxt->krb5_ticket_file = (char *)krb5_cc_get_name(authctxt->krb5_ctx, authctxt->krb5_fwd_ccach… in auth_krb5_password()
200 krb5_cc_destroy(authctxt->krb5_ctx, ccache); in auth_krb5_password()
202 if (authctxt->krb5_ctx != NULL && problem!=-1) { in auth_krb5_password()
203 errmsg = krb5_get_error_message(authctxt->krb5_ctx, in auth_krb5_password()
207 krb5_free_error_message(authctxt->krb5_ctx, errmsg); in auth_krb5_password()
227 krb5_cc_destroy(authctxt->krb5_ctx, authctxt->krb5_fwd_ccache); in krb5_cleanup_proc()
231 krb5_free_principal(authctxt->krb5_ctx, authctxt->krb5_user); in krb5_cleanup_proc()
234 if (authctxt->krb5_ctx) { in krb5_cleanup_proc()
235 krb5_free_context(authctxt->krb5_ctx); in krb5_cleanup_proc()
236 authctxt->krb5_ctx = NULL; in krb5_cleanup_proc()