Home
last modified time | relevance | path

Searched refs:retval (Results 1 – 25 of 880) sorted by relevance

12345678910>>...36

/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/profile/
H A Dprof_set.c26 errcode_t retval = 0; in rw_setup() local
36 retval = profile_lock_global(); in rw_setup()
37 if (retval) in rw_setup()
38 return retval; in rw_setup()
50 retval = ENOMEM; in rw_setup()
52 retval = k5_mutex_init(&new_data->lock); in rw_setup()
53 if (retval == 0) { in rw_setup()
61 if (retval != 0) { in rw_setup()
64 return retval; in rw_setup()
71 retval = profile_update_file(file); in rw_setup()
[all …]
H A Dprof_get.c130 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 Dprof_file.c198 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 …]
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/asn.1/
H A Dasn1_make.c42 asn1_error_code retval; in asn1_make_tag() local
47 retval = asn1_make_length(buf,in_len, &length); in asn1_make_tag()
48 if(retval) return retval; in asn1_make_tag()
50 retval = asn1_make_id(buf,asn1class,construction,tagnum,&length); in asn1_make_tag()
51 if(retval) return retval; in asn1_make_tag()
60 asn1_error_code retval; in asn1_make_length() local
63 retval = asn1buf_insert_octet(buf, (asn1_octet)(in_len&0x7F)); in asn1_make_length()
64 if(retval) return retval; in asn1_make_length()
70 retval = asn1buf_insert_octet(buf, (asn1_octet)(in_copy&0xFF)); in asn1_make_length()
71 if(retval) return retval; in asn1_make_length()
[all …]
H A Dasn1_encode.c36 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 Dkrb5_decode.c38 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 Dkrb5_encode.c43 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 Dasn1_decode.c41 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 …]
/illumos-gate/usr/src/cmd/krb5/kadmin/ktutil/
H A Dktutil.c71 krb5_error_code retval; local
82 retval = krb5_init_context(&kcontext);
83 if (retval) {
84 com_err(argv[0], retval, gettext("while initializing krb5"));
87 retval = ktutil_initialize_cmds_table (&ktutil_cmds);
88 if (retval) {
89 com_err(argv[0], retval,
94 &ktutil_cmds, &retval);
95 if (retval) {
96 ss_perror(sci_idx, retval, gettext("creating invocation"));
[all …]
H A Dktutil_funcs.c52 krb5_error_code retval = 0; local
55 retval = krb5_kt_free_entry(context, lp->entry);
57 if (retval)
63 return retval;
111 krb5_error_code retval; local
121 retval = krb5_parse_name(context, princ_str, &princ);
122 if (retval)
123 return retval;
126 retval = krb5_unparse_name(context, princ, &princ_str);
127 if (retval)
[all …]
/illumos-gate/usr/src/lib/krb5/plugins/preauth/pkinit/
H A Dpkinit_srv.c108 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 Dpkinit_clnt.c135 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 Dpkinit_profile.c100 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 Dpkinit_matching.c199 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 …]
/illumos-gate/usr/src/cmd/krb5/slave/
H A Dkprop.c109 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 Dkpropd.c207 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 …]
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/krb/
H A Drd_req_dec.c75 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, &currenttime); in krb5int_check_clockskew2()
133 if (retval) in krb5int_check_clockskew2()
[all …]
H A Dgc_frm_kdc.c254 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 …]
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/krb5/os/
H A Dinit_os_ctx.c127 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 …]
/illumos-gate/usr/src/uts/common/inet/ip/
H A Dip_sadb.c100 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 …]
/illumos-gate/usr/src/lib/libdladm/common/
H A Dlibdlmgmt.c116 dlmgmt_createid_retval_t retval; in dladm_create_datalink_id() local
119 size_t sz = sizeof (retval); in dladm_create_datalink_id()
151 &retval, &sz)) == DLADM_STATUS_OK) { in dladm_create_datalink_id()
152 *linkidp = retval.lr_linkid; in dladm_create_datalink_id()
165 dlmgmt_destroyid_retval_t retval; in dladm_destroy_datalink_id() local
167 size_t sz = sizeof (retval); in dladm_destroy_datalink_id()
177 &retval, &sz)); in dladm_destroy_datalink_id()
188 dlmgmt_remapid_retval_t retval; in dladm_remap_datalink_id() local
189 size_t sz = sizeof (retval); in dladm_remap_datalink_id()
196 &retval, &sz)); in dladm_remap_datalink_id()
[all …]
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/rcache/
H A Drc_file.c120 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 …]
/illumos-gate/usr/src/lib/libm/common/C/
H A D_SVID_error.c143 exc.retval = 0.0; in _SVID_libm_err()
157 exc.retval = 0.0; in _SVID_libm_err()
176 exc.retval = 0.0; in _SVID_libm_err()
192 exc.retval = HUGE; in _SVID_libm_err()
194 exc.retval = HUGE_VAL; in _SVID_libm_err()
206 exc.retval = HUGE; in _SVID_libm_err()
208 exc.retval = HUGE_VAL; in _SVID_libm_err()
220 exc.retval = HUGE; in _SVID_libm_err()
222 exc.retval = HUGE_VAL; in _SVID_libm_err()
233 exc.retval = 0.0; in _SVID_libm_err()
[all …]
/illumos-gate/usr/src/lib/krb5/plugins/kdb/db2/
H A Dkdb_db2.c324 krb5_error_code retval; in krb5_db2_db_init() local
332 if ((retval = k5db2_init_context(context))) in krb5_db2_db_init()
333 return (retval); in krb5_db2_db_init()
350 retval = errno; in krb5_db2_db_init()
354 krb5_db2_prepend_err_str(context, errbuf, retval, retval); in krb5_db2_db_init()
361 if ((retval = krb5_db2_db_get_age(context, NULL, &db_ctx->db_lf_time))) in krb5_db2_db_init()
368 if ((retval = osa_adb_init_db(&db_ctx->policy_db, policy_db_name, in krb5_db2_db_init()
375 krb5_db2_prepend_err_str(context, errbuf, retval, retval); in krb5_db2_db_init()
384 return (retval); in krb5_db2_db_init()
394 krb5_error_code retval = 0; in krb5_db2_db_fini() local
[all …]
/illumos-gate/usr/src/uts/common/io/ib/ibtl/
H A Dibtl_chan.c65 ibt_status_t retval; in ibt_alloc_rc_channel() local
116 retval = ibt_query_rc_channel(args->rc_clone_chan, &chan_attrs); in ibt_alloc_rc_channel()
117 if (retval != IBT_SUCCESS) { in ibt_alloc_rc_channel()
119 "Failed to query the source channel: %d", retval); in ibt_alloc_rc_channel()
120 return (retval); in ibt_alloc_rc_channel()
176 retval = ibt_alloc_qp(hca_hdl, IBT_RC_RQP, &qp_attr, sizes, NULL, in ibt_alloc_rc_channel()
178 if (retval != IBT_SUCCESS) { in ibt_alloc_rc_channel()
180 "Failed to allocate QP: %d", retval); in ibt_alloc_rc_channel()
182 return (retval); in ibt_alloc_rc_channel()
188 retval = ibt_initialize_qp(chanp, &qp_modify_attr); in ibt_alloc_rc_channel()
[all …]

12345678910>>...36