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