Lines Matching defs:code

103  * Common code which fetches the correct krb5 credentials from the
115 krb5_error_code code;
121 if ((code = krb5_copy_principal(context, cred->princ, &in_creds.client)))
123 if ((code = krb5_copy_principal(context, server, &in_creds.server)))
129 code = krb5_get_credentials(context, 0, cred->ccache,
131 if (code)
136 * boundaries) because accept_sec_context code is also similarly
141 code = KRB5KRB_AP_ERR_TKT_EXPIRED;
150 return code;
166 krb5_error_code code;
185 code = krb5_fwd_tgt_creds(context, auth_context, 0,
193 if (code) {
214 /* Our ftp client code stupidly assumes a base64-encoded
270 krb5_error_code code;
284 if ((code = kg_checksum_channel_bindings(context, chan_bindings, &md5, 0)))
285 return(code);
298 code = make_gss_checksum(context, ctx->auth_context, &cksum_struct,
300 if (code)
317 code = krb5_mk_req_extended(context, &ctx->auth_context, mk_req_flags,
320 if (code)
333 code = ENOMEM;
351 code = 0;
359 return (code);
373 krb5_error_code code;
377 code = krb5int_accessor (&kaccess, KRB5INT_ACCESS_VERSION);
378 if (code)
395 if ((code = krb5_copy_keyblock(context, ctx->subkey, &ctx->enc)))
411 code = krb5_copy_keyblock (context, ctx->subkey, &ctx->enc);
412 if (code)
415 code = krb5_copy_keyblock (context, ctx->subkey, &ctx->seq);
416 if (code) {
437 code = (*kaccess.krb5int_c_mandatory_cksumtype)(context, ctx->subkey->enctype,
439 if (code)
441 code = krb5_c_checksum_length(context, ctx->cksumtype,
443 if (code)
448 /* SUNW15resync - (as in prev snv code) add if-code and success label fix */
449 if (code) {
450 *minor_status = code;
482 krb5_error_code code;
519 if ((code = krb5_auth_con_init(context, &ctx->auth_context)))
526 if ((code = krb5_set_default_tgs_enctypes(context,
541 if ((code = krb5_timeofday(context, &now)))
550 if ((code = krb5_copy_principal(context, cred->princ, &ctx->here)))
553 if ((code = krb5_copy_principal(context, (krb5_principal) target_name,
557 code = get_credentials(context, cred, ctx->there, now,
559 if (code)
568 code = *minor_status;
579 if ((code = make_ap_req_v1(context, ctx,
582 if ((code == KRB5_FCC_NOFILE) || (code == KRB5_CC_NOTFOUND) ||
583 (code == KG_EMPTY_CCACHE))
585 if (code == KRB5KRB_AP_ERR_TKT_EXPIRED)
610 code = G_VALIDATE_FAILED;
618 if ((code = krb5_timeofday(context, &now)))
662 *minor_status = code;
695 krb5_error_code code;
700 code = krb5int_accessor (&kaccess, KRB5INT_ACCESS_VERSION);
701 if (code)
718 code = KG_CONTEXT_ESTABLISHED;
729 code = KRB5_PRINC_NOMATCH;
731 krb5_set_error_message(context, code,
735 save_error_info(code, context);
753 code = 0;
774 code = krb5_rd_error(context, &ap_rep, &krb_error);
775 if (code)
778 code = krb_error->error + ERROR_TABLE_BASE_krb5;
780 code = 0;
793 if ((code = krb5_rd_rep(context, ctx->auth_context, &ap_rep,
815 code = krb5_copy_keyblock(context, ap_rep_data->subkey,
817 if (code)
819 code = (*kaccess.krb5int_c_mandatory_cksumtype)(context,
822 if (code)
835 if ((code = krb5_timeofday(context, &now)))
854 *minor_status = code;
903 major_status = GSS_S_FAILURE; /* Default major code */
1394 krb5_error_code code;
1414 if (code = krb5_kt_default(context, &keytab)) {
1415 *minor_status = code;
1422 code = get_instance_keytab(context, sname, keytab, &instance);
1423 if (code == 0) {
1424 code = krb5_sname_to_principal(context,
1430 code = krb5_sname_to_principal(context, NULL, sname,
1435 if (code == 0 && krb5_is_referral_realm(&me->realm)) {
1437 code = krb5_kt_find_realm(context, keytab, me, &realm);
1438 if (code == 0) {
1448 krb5_set_error_message(context, code,
1457 if (code) {
1459 *minor_status = code;
1465 if((code = krb5_build_principal_ext(context, &server,
1472 *minor_status = code;
1484 if ((code = krb5_timeofday(context, &now))) {
1485 *minor_status = code;
1498 code = krb5_unparse_name(context, server, &svcname);
1499 if (code != 0) {
1500 *minor_status = code;
1511 code = krb5_get_init_creds_keytab(context,
1519 if (code) {
1520 *minor_status = code;
1529 code = krb5_cc_resolve (context,
1532 if (code != 0) {
1533 *minor_status = code;
1539 code = krb5_cc_initialize (context, ccache, me);
1542 if (code != 0) {
1543 *minor_status = code;
1550 code = krb5_cc_store_cred(context, ccache,
1555 if (code) {
1556 *minor_status = code;
1559 "code = %d\n", code);
1577 krb5_error_code code;
1591 if ((code = krb5_cc_default(context, &ccache))) {
1592 *minor_status = code;
1597 if ((code = krb5_cc_get_principal(context, ccache, &me)) != 0) {
1598 *minor_status = code;
1605 if((code = krb5_build_principal_ext(context, &server,
1614 *minor_status = code;
1628 code = krb5_get_credentials_renew(context, options, ccache,
1633 if (code) {
1634 *minor_status = code;
1641 code = safechown(ccache_name_buf, uid, gid, -1);
1643 if (code == -1) {
1645 *minor_status = code;