Lines Matching refs:krb5rc
1053 krb5_error_code krb5rc = KRB5KRB_ERR_GENERIC; in kssl_cget_tkt() local
1072 if ((krb5rc = krb5_init_context(&krb5context)) != 0) { in kssl_cget_tkt()
1074 "krb5_init_context() fails: %d\n", krb5rc); in kssl_cget_tkt()
1079 if ((krb5rc = krb5_sname_to_principal(krb5context, in kssl_cget_tkt()
1094 if ((krb5rc = krb5_cc_default(krb5context, &krb5ccdef)) != 0) { in kssl_cget_tkt()
1100 if ((krb5rc = krb5_cc_get_principal(krb5context, krb5ccdef, in kssl_cget_tkt()
1107 if ((krb5rc = krb5_get_credentials(krb5context, 0, krb5ccdef, in kssl_cget_tkt()
1121 krb5rc = KRB5KRB_ERR_GENERIC; in kssl_cget_tkt()
1137 if ((krb5rc = krb5_mk_req_extended(krb5context, in kssl_cget_tkt()
1174 krb5rc = 0; in kssl_cget_tkt()
1189 return (krb5rc); in kssl_cget_tkt()
1215 krb5_error_code krb5rc = KRB5KRB_ERR_GENERIC; in kssl_TKT2tkt() local
1240 if ((krb5rc = kssl_build_principal_2(krb5context, in kssl_TKT2tkt()
1252 return krb5rc; /* or KRB5KRB_ERR_GENERIC; */ in kssl_TKT2tkt()
1297 krb5_error_code krb5rc = KRB5KRB_ERR_GENERIC; in kssl_sget_tkt() local
1319 if (!krb5context && (krb5rc = krb5_init_context(&krb5context))) { in kssl_sget_tkt()
1325 (krb5rc = krb5_auth_con_free(krb5context, krb5auth_context))) { in kssl_sget_tkt()
1332 (krb5rc = krb5_auth_con_init(krb5context, &krb5auth_context))) { in kssl_sget_tkt()
1338 if ((krb5rc = krb5_auth_con_getrcache(krb5context, krb5auth_context, in kssl_sget_tkt()
1345 if ((krb5rc = krb5_sname_to_principal(krb5context, NULL, in kssl_sget_tkt()
1356 if ((krb5rc = krb5_get_server_rcache(krb5context, in kssl_sget_tkt()
1367 if ((krb5rc = in kssl_sget_tkt()
1378 krb5rc = krb5_kt_resolve(krb5context, kssl_ctx->keytab_file, in kssl_sget_tkt()
1380 if (krb5rc) { in kssl_sget_tkt()
1386 krb5rc = krb5_kt_default(krb5context, &krb5keytab); in kssl_sget_tkt()
1387 if (krb5rc) { in kssl_sget_tkt()
1422 if ((krb5rc = kssl_TKT2tkt(krb5context, asn1ticket, &krb5ticket, in kssl_sget_tkt()
1431 krb5rc = KRB5_PRINC_NOMATCH; in kssl_sget_tkt()
1437 if ((krb5rc = krb5_kt_get_entry(krb5context, krb5keytab, in kssl_sget_tkt()
1443 "krb5_kt_get_entry() fails with %x.\n", krb5rc); in kssl_sget_tkt()
1447 if ((krb5rc = krb5_decrypt_tkt_part(krb5context, &kt_entry.key, in kssl_sget_tkt()
1485 krb5rc = KRB5_NO_TKT_SUPPLIED; in kssl_sget_tkt()
1502 krb5rc = KRB5KRB_AP_ERR_TKT_INVALID; in kssl_sget_tkt()
1506 krb5rc = 0; in kssl_sget_tkt()
1527 return (krb5rc); in kssl_sget_tkt()
1749 krb5_error_code krb5rc = KRB5KRB_ERR_GENERIC; in kssl_keytab_is_available() local
1752 if ((krb5rc = krb5_init_context(&krb5context))) in kssl_keytab_is_available()
1759 krb5rc = krb5_kt_resolve(krb5context, kssl_ctx->keytab_file, in kssl_keytab_is_available()
1761 if (krb5rc) in kssl_keytab_is_available()
1764 krb5rc = krb5_kt_default(krb5context, &krb5keytab); in kssl_keytab_is_available()
1765 if (krb5rc) in kssl_keytab_is_available()
1770 krb5rc = krb5_sname_to_principal(krb5context, NULL, in kssl_keytab_is_available()
1775 if (krb5rc) in kssl_keytab_is_available()
1778 krb5rc = krb5_kt_get_entry(krb5context, krb5keytab, princ, in kssl_keytab_is_available()
1783 if (krb5rc == KRB5_KT_NOTFOUND) { in kssl_keytab_is_available()
1786 } else if (krb5rc) in kssl_keytab_is_available()
1804 krb5_error_code krb5rc = KRB5KRB_ERR_GENERIC; in kssl_tgt_is_available() local
1818 if ((krb5rc = krb5_init_context(&krb5context)) != 0) in kssl_tgt_is_available()
1821 if ((krb5rc = krb5_sname_to_principal(krb5context, in kssl_tgt_is_available()
1829 if ((krb5rc = krb5_cc_default(krb5context, &krb5ccdef)) != 0) in kssl_tgt_is_available()
1832 if ((krb5rc = krb5_cc_get_principal(krb5context, krb5ccdef, in kssl_tgt_is_available()
1836 if ((krb5rc = krb5_get_credentials(krb5context, 0, krb5ccdef, in kssl_tgt_is_available()
2017 krb5_error_code krb5rc = 0; in kssl_check_authent() local
2061 krb5rc = KRB5KRB_ERR_GENERIC; in kssl_check_authent()
2070 krb5rc = KRB5KRB_AP_ERR_BAD_INTEGRITY; in kssl_check_authent()
2080 krb5rc = 0; /* Skip, can't handle derived keys */ in kssl_check_authent()
2099 krb5rc = KRB5KRB_AP_ERR_BAD_INTEGRITY; in kssl_check_authent()
2107 krb5rc = KRB5KRB_AP_ERR_BAD_INTEGRITY; in kssl_check_authent()
2126 krb5rc = KRB5KRB_AP_ERR_BAD_INTEGRITY; in kssl_check_authent()
2135 krb5rc = KRB5KRB_AP_ERR_BAD_INTEGRITY; in kssl_check_authent()
2168 return krb5rc; in kssl_check_authent()