Lines Matching refs:krb5rc

1054     krb5_error_code krb5rc = KRB5KRB_ERR_GENERIC;  in kssl_cget_tkt()  local
1073 if ((krb5rc = krb5_init_context(&krb5context)) != 0) { in kssl_cget_tkt()
1075 "krb5_init_context() fails: %d\n", krb5rc); in kssl_cget_tkt()
1080 if ((krb5rc = krb5_sname_to_principal(krb5context, in kssl_cget_tkt()
1095 if ((krb5rc = krb5_cc_default(krb5context, &krb5ccdef)) != 0) { in kssl_cget_tkt()
1101 if ((krb5rc = krb5_cc_get_principal(krb5context, krb5ccdef, in kssl_cget_tkt()
1108 if ((krb5rc = krb5_get_credentials(krb5context, 0, krb5ccdef, in kssl_cget_tkt()
1122 krb5rc = KRB5KRB_ERR_GENERIC; in kssl_cget_tkt()
1138 if ((krb5rc = krb5_mk_req_extended(krb5context, in kssl_cget_tkt()
1175 krb5rc = 0; in kssl_cget_tkt()
1190 return (krb5rc); in kssl_cget_tkt()
1216 krb5_error_code krb5rc = KRB5KRB_ERR_GENERIC; in kssl_TKT2tkt() local
1241 if ((krb5rc = kssl_build_principal_2(krb5context, in kssl_TKT2tkt()
1253 return krb5rc; /* or KRB5KRB_ERR_GENERIC; */ in kssl_TKT2tkt()
1298 krb5_error_code krb5rc = KRB5KRB_ERR_GENERIC; in kssl_sget_tkt() local
1320 if (!krb5context && (krb5rc = krb5_init_context(&krb5context))) { in kssl_sget_tkt()
1326 (krb5rc = krb5_auth_con_free(krb5context, krb5auth_context))) { in kssl_sget_tkt()
1333 (krb5rc = krb5_auth_con_init(krb5context, &krb5auth_context))) { in kssl_sget_tkt()
1339 if ((krb5rc = krb5_auth_con_getrcache(krb5context, krb5auth_context, in kssl_sget_tkt()
1346 if ((krb5rc = krb5_sname_to_principal(krb5context, NULL, in kssl_sget_tkt()
1357 if ((krb5rc = krb5_get_server_rcache(krb5context, in kssl_sget_tkt()
1368 if ((krb5rc = in kssl_sget_tkt()
1379 krb5rc = krb5_kt_resolve(krb5context, kssl_ctx->keytab_file, in kssl_sget_tkt()
1381 if (krb5rc) { in kssl_sget_tkt()
1387 krb5rc = krb5_kt_default(krb5context, &krb5keytab); in kssl_sget_tkt()
1388 if (krb5rc) { in kssl_sget_tkt()
1423 if ((krb5rc = kssl_TKT2tkt(krb5context, asn1ticket, &krb5ticket, in kssl_sget_tkt()
1432 krb5rc = KRB5_PRINC_NOMATCH; in kssl_sget_tkt()
1438 if ((krb5rc = krb5_kt_get_entry(krb5context, krb5keytab, in kssl_sget_tkt()
1444 "krb5_kt_get_entry() fails with %x.\n", krb5rc); in kssl_sget_tkt()
1448 if ((krb5rc = krb5_decrypt_tkt_part(krb5context, &kt_entry.key, in kssl_sget_tkt()
1486 krb5rc = KRB5_NO_TKT_SUPPLIED; in kssl_sget_tkt()
1503 krb5rc = KRB5KRB_AP_ERR_TKT_INVALID; in kssl_sget_tkt()
1507 krb5rc = 0; in kssl_sget_tkt()
1528 return (krb5rc); in kssl_sget_tkt()
1750 krb5_error_code krb5rc = KRB5KRB_ERR_GENERIC; in kssl_keytab_is_available() local
1753 if ((krb5rc = krb5_init_context(&krb5context))) in kssl_keytab_is_available()
1760 krb5rc = krb5_kt_resolve(krb5context, kssl_ctx->keytab_file, in kssl_keytab_is_available()
1762 if (krb5rc) in kssl_keytab_is_available()
1765 krb5rc = krb5_kt_default(krb5context, &krb5keytab); in kssl_keytab_is_available()
1766 if (krb5rc) in kssl_keytab_is_available()
1771 krb5rc = krb5_sname_to_principal(krb5context, NULL, in kssl_keytab_is_available()
1776 if (krb5rc) in kssl_keytab_is_available()
1779 krb5rc = krb5_kt_get_entry(krb5context, krb5keytab, princ, in kssl_keytab_is_available()
1784 if (krb5rc == KRB5_KT_NOTFOUND) { in kssl_keytab_is_available()
1787 } else if (krb5rc) in kssl_keytab_is_available()
1805 krb5_error_code krb5rc = KRB5KRB_ERR_GENERIC; in kssl_tgt_is_available() local
1819 if ((krb5rc = krb5_init_context(&krb5context)) != 0) in kssl_tgt_is_available()
1822 if ((krb5rc = krb5_sname_to_principal(krb5context, in kssl_tgt_is_available()
1830 if ((krb5rc = krb5_cc_default(krb5context, &krb5ccdef)) != 0) in kssl_tgt_is_available()
1833 if ((krb5rc = krb5_cc_get_principal(krb5context, krb5ccdef, in kssl_tgt_is_available()
1837 if ((krb5rc = krb5_get_credentials(krb5context, 0, krb5ccdef, in kssl_tgt_is_available()
2018 krb5_error_code krb5rc = 0; in kssl_check_authent() local
2064 krb5rc = KRB5KRB_ERR_GENERIC; in kssl_check_authent()
2073 krb5rc = KRB5KRB_AP_ERR_BAD_INTEGRITY; in kssl_check_authent()
2083 krb5rc = 0; /* Skip, can't handle derived keys */ in kssl_check_authent()
2102 krb5rc = KRB5KRB_AP_ERR_BAD_INTEGRITY; in kssl_check_authent()
2110 krb5rc = KRB5KRB_AP_ERR_BAD_INTEGRITY; in kssl_check_authent()
2129 krb5rc = KRB5KRB_AP_ERR_BAD_INTEGRITY; in kssl_check_authent()
2138 krb5rc = KRB5KRB_AP_ERR_BAD_INTEGRITY; in kssl_check_authent()
2179 return krb5rc; in kssl_check_authent()