Lines Matching refs:krb5context
1054 krb5_context krb5context = NULL;
1072 if ((krb5rc = krb5_init_context(&krb5context)) != 0) {
1079 if ((krb5rc = krb5_sname_to_principal(krb5context,
1094 if ((krb5rc = krb5_cc_default(krb5context, &krb5ccdef)) != 0) {
1100 if ((krb5rc = krb5_cc_get_principal(krb5context, krb5ccdef,
1107 if ((krb5rc = krb5_get_credentials(krb5context, 0, krb5ccdef,
1137 if ((krb5rc = krb5_mk_req_extended(krb5context,
1160 kssl_krb5_free_data_contents(krb5context, &krb5_app_req);
1182 krb5_free_principal(krb5context, krb5creds.client);
1184 krb5_free_principal(krb5context, krb5creds.server);
1186 krb5_auth_con_free(krb5context, krb5auth_context);
1187 if (krb5context)
1188 krb5_free_context(krb5context);
1204 static krb5_error_code kssl_TKT2tkt( /* IN */ krb5_context krb5context,
1240 if ((krb5rc = kssl_build_principal_2(krb5context,
1255 krb5_princ_type(krb5context, new5ticket->server) =
1298 static krb5_context krb5context = NULL;
1319 if (!krb5context && (krb5rc = krb5_init_context(&krb5context))) {
1325 (krb5rc = krb5_auth_con_free(krb5context, krb5auth_context))) {
1332 (krb5rc = krb5_auth_con_init(krb5context, &krb5auth_context))) {
1338 if ((krb5rc = krb5_auth_con_getrcache(krb5context, krb5auth_context,
1345 if ((krb5rc = krb5_sname_to_principal(krb5context, NULL,
1356 if ((krb5rc = krb5_get_server_rcache(krb5context,
1357 krb5_princ_component(krb5context,
1368 krb5_auth_con_setrcache(krb5context, krb5auth_context, rcache))) {
1378 krb5rc = krb5_kt_resolve(krb5context, kssl_ctx->keytab_file,
1386 krb5rc = krb5_kt_default(krb5context, &krb5keytab);
1404 * if ((krb5rc = krb5_rd_req(krb5context, &krb5auth_context,
1422 if ((krb5rc = kssl_TKT2tkt(krb5context, asn1ticket, &krb5ticket,
1430 if (!krb5_principal_compare(krb5context, krb5server, krb5ticket->server)) {
1437 if ((krb5rc = krb5_kt_get_entry(krb5context, krb5keytab,
1447 if ((krb5rc = krb5_decrypt_tkt_part(krb5context, &kt_entry.key,
1454 krb5_kt_free_entry(krb5context, &kt_entry);
1522 krb5_kt_close(krb5context, krb5keytab);
1524 krb5_free_ticket(krb5context, krb5ticket);
1526 krb5_free_principal(krb5context, krb5server);
1745 krb5_context krb5context = NULL;
1752 if ((krb5rc = krb5_init_context(&krb5context)))
1759 krb5rc = krb5_kt_resolve(krb5context, kssl_ctx->keytab_file,
1764 krb5rc = krb5_kt_default(krb5context, &krb5keytab);
1770 krb5rc = krb5_sname_to_principal(krb5context, NULL,
1778 krb5rc = krb5_kt_get_entry(krb5context, krb5keytab, princ,
1789 krb5_kt_free_entry(krb5context, &entry);
1794 krb5_kt_close(krb5context, krb5keytab);
1796 krb5_free_principal(krb5context, princ);
1797 if (krb5context)
1798 krb5_free_context(krb5context);
1805 krb5_context krb5context = NULL;
1818 if ((krb5rc = krb5_init_context(&krb5context)) != 0)
1821 if ((krb5rc = krb5_sname_to_principal(krb5context,
1829 if ((krb5rc = krb5_cc_default(krb5context, &krb5ccdef)) != 0)
1832 if ((krb5rc = krb5_cc_get_principal(krb5context, krb5ccdef,
1836 if ((krb5rc = krb5_get_credentials(krb5context, 0, krb5ccdef,
1848 krb5_free_principal(krb5context, krb5creds.client);
1850 krb5_free_principal(krb5context, krb5creds.server);
1851 if (krb5context)
1852 krb5_free_context(krb5context);