Lines Matching refs:krb_context
59 static krb5_context krb_context = NULL; variable
68 if (krb_context != NULL) in ssh_gssapi_krb5_init()
71 problem = krb5_init_context(&krb_context); in ssh_gssapi_krb5_init()
95 if ((retval = krb5_parse_name(krb_context, client->exportedname.value, in ssh_gssapi_krb5_userok()
97 errmsg = krb5_get_error_message(krb_context, retval); in ssh_gssapi_krb5_userok()
99 krb5_free_error_message(krb_context, errmsg); in ssh_gssapi_krb5_userok()
102 if (krb5_kuserok(krb_context, princ, name)) { in ssh_gssapi_krb5_userok()
109 krb5_free_principal(krb_context, princ); in ssh_gssapi_krb5_userok()
137 if ((problem = krb5_cc_new_unique(krb_context, krb5_fcc_ops.prefix,
139 errmsg = krb5_get_error_message(krb_context, problem);
142 if ((problem = krb5_cc_gen_new(krb_context, &krb5_fcc_ops, &ccache))) {
144 krb5_get_err_text(krb_context, problem));
146 krb5_free_error_message(krb_context, errmsg);
150 if ((problem = ssh_krb5_cc_gen(krb_context, &ccache))) {
151 errmsg = krb5_get_error_message(krb_context, problem);
153 krb5_free_error_message(krb_context, errmsg);
158 if ((problem = krb5_parse_name(krb_context,
160 errmsg = krb5_get_error_message(krb_context, problem);
162 krb5_free_error_message(krb_context, errmsg);
166 if ((problem = krb5_cc_initialize(krb_context, ccache, princ))) {
167 errmsg = krb5_get_error_message(krb_context, problem);
169 krb5_free_error_message(krb_context, errmsg);
170 krb5_free_principal(krb_context, princ);
171 krb5_cc_destroy(krb_context, ccache);
175 krb5_free_principal(krb_context, princ);
180 krb5_cc_destroy(krb_context, ccache);
184 client->store.filename = xstrdup(krb5_cc_get_name(krb_context, ccache));
195 krb5_cc_close(krb_context, ccache);