Lines Matching refs:ret

188     krb5_error_code ret;  in allocate_ccache()  local
192 ret = _krb5_expand_path_tokens(context, residual, &exp_residual); in allocate_ccache()
193 if (ret) in allocate_ccache()
194 return ret; in allocate_ccache()
199 ret = _krb5_cc_allocate(context, ops, id); in allocate_ccache()
200 if (ret) { in allocate_ccache()
205 return ret; in allocate_ccache()
208 ret = (*id)->ops->resolve(context, id, residual); in allocate_ccache()
209 if(ret) { in allocate_ccache()
219 return ret; in allocate_ccache()
301 krb5_error_code ret; in krb5_cc_new_unique() local
310 ret = _krb5_cc_allocate(context, ops, id); in krb5_cc_new_unique()
311 if (ret) in krb5_cc_new_unique()
312 return ret; in krb5_cc_new_unique()
313 ret = (*id)->ops->gen_new(context, id); in krb5_cc_new_unique()
314 if (ret) { in krb5_cc_new_unique()
318 return ret; in krb5_cc_new_unique()
503 krb5_error_code ret = 0; in krb5_cc_set_default_name() local
528 ret = _krb5_expand_default_cc_name(context, e, &p); in krb5_cc_set_default_name()
529 if (ret) in krb5_cc_set_default_name()
530 return ret; in krb5_cc_set_default_name()
546 ret = (*ops->get_default_name)(context, &p); in krb5_cc_set_default_name()
547 if (ret) in krb5_cc_set_default_name()
548 return ret; in krb5_cc_set_default_name()
562 ret = _krb5_expand_path_tokens(context, p, &exp_p); in krb5_cc_set_default_name()
564 if (ret) in krb5_cc_set_default_name()
565 return ret; in krb5_cc_set_default_name()
647 krb5_error_code ret; in krb5_cc_destroy() local
649 ret = (*id->ops->destroy)(context, id); in krb5_cc_destroy()
651 return ret; in krb5_cc_destroy()
667 krb5_error_code ret; in krb5_cc_close() local
668 ret = (*id->ops->close)(context, id); in krb5_cc_close()
670 return ret; in krb5_cc_close()
715 krb5_error_code ret; in krb5_cc_retrieve_cred() local
723 ret = krb5_cc_start_seq_get(context, id, &cursor); in krb5_cc_retrieve_cred()
724 if (ret) in krb5_cc_retrieve_cred()
725 return ret; in krb5_cc_retrieve_cred()
726 while((ret = krb5_cc_next_cred(context, id, &cursor, creds)) == 0){ in krb5_cc_retrieve_cred()
728 ret = 0; in krb5_cc_retrieve_cred()
734 return ret; in krb5_cc_retrieve_cred()
883 krb5_error_code ret; in krb5_cc_copy_match_f() local
891 ret = krb5_cc_get_principal(context, from, &princ); in krb5_cc_copy_match_f()
892 if (ret) in krb5_cc_copy_match_f()
893 return ret; in krb5_cc_copy_match_f()
894 ret = krb5_cc_initialize(context, to, princ); in krb5_cc_copy_match_f()
895 if (ret) { in krb5_cc_copy_match_f()
897 return ret; in krb5_cc_copy_match_f()
899 ret = krb5_cc_start_seq_get(context, from, &cursor); in krb5_cc_copy_match_f()
900 if (ret) { in krb5_cc_copy_match_f()
902 return ret; in krb5_cc_copy_match_f()
905 while ((ret = krb5_cc_next_cred(context, from, &cursor, &cred)) == 0) { in krb5_cc_copy_match_f()
909 ret = krb5_cc_store_cred(context, to, &cred); in krb5_cc_copy_match_f()
910 if (ret) in krb5_cc_copy_match_f()
917 if (ret == KRB5_CC_END) in krb5_cc_copy_match_f()
918 ret = 0; in krb5_cc_copy_match_f()
919 return ret; in krb5_cc_copy_match_f()
1034 krb5_error_code ret; in krb5_cc_cache_get_first() local
1063 ret = ops->get_cache_first(context, &(*cursor)->cursor); in krb5_cc_cache_get_first()
1064 if (ret) { in krb5_cc_cache_get_first()
1068 return ret; in krb5_cc_cache_get_first()
1107 krb5_error_code ret; in krb5_cc_cache_end_seq_get() local
1108 ret = cursor->ops->end_cache_get(context, cursor->cursor); in krb5_cc_cache_end_seq_get()
1111 return ret; in krb5_cc_cache_end_seq_get()
1135 krb5_error_code ret; in krb5_cc_cache_match() local
1140 ret = krb5_cccol_cursor_new (context, &cursor); in krb5_cc_cache_match()
1141 if (ret) in krb5_cc_cache_match()
1142 return ret; in krb5_cc_cache_match()
1147 ret = krb5_cc_get_principal(context, cache, &principal); in krb5_cc_cache_match()
1148 if (ret == 0) { in krb5_cc_cache_match()
1198 krb5_error_code ret; in krb5_cc_move() local
1207 ret = (*to->ops->move)(context, from, to); in krb5_cc_move()
1208 if (ret == 0) { in krb5_cc_move()
1212 return ret; in krb5_cc_move()
1224 krb5_error_code ret; in build_conf_principals() local
1229 ret = krb5_cc_get_principal(context, id, &client); in build_conf_principals()
1230 if (ret) in build_conf_principals()
1231 return ret; in build_conf_principals()
1234 ret = krb5_unparse_name(context, principal, &pname); in build_conf_principals()
1235 if (ret) in build_conf_principals()
1236 return ret; in build_conf_principals()
1239 ret = krb5_make_principal(context, &cred->server, in build_conf_principals()
1243 if (ret) { in build_conf_principals()
1245 return ret; in build_conf_principals()
1247 ret = krb5_copy_principal(context, client, &cred->client); in build_conf_principals()
1249 return ret; in build_conf_principals()
1296 krb5_error_code ret; in krb5_cc_set_config() local
1299 ret = build_conf_principals(context, id, principal, name, &cred); in krb5_cc_set_config()
1300 if (ret) in krb5_cc_set_config()
1304 ret = krb5_cc_remove_cred(context, id, 0, &cred); in krb5_cc_set_config()
1305 if (ret && ret != KRB5_CC_NOTFOUND) in krb5_cc_set_config()
1313 ret = krb5_data_copy(&cred.ticket, data->data, data->length); in krb5_cc_set_config()
1314 if (ret) in krb5_cc_set_config()
1317 ret = krb5_cc_store_cred(context, id, &cred); in krb5_cc_set_config()
1322 return ret; in krb5_cc_set_config()
1345 krb5_error_code ret; in krb5_cc_get_config() local
1350 ret = build_conf_principals(context, id, principal, name, &mcred); in krb5_cc_get_config()
1351 if (ret) in krb5_cc_get_config()
1354 ret = krb5_cc_retrieve_cred(context, id, 0, &mcred, &cred); in krb5_cc_get_config()
1355 if (ret) in krb5_cc_get_config()
1358 ret = krb5_data_copy(data, cred.ticket.data, cred.ticket.length); in krb5_cc_get_config()
1363 return ret; in krb5_cc_get_config()
1423 krb5_error_code ret; in krb5_cccol_cursor_next() local
1430 ret = krb5_cc_cache_get_first (context, in krb5_cccol_cursor_next()
1433 if (ret) { in krb5_cccol_cursor_next()
1438 ret = krb5_cc_cache_next(context, cursor->cursor, cache); in krb5_cccol_cursor_next()
1439 if (ret == 0) in krb5_cccol_cursor_next()
1444 if (ret != KRB5_CC_END) in krb5_cccol_cursor_next()
1526 krb5_error_code ret; in krb5_cccol_last_change_time() local
1532 ret = krb5_cccol_cursor_new (context, &cursor); in krb5_cccol_last_change_time()
1533 if (ret) in krb5_cccol_last_change_time()
1534 return ret; in krb5_cccol_last_change_time()
1541 ret = krb5_cc_last_change_time(context, id, &t); in krb5_cccol_last_change_time()
1543 if (ret) in krb5_cccol_last_change_time()
1566 krb5_error_code ret; in krb5_cc_get_friendly_name() local
1569 ret = krb5_cc_get_config(context, id, NULL, "FriendlyName", &data); in krb5_cc_get_friendly_name()
1570 if (ret) { in krb5_cc_get_friendly_name()
1572 ret = krb5_cc_get_principal(context, id, &principal); in krb5_cc_get_friendly_name()
1573 if (ret) in krb5_cc_get_friendly_name()
1574 return ret; in krb5_cc_get_friendly_name()
1575 ret = krb5_unparse_name(context, principal, name); in krb5_cc_get_friendly_name()
1578 ret = asprintf(name, "%.*s", (int)data.length, (char *)data.data); in krb5_cc_get_friendly_name()
1580 if (ret <= 0) { in krb5_cc_get_friendly_name()
1581 ret = ENOMEM; in krb5_cc_get_friendly_name()
1582 krb5_set_error_message(context, ret, N_("malloc: out of memory", "")); in krb5_cc_get_friendly_name()
1584 ret = 0; in krb5_cc_get_friendly_name()
1587 return ret; in krb5_cc_get_friendly_name()
1630 krb5_error_code ret; in krb5_cc_get_lifetime() local
1637 ret = krb5_cc_start_seq_get(context, id, &cursor); in krb5_cc_get_lifetime()
1638 if (ret) in krb5_cc_get_lifetime()
1639 return ret; in krb5_cc_get_lifetime()
1641 while ((ret = krb5_cc_next_cred(context, id, &cursor, &cred)) == 0) { in krb5_cc_get_lifetime()
1653 return ret; in krb5_cc_get_lifetime()
1736 int ret = -1; in _krb5_set_default_cc_name_to_registry() local
1746 ret = asprintf(&ccname, "%s:%s", krb5_cc_get_type(context, id), krb5_cc_get_name(context, id)); in _krb5_set_default_cc_name_to_registry()
1747 if (ret < 0) in _krb5_set_default_cc_name_to_registry()
1750 ret = _krb5_store_string_to_reg_value(context, hk_k5, "ccname", in _krb5_set_default_cc_name_to_registry()
1760 return ret; in _krb5_set_default_cc_name_to_registry()