Lines Matching refs:code

64     krb5_error_code code;
91 code = krb5_get_init_creds_opt_alloc(context, &opts);
92 if (code != 0)
113 code = krb5int_get_init_creds(context, &creds, client,
117 if (code == 0 ||
118 code == KDC_ERR_PREAUTH_REQUIRED ||
119 code == KDC_ERR_PREAUTH_FAILED) {
122 code = 0;
132 return code;
141 krb5_error_code code;
178 code = krb5int_c_mandatory_cksumtype(context, key->enctype, &cksumtype);
179 if (code != 0) {
181 return code;
184 code = krb5_c_make_checksum(context, cksumtype, key,
190 return code;
199 krb5_error_code code;
213 code = make_pa_for_user_checksum(context, &tgt->keyblock,
215 if (code != 0)
218 code = encode_krb5_pa_for_user(&for_user, &for_user_data);
219 if (code != 0)
224 code = ENOMEM;
243 return code;
257 krb5_error_code code;
268 code = encode_krb5_s4u_userid(&s4u_user->user_id, &data);
269 if (code != 0)
277 code = krb5int_c_mandatory_cksumtype(context, subkey->enctype,
280 if (code != 0)
283 code = krb5_c_make_checksum(context, cksumtype, subkey,
286 if (code != 0)
292 code = encode_krb5_pa_s4u_x509_user(s4u_user, &data);
293 if (code != 0)
304 code = ENOMEM;
311 code = ENOMEM;
325 if (code != 0 && s4u_user->cksum.contents != NULL) {
331 return code;
341 krb5_error_code code;
384 code = decode_krb5_pa_s4u_x509_user(&data, &rep_s4u_user);
385 if (code != 0)
389 code = KRB5_KDCREP_MODIFIED;
393 code = encode_krb5_s4u_userid(&rep_s4u_user->user_id, &datap);
394 if (code != 0)
402 code = krb5_c_verify_checksum(context, subkey, usage, datap,
404 if (code != 0)
407 code = KRB5_KDCREP_MODIFIED;
419 code = KRB5_KDCREP_MODIFIED;
425 code = KRB5_KDCREP_MODIFIED;
434 code = KRB5_KDCREP_MODIFIED;
439 code = KRB5KRB_AP_ERR_INAPP_CKSUM;
447 return code;
459 krb5_error_code code;
479 code = krb5_build_principal_ext(context,
486 if (code != 0)
490 code = krb5_copy_principal(context,
493 if (code != 0)
497 code = krb5_build_principal_ext(context, &s4u_user.user_id.user,
500 if (code != 0)
509 code = krb5_tgtname(context, user_realm,
511 if (code != 0)
517 code = krb5_get_credentials(context, options, ccache, &tgtq, &tgt);
518 if (code != 0)
523 code = krb5int_copy_creds_contents(context, in_creds, &s4u_creds);
524 if (code != 0)
532 code = krb5_copy_principal(context, in_creds->server, &s4u_creds.client);
533 if (code != 0)
558 code = ENOMEM;
561 code = build_pa_for_user(context,
564 if (code != 0) {
573 code = krb5int_copy_data_contents(context,
576 if (code != 0) {
581 code = krb5_get_cred_via_tkt_ext(context, tgtptr,
590 if (code != 0) {
596 code = verify_s4u2self_reply(context, subkey, &s4u_user,
605 if (code != 0)
611 code = 0;
620 code = KRB5_ERR_HOST_REALM_UNKNOWN;
627 code = KRB5_KDC_UNREACH;
638 code = KRB5KRB_AP_WRONG_PRINC; /* XXX */
654 return code;
663 krb5_error_code code;
669 code = EINVAL;
675 code = krb5_get_credentials(context, options | KRB5_GC_CACHED,
677 if (code != KRB5_CC_NOTFOUND && code != KRB5_CC_NOT_KTYPE)
684 code = s4u_identify_user(context, in_creds, subject_cert, &realm);
685 if (code != 0)
688 code = krb5_get_credentials(context, options | KRB5_GC_CACHED,
690 if ((code != KRB5_CC_NOTFOUND && code != KRB5_CC_NOT_KTYPE)
694 code = krb5_get_self_cred_from_kdc(context, options, ccache,
698 if (code != 0)
704 code = krb5_cc_store_cred(context, ccache, *out_creds);
705 if (code != 0)
710 if (code != 0 && *out_creds != NULL) {
717 return code;
734 krb5_error_code code;
745 code = EINVAL;
755 code = EINVAL;
760 code = KRB5_TKT_NOT_FORWARDABLE;
764 code = krb5int_construct_matching_creds(context, options, in_creds,
766 if (code != 0)
771 code = ENOMEM;
776 code = krb5_cc_retrieve_cred(context, ccache, fields, &mcreds, ncreds);
777 if (code != 0) {
784 if ((code != KRB5_CC_NOTFOUND && code != KRB5_CC_NOT_KTYPE)
788 code = encode_krb5_ticket(evidence_tkt, &evidence_tkt_data);
789 if (code != 0)
796 code = krb5_get_credentials(context,
801 if (code != 0)
811 code = KRB5_KDCREP_MODIFIED;
816 if (*out_creds != NULL && code != 0) {
823 return code;