Lines Matching defs:krb5context
1071 krb5_context krb5context = NULL;
1093 if ((krb5rc = krb5_init_context(&krb5context)) != 0)
1101 if ((krb5rc = krb5_sname_to_principal(krb5context,
1115 if ((krb5rc = krb5_cc_default(krb5context, &krb5ccdef)) != 0)
1122 if ((krb5rc = krb5_cc_get_principal(krb5context, krb5ccdef,
1130 if ((krb5rc = krb5_get_credentials(krb5context, 0, krb5ccdef,
1161 if ((krb5rc = krb5_mk_req_extended(krb5context,
1188 kssl_krb5_free_data_contents(krb5context,&krb5_app_req);
1210 if (krb5creds.client) krb5_free_principal(krb5context,
1212 if (krb5creds.server) krb5_free_principal(krb5context,
1214 if (krb5auth_context) krb5_auth_con_free(krb5context,
1216 if (krb5context) krb5_free_context(krb5context);
1233 kssl_TKT2tkt( /* IN */ krb5_context krb5context,
1265 if ((krb5rc = kssl_build_principal_2(krb5context,
1278 krb5_princ_type(krb5context, new5ticket->server) =
1319 static krb5_context krb5context = NULL;
1342 if (!krb5context && (krb5rc = krb5_init_context(&krb5context)))
1349 (krb5rc = krb5_auth_con_free(krb5context, krb5auth_context)))
1357 (krb5rc = krb5_auth_con_init(krb5context, &krb5auth_context)))
1365 if ((krb5rc = krb5_auth_con_getrcache(krb5context, krb5auth_context,
1373 if ((krb5rc = krb5_sname_to_principal(krb5context, NULL,
1384 if ((krb5rc = krb5_get_server_rcache(krb5context,
1385 krb5_princ_component(krb5context, krb5server, 0),
1394 if ((krb5rc = krb5_auth_con_setrcache(krb5context, krb5auth_context, rcache)))
1406 krb5rc = krb5_kt_resolve(krb5context, kssl_ctx->keytab_file,
1417 krb5rc = krb5_kt_default(krb5context,&krb5keytab);
1435 ** if ((krb5rc = krb5_rd_req(krb5context, &krb5auth_context,
1451 if ((krb5rc = kssl_TKT2tkt(krb5context, asn1ticket, &krb5ticket,
1460 if (! krb5_principal_compare(krb5context, krb5server,
1468 if ((krb5rc = krb5_kt_get_entry(krb5context, krb5keytab,
1476 if ((krb5rc = krb5_decrypt_tkt_part(krb5context, &kt_entry.key,
1484 krb5_kt_free_entry(krb5context, &kt_entry);
1558 if (krb5keytab) krb5_kt_close(krb5context, krb5keytab);
1559 if (krb5ticket) krb5_free_ticket(krb5context, krb5ticket);
1560 if (krb5server) krb5_free_principal(krb5context, krb5server);
1779 krb5_context krb5context = NULL;
1786 if ((krb5rc = krb5_init_context(&krb5context)))
1793 krb5rc = krb5_kt_resolve(krb5context, kssl_ctx->keytab_file,
1800 krb5rc = krb5_kt_default(krb5context,&krb5keytab);
1806 krb5rc = krb5_sname_to_principal(krb5context, NULL,
1810 krb5rc = krb5_kt_get_entry(krb5context, krb5keytab,
1821 krb5_kt_free_entry(krb5context, &entry);
1825 if (krb5keytab) krb5_kt_close(krb5context, krb5keytab);
1826 if (princ) krb5_free_principal(krb5context, princ);
1827 if (krb5context) krb5_free_context(krb5context);
1835 krb5_context krb5context = NULL;
1848 if ((krb5rc = krb5_init_context(&krb5context)) != 0)
1851 if ((krb5rc = krb5_sname_to_principal(krb5context,
1857 if ((krb5rc = krb5_cc_default(krb5context, &krb5ccdef)) != 0)
1860 if ((krb5rc = krb5_cc_get_principal(krb5context, krb5ccdef,
1864 if ((krb5rc = krb5_get_credentials(krb5context, 0, krb5ccdef,
1875 if (krb5creds.client) krb5_free_principal(krb5context, krb5creds.client);
1876 if (krb5creds.server) krb5_free_principal(krb5context, krb5creds.server);
1877 if (krb5context) krb5_free_context(krb5context);