Lines Matching defs:code
45 krb5_error_code code;
51 if ((code = krb5_kt_default_name(ctx, buf, sizeof (buf))) != 0)
52 return (code);
76 krb5_error_code code;
84 if ((code = krb5_principal2salt(ctx, svc_princ, &salt)) != 0) {
85 return (code);
95 code = krb5_kt_add_entry(ctx, kt, &entry);
102 return (code);
166 krb5_error_code code;
173 if ((code = krb5_parse_name(ctx, *sprincs_str, &f_princ)) != 0)
174 return (code);
176 code = EINVAL;
182 code = errno;
203 code = ENOMEM;
209 if ((code = krb5_parse_name(ctx, t_host, &salt)) != 0)
212 if ((code = kt_open(ctx, &kt)) != 0)
215 code = krb5_get_permitted_enctypes(ctx, &enctypes);
216 if (code != 0 || *enctypes == NULL)
221 if ((code = krb5_parse_name(ctx, *tprinc, &princ)) != 0)
232 code = krb5_c_enctype_compare(ctx, *tenctype,
234 if (code != 0)
240 code = kt_add_entry(ctx, kt, princ, salt, *tenctype,
242 if (code != 0)
267 return (code);
276 krb5_error_code code;
290 if ((code = krb5_parse_name(ctx, key, &svc_princ)) != 0)
295 if ((code = kt_open(ctx, &kt)) != 0)
298 if ((code = krb5_kt_start_seq_get(ctx, kt, &cursor)) != 0)
301 while ((code = krb5_kt_next_entry(ctx, kt, &entry, &cursor)) == 0) {
311 code = krb5_kt_end_seq_get(ctx, kt, &cursor);
312 if (code != 0) {
317 code = krb5_kt_remove_entry(ctx, kt, &entry);
318 if (code != 0) {
323 code = krb5_kt_start_seq_get(ctx, kt, &cursor);
324 if (code != 0) {
335 if (code && code != KRB5_KT_END)
338 code = krb5_kt_end_seq_get(ctx, kt, &cursor);
347 return (code);
422 krb5_error_code code;
437 if ((code = krb5_parse_name(ctx, sprinc_str, &svc_princ)) != 0)
440 if ((code = kt_open(ctx, &kt)) != 0)
443 code = krb5_get_permitted_enctypes(ctx, &enctypes);
444 if (code != 0 || *enctypes == NULL)
447 if ((code = krb5_kt_start_seq_get(ctx, kt, &cursor)) != 0)
450 while ((code = krb5_kt_next_entry(ctx, kt, &entry, &cursor)) == 0) {
455 code = krb5_c_enctype_compare(ctx,
457 if (code != 0) {
481 if (code && code != KRB5_KT_END)
484 if ((code = krb5_kt_end_seq_get(ctx, kt, &cursor)))
504 return (code);