/titanic_44/usr/src/lib/gss_mechs/mech_krb5/profile/ |
H A D | prof_set.c | 27 errcode_t retval = 0; in rw_setup() local 37 retval = profile_lock_global(); in rw_setup() 38 if (retval) in rw_setup() 39 return retval; in rw_setup() 51 retval = ENOMEM; in rw_setup() 53 retval = k5_mutex_init(&new_data->lock); in rw_setup() 54 if (retval == 0) { in rw_setup() 62 if (retval != 0) { in rw_setup() 65 return retval; in rw_setup() 72 retval = profile_update_file(file); in rw_setup() [all …]
|
H A D | prof_get.c | 130 errcode_t retval; in profile_get_values() local 135 if ((retval = profile_node_iterator_create(profile, names, in profile_get_values() 138 return retval; in profile_get_values() 140 if ((retval = init_list(&values))) in profile_get_values() 141 return retval; in profile_get_values() 144 if ((retval = profile_node_iterator(&state, 0, 0, &value))) in profile_get_values() 151 retval = PROF_NO_RELATION; in profile_get_values() 160 return retval; in profile_get_values() 170 errcode_t retval; in profile_get_value() local 174 if ((retval = profile_node_iterator_create(profile, names, in profile_get_value() [all …]
|
H A D | prof_file.c | 198 errcode_t retval; in profile_open_file() local 204 retval = CALL_INIT_FUNCTION(profile_library_initializer); in profile_open_file() 205 if (retval) in profile_open_file() 206 return retval; in profile_open_file() 243 retval = k5_mutex_lock(&g_shared_trees_mutex); in profile_open_file() 244 if (retval) { in profile_open_file() 248 return retval; in profile_open_file() 260 retval = profile_update_file_data(data); in profile_open_file() 265 return retval; in profile_open_file() 277 retval = k5_mutex_init(&data->lock); in profile_open_file() [all …]
|
/titanic_44/usr/src/lib/gss_mechs/mech_krb5/krb5/asn.1/ |
H A D | asn1_make.c | 44 asn1_error_code retval; in asn1_make_tag() local 49 retval = asn1_make_length(buf,in_len, &length); in asn1_make_tag() 50 if(retval) return retval; in asn1_make_tag() 52 retval = asn1_make_id(buf,asn1class,construction,tagnum,&length); in asn1_make_tag() 53 if(retval) return retval; in asn1_make_tag() 62 asn1_error_code retval; in asn1_make_length() local 65 retval = asn1buf_insert_octet(buf, (asn1_octet)(in_len&0x7F)); in asn1_make_length() 66 if(retval) return retval; in asn1_make_length() 72 retval = asn1buf_insert_octet(buf, (asn1_octet)(in_copy&0xFF)); in asn1_make_length() 73 if(retval) return retval; in asn1_make_length() [all …]
|
H A D | asn1_encode.c | 36 asn1_error_code retval; in asn1_encode_boolean() local 43 retval = asn1buf_insert_octet(buf, bval); in asn1_encode_boolean() 44 if (retval) return retval; in asn1_encode_boolean() 47 retval = asn1_make_tag(buf, UNIVERSAL, PRIMITIVE, ASN1_BOOLEAN, length, &partlen); in asn1_encode_boolean() 48 if (retval) return retval; in asn1_encode_boolean() 59 asn1_error_code retval; in asn1_encode_integer_internal() local 67 retval = asn1buf_insert_octet(buf,(asn1_octet) digit); in asn1_encode_integer_internal() 68 if (retval) return retval; in asn1_encode_integer_internal() 74 retval = asn1buf_insert_octet(buf,0); /* of the proper signed-ness */ in asn1_encode_integer_internal() 75 if (retval) return retval; in asn1_encode_integer_internal() [all …]
|
H A D | krb5_decode.c | 38 asn1_error_code retval;\ 41 retval = asn1buf_wrap_data(&buf,code);\ 42 if(retval) return retval 58 #define clean_return(val) { retval = val; goto error_out; } 70 retval = asn1_get_tag_2(&buf, &t1); \ 71 if (retval) clean_return (retval); \ 87 retval = asn1_get_tag_2(&subbuf, &t2); \ 88 if(retval) clean_return(retval); \ 99 retval = asn1_get_tag_2(&subbuf, &t3); \ 100 if (retval) return retval; \ [all …]
|
H A D | krb5_encode.c | 43 asn1_error_code retval;\ 52 retval = asn1buf_create(&buf);\ 53 if (retval) return retval 57 retval = asn12krb5_buf(buf,&tmpcode);\ 60 if (retval)\ 61 return retval;\ 69 retval = asn1_encode_pa_pk_as_req(buf,rep,&length); in encode_krb5_pa_pk_as_req() 70 if (retval) goto error; in encode_krb5_pa_pk_as_req() 78 retval = asn1_encode_pa_pk_as_req_draft9(buf,rep,&length); in encode_krb5_pa_pk_as_req_draft9() 79 if (retval) goto error; in encode_krb5_pa_pk_as_req_draft9() [all …]
|
H A D | asn1_decode.c | 41 asn1_error_code retval;\ 50 retval = asn1_get_tag_2(buf,&tinfo);\ 51 if(retval) return retval;\ 70 retval = asn1buf_remove_octet(buf, &o); in asn1_decode_integer() 71 if (retval) return retval; in asn1_decode_integer() 95 retval = asn1buf_remove_octet(buf, &o); in asn1_decode_unsigned_integer() 96 if(retval) return retval; in asn1_decode_unsigned_integer() 133 retval = asn1buf_remove_octet(buf, &o); in asn1_decode_maybe_unsigned() 134 if (retval) return retval; in asn1_decode_maybe_unsigned() 157 retval = asn1buf_remove_octetstring(buf, length, val); in asn1_decode_oid() [all …]
|
/titanic_44/usr/src/cmd/krb5/kadmin/ktutil/ |
H A D | ktutil.c | 73 krb5_error_code retval; local 84 retval = krb5_init_context(&kcontext); 85 if (retval) { 86 com_err(argv[0], retval, gettext("while initializing krb5")); 89 retval = ktutil_initialize_cmds_table (&ktutil_cmds); 90 if (retval) { 91 com_err(argv[0], retval, 96 &ktutil_cmds, &retval); 97 if (retval) { 98 ss_perror(sci_idx, retval, gettext("creating invocation")); [all …]
|
H A D | ktutil_funcs.c | 55 krb5_error_code retval = 0; local 58 retval = krb5_kt_free_entry(context, lp->entry); 60 if (retval) 66 return retval; 114 krb5_error_code retval; local 124 retval = krb5_parse_name(context, princ_str, &princ); 125 if (retval) 126 return retval; 129 retval = krb5_unparse_name(context, princ, &princ_str); 130 if (retval) [all …]
|
/titanic_44/usr/src/lib/krb5/plugins/preauth/pkinit/ |
H A D | pkinit_profile.c | 100 krb5_error_code retval; in pkinit_kdcdefault_strings() local 121 retval = profile_get_values(profile, names, &values); in pkinit_kdcdefault_strings() 122 if (retval == 0 && values != NULL) in pkinit_kdcdefault_strings() 136 retval = profile_get_values(profile, names, &values); in pkinit_kdcdefault_strings() 137 if (retval == 0 && values != NULL) in pkinit_kdcdefault_strings() 142 retval = ENOENT; in pkinit_kdcdefault_strings() 146 return retval; in pkinit_kdcdefault_strings() 154 krb5_error_code retval; in pkinit_kdcdefault_string() local 157 retval = pkinit_kdcdefault_strings(context, realmname, option, &values); in pkinit_kdcdefault_string() 158 if (retval) in pkinit_kdcdefault_string() [all …]
|
H A D | pkinit_srv.c | 108 krb5_error_code retval = KRB5KRB_ERR_GENERIC; in pkinit_create_edata() local 114 retval = pkinit_create_td_trusted_certifiers(context, in pkinit_create_edata() 118 retval = pkinit_create_td_dh_parameters(context, plg_cryptoctx, in pkinit_create_edata() 123 retval = pkinit_create_td_invalid_certificate(context, in pkinit_create_edata() 129 retval = 0; in pkinit_create_edata() 135 return retval; in pkinit_create_edata() 148 krb5_error_code retval = 0; in pkinit_server_get_edata() local 160 retval = EINVAL; in pkinit_server_get_edata() 162 return retval; in pkinit_server_get_edata() 172 krb5_error_code retval; in verify_client_san() local [all …]
|
H A D | pkinit_clnt.c | 135 krb5_error_code retval = KRB5KDC_ERR_PREAUTH_FAILED; local 155 retval = pkinit_get_kdc_cert(context, plgctx->cryptoctx, reqctx->cryptoctx, 157 if (retval) { 158 pkiDebug("pkinit_get_kdc_cert returned %d\n", retval); 163 retval = k5int_encode_krb5_kdc_req_body(request, &der_req); 164 if (retval) { 165 pkiDebug("encode_krb5_kdc_req_body returned %d\n", (int) retval); 169 retval = krb5_c_make_checksum(context, CKSUMTYPE_NIST_SHA, NULL, 0, 171 if (retval) 178 retval = krb5_us_timeofday(context, &ctsec, &cusec); [all …]
|
H A D | pkinit_matching.c | 199 krb5_error_code retval; in parse_list_value() local 210 retval = EINVAL; in parse_list_value() 220 retval = EINVAL; in parse_list_value() 253 retval = EINVAL; in parse_list_value() 258 retval = 0; in parse_list_value() 260 pkiDebug("%s: returning %d\n", __FUNCTION__, retval); in parse_list_value() 261 return retval; in parse_list_value() 270 krb5_error_code retval; in parse_rule_component() local 294 retval = ENOENT; in parse_rule_component() 302 retval = ENOMEM; in parse_rule_component() [all …]
|
/titanic_44/usr/src/cmd/krb5/kadmin/gui/visualrt/sunsoft/jws/visual/rt/type/ |
H A D | GBConstraintsConverter.java | 139 String retval = /* NOI18N */""; in convertToString() local 142 retval = retval + /* NOI18N */"x=" + c.gridx in convertToString() 146 retval = retval + /* NOI18N */"y=" + c.gridy in convertToString() 150 retval = retval + /* NOI18N */"width=" + c.gridwidth in convertToString() 154 retval = retval + /* NOI18N */"height=" in convertToString() 158 retval = retval + /* NOI18N */"weightx=" + c.weightx in convertToString() 162 retval = retval + /* NOI18N */"weighty=" + c.weighty in convertToString() 166 retval = retval + /* NOI18N */"fill=" in convertToString() 170 retval = /* NOI18N */(retval + "ipadx=" in convertToString() 174 retval = /* NOI18N */(retval + "ipady=" in convertToString() [all …]
|
/titanic_44/usr/src/cmd/krb5/slave/ |
H A D | kprop.c | 109 krb5_error_code retval; local 124 retval = krb5_init_context(&context); 125 if (retval) { 126 com_err(argv[0], retval, gettext("while initializing krb5")); 133 retval = open_connection(slave_host, &fd, Errmsg, sizeof(Errmsg)); 134 if (retval) { 135 com_err(progname, retval, gettext("%s while opening connection to %s"), 209 krb5_error_code retval; local 229 retval = krb5_get_default_realm(context, &def_realm); 230 if (retval) { [all …]
|
H A D | kpropd.c | 207 krb5_error_code retval; local 221 retval = krb5_db_supports_iprop(kpropd_context, 223 if (retval) { 225 com_err(progname, retval, 242 if (retval = kadm5_is_master(kpropd_context, def_realm, 244 com_err(progname, retval, 261 retval = do_iprop(log_ctx); 262 if (retval) { 264 com_err(progname, retval, 528 krb5_error_code retval; local [all …]
|
/titanic_44/usr/src/lib/libdladm/common/ |
H A D | libdlmgmt.c | 114 dlmgmt_createid_retval_t retval; in dladm_create_datalink_id() local 117 size_t sz = sizeof (retval); in dladm_create_datalink_id() 136 &retval, &sz)) == DLADM_STATUS_OK) { in dladm_create_datalink_id() 137 *linkidp = retval.lr_linkid; in dladm_create_datalink_id() 150 dlmgmt_destroyid_retval_t retval; in dladm_destroy_datalink_id() local 152 size_t sz = sizeof (retval); in dladm_destroy_datalink_id() 162 &retval, &sz)); in dladm_destroy_datalink_id() 173 dlmgmt_remapid_retval_t retval; in dladm_remap_datalink_id() local 174 size_t sz = sizeof (retval); in dladm_remap_datalink_id() 181 &retval, &sz)); in dladm_remap_datalink_id() [all …]
|
/titanic_44/usr/src/lib/gss_mechs/mech_krb5/krb5/krb/ |
H A D | rd_req_dec.c | 75 krb5_error_code retval; in krb5_rd_req_decrypt_tkt_part() local 83 if ((retval = krb5_kt_get_entry(context, keytab, req->ticket->server, in krb5_rd_req_decrypt_tkt_part() 86 return retval; in krb5_rd_req_decrypt_tkt_part() 97 retval = krb5_decrypt_tkt_part(context, &ktent.key, req->ticket); in krb5_rd_req_decrypt_tkt_part() 100 if (retval == KRB5KRB_AP_ERR_BAD_INTEGRITY) { in krb5_rd_req_decrypt_tkt_part() 106 krb5_set_error_message(context, retval, in krb5_rd_req_decrypt_tkt_part() 117 return retval; in krb5_rd_req_decrypt_tkt_part() 130 krb5_error_code retval; in krb5int_check_clockskew2() local 132 retval = krb5_timeofday(context, ¤ttime); in krb5int_check_clockskew2() 133 if (retval) in krb5int_check_clockskew2() [all …]
|
H A D | gc_frm_kdc.c | 254 krb5_error_code retval; in tr_dbg() local 258 retval = krb5_unparse_name(ts->ctx, ts->cur_tgt->server, &cur_tgt_str); in tr_dbg() 259 if (retval) goto cleanup; in tr_dbg() 260 retval = krb5_unparse_name(ts->ctx, *ts->cur_kdc, &cur_kdc_str); in tr_dbg() 261 if (retval) goto cleanup; in tr_dbg() 262 retval = krb5_unparse_name(ts->ctx, *ts->nxt_kdc, &nxt_kdc_str); in tr_dbg() 263 if (retval) goto cleanup; in tr_dbg() 311 krb5_error_code retval; in tgt_mcred() local 313 retval = 0; in tgt_mcred() 316 retval = krb5_copy_principal(ctx, client, &mcreds->client); in tgt_mcred() [all …]
|
/titanic_44/usr/src/uts/common/gssapi/mechs/krb5/krb5/os/ |
H A D | init_os_ctx.c | 127 krb5_error_code retval = 0; in get_from_registry() local 156 retval = ENOMEM; in get_from_registry() 173 if (retval && *pbuffer) in get_from_registry() 179 return retval; in get_from_registry() 205 krb5_error_code retval = 0; in os_get_default_config_files() local 221 retval = get_from_registry(&name, HKEY_CURRENT_USER); in os_get_default_config_files() 222 if (retval) return retval; in os_get_default_config_files() 227 retval = get_from_registry(&name, HKEY_LOCAL_MACHINE); in os_get_default_config_files() 228 if (retval) return retval; in os_get_default_config_files() 233 retval = get_from_module_dir(&name); in os_get_default_config_files() [all …]
|
/titanic_44/usr/src/cmd/krb5/kadmin/dbutil/ |
H A D | kdb5_stash.c | 100 krb5_error_code retval; local 114 retval = kadm5_init_krb5_context(&context); 115 if( retval ) 118 com_err(progname, retval, "while initializing krb5_context"); 122 if ((retval = krb5_set_default_realm(context, 125 com_err(progname, retval, "while setting default realm name"); 163 retval = krb5_db_setup_mkey_name(context, mkey_name, realm, 165 if (retval) { 167 com_err(progname, retval, 172 retval = krb5_db_open(context, db5util_db_args, [all …]
|
/titanic_44/usr/src/uts/common/inet/ip/ |
H A D | ip_sadb.c | 100 ipsa_t *retval, *candidate; in ipsec_getassocbyconn() local 135 retval = ipr->ipsr_sa; in ipsec_getassocbyconn() 144 (retval->ipsa_state != IPSA_STATE_DEAD) && in ipsec_getassocbyconn() 145 !(retval->ipsa_flags & IPSA_F_CINVALID)) { in ipsec_getassocbyconn() 146 IPSA_REFHOLD(retval); in ipsec_getassocbyconn() 147 return (retval); in ipsec_getassocbyconn() 192 for (retval = bucket->isaf_ipsa; retval != NULL; in ipsec_getassocbyconn() 193 retval = retval->ipsa_next) { in ipsec_getassocbyconn() 204 mutex_enter(&retval->ipsa_lock); in ipsec_getassocbyconn() 209 if (!IPSA_ARE_ADDR_EQUAL(dst, retval->ipsa_dstaddr, af)) in ipsec_getassocbyconn() [all …]
|
/titanic_44/usr/src/common/net/wanboot/ |
H A D | p12auxpars.c | 213 int retval = -1; in sunw_PKCS12_parse() local 264 retval = parse_pkcs12(p12, pass, matchty, keyid, keyid_len, in sunw_PKCS12_parse() 266 if (retval < 0) { in sunw_PKCS12_parse() 270 return (retval); in sunw_PKCS12_parse() 327 int retval = 0; in parse_pkcs12() local 330 retval = sunw_PKCS12_contents(p12, pass, &work_kl, &work_ca); in parse_pkcs12() 331 if (retval < 0) { in parse_pkcs12() 333 } else if (retval == 0) { in parse_pkcs12() 357 retval = -1; in parse_pkcs12() 362 retval = sunw_find_localkeyid(keyid, kstr_len, in parse_pkcs12() [all …]
|
/titanic_44/usr/src/lib/gss_mechs/mech_krb5/krb5/rcache/ |
H A D | rc_file.c | 120 krb5_error_code retval; in krb5_rc_file_init_locked() local 124 if ((retval = krb5_rc_io_creat(context, &t->d, &t->name))) { in krb5_rc_file_init_locked() 125 return retval; in krb5_rc_file_init_locked() 138 krb5_error_code retval; in krb5_rc_file_init() local 140 retval = k5_mutex_lock(&id->lock); in krb5_rc_file_init() 141 if (retval) in krb5_rc_file_init() 142 return retval; in krb5_rc_file_init() 143 retval = krb5_rc_file_init_locked(context, id, lifespan); in krb5_rc_file_init() 145 return retval; in krb5_rc_file_init() 176 krb5_error_code retval; in krb5_rc_file_close() local [all …]
|