Lines Matching defs:errcode
91 int errcode, errcode2;
121 if ((errcode = krb5_unparse_name(kdc_context, request->server, &sname))) {
127 /* errcode = kdc_process_tgs_req(request, from, pkt, &req_authdat); */
128 errcode = kdc_process_tgs_req(request, from, pkt, &header_ticket, &subkey);
135 errcode = errcode2;
140 if (errcode) {
146 errcode = KRB5_NO_TKT_SUPPLIED; /* XXX? */
163 if ((errcode = krb5_db_get_principal(kdc_context, request->server, &server,
172 errcode = KRB5KDC_ERR_PRINCIPAL_NOT_UNIQUE;
198 errcode = KRB5KDC_ERR_S_PRINCIPAL_UNKNOWN;
202 if ((errcode = krb5_timeofday(kdc_context, &kdc_time))) {
211 errcode = retval + ERROR_TABLE_BASE_krb5;
235 if ((errcode = kdc_get_server_key(request->second_ticket[st_idx],
241 errcode = krb5_decrypt_tkt_part(kdc_context, st_sealing_key,
244 if (errcode) {
252 errcode = KRB5KDC_ERR_ETYPE_NOSUPP;
273 errcode = KRB5KDC_ERR_ETYPE_NOSUPP;
277 errcode = krb5_c_make_random_key(kdc_context, useenctype, &session_key);
279 if (errcode) {
444 errcode = ENOMEM;
448 if ((errcode = krb5_c_decrypt(kdc_context,
459 errcode = decode_krb5_authdata(&scratch, &(request->unenc_authdata));
461 if (errcode) {
466 if ((errcode =
501 errcode = KRB5KDC_ERR_TRTYPE_NOSUPP;
510 if ((errcode =
525 errcode = krb5_check_transited_list (kdc_context,
533 if (errcode == 0) {
535 } else if (errcode == KRB5KRB_AP_ERR_ILL_CR_TKT)
545 const char *emsg = krb5_get_error_message(kdc_context, errcode);
560 errcode = KRB5KDC_ERR_POLICY;
581 if ((errcode = krb5_unparse_name(kdc_context, client2, &tmp)))
596 errcode = KRB5KDC_ERR_SERVER_NOMATCH;
602 if ((errcode = krb5_encrypt_tkt_part(kdc_context, t2enc->session,
612 if ((errcode = krb5_dbe_find_enctype(kdc_context, &server,
622 if ((errcode = krb5_dbekd_decrypt_key_data(kdc_context,
629 errcode = krb5_encrypt_tkt_part(kdc_context, &encrypting_key,
632 if (errcode) {
673 errcode = krb5_encode_kdc_rep(kdc_context, KRB5_TGS_REP, &reply_encpart,
678 if (errcode) {
706 errcode);
707 if (!errcode)
709 if (errcode)
710 emsg = krb5_get_error_message (kdc_context, errcode);
716 !errcode ? rep_etypestr : "",
717 !errcode ? "," : "",
720 errcode ? ", " : "",
721 errcode ? emsg : "");
722 if (errcode)
726 if (errcode) {
729 status = krb5_get_error_message (kdc_context, errcode);
732 errcode -= ERROR_TABLE_BASE_krb5;
733 if (errcode < 0 || errcode > 128)
734 errcode = KRB_ERR_GENERIC;
736 retval = prepare_error_tgs(request, header_ticket, errcode,