Lines Matching refs:ret
77 krb5_error_code ret;
95 ret = krb5_mk_req_extended (context,
101 if (ret)
102 return ret;
109 ret = krb5_mk_priv (context,
114 if (ret)
143 ret = rk_SOCK_ERRNO;
144 krb5_set_error_message(context, ret, "sendmsg %s: %s",
145 host, strerror(ret));
151 return ret;
169 krb5_error_code ret;
182 ret = krb5_mk_req_extended (context,
188 if (ret)
189 return ret;
202 &chpw, &len, ret);
203 if (ret) {
205 return ret;
211 ret = krb5_mk_priv (context,
216 if (ret)
253 ret = rk_SOCK_ERRNO;
254 krb5_set_error_message(context, ret, "sendmsg %s: %s",
255 host, strerror(ret));
262 return ret;
275 krb5_error_code ret;
287 ret = recvfrom (sock, reply + len, sizeof(reply) - len,
289 if (rk_IS_SOCKET_ERROR(ret)) {
295 } else if (ret == 0) {
299 len += ret;
316 ret = recvfrom (sock, reply, sizeof(reply), 0, NULL, NULL);
317 if (rk_IS_SOCKET_ERROR(ret)) {
324 len = ret;
344 ret = decode_KRB_ERROR(reply, len, &error, &size);
345 if (ret)
346 return ret;
397 ret = krb5_rd_rep (context,
401 if (ret)
402 return ret;
406 ret = krb5_rd_priv (context,
411 if (ret) {
413 return ret;
435 ret = decode_KRB_ERROR(reply + 6, len - 6, &error, &size);
436 if (ret) {
437 return ret;
514 krb5_error_code ret;
528 ret = krb5_auth_con_init (context, &auth_context);
529 if (ret)
530 return ret;
535 ret = krb5_krbhst_init (context, realm, KRB5_KRBHST_CHANGEPW, &handle);
536 if (ret)
539 while (!done && (ret = krb5_krbhst_next(context, handle, &hi)) == 0) {
558 ret = krb5_krbhst_get_addrinfo(context, hi, &ai);
559 if (ret)
570 ret = connect(sock, a->ai_addr, a->ai_addrlen);
571 if (rk_IS_SOCKET_ERROR(ret)) {
576 ret = krb5_auth_con_genaddrs (context, auth_context, sock,
578 if (ret) {
590 ret = (*proc->send_req) (context,
598 if (ret) {
606 ret = ERANGE;
607 krb5_set_error_message(context, ret,
619 ret = select (sock + 1, &fdset, NULL, NULL, &tv);
620 if (rk_IS_SOCKET_ERROR(ret) && rk_SOCK_ERRNO != EINTR) {
624 if (ret == 1) {
625 ret = (*proc->process_rep) (context,
633 if (ret == 0)
635 else if (i > 0 && ret == KRB5KRB_AP_ERR_MUT_FAIL)
638 ret = KRB5_KDC_UNREACH;
649 if (ret == KRB5_KDC_UNREACH) {
651 ret,
656 return ret;
739 krb5_error_code ret = 0;
747 ret = krb5_get_default_principal(context, &principal);
748 if (ret)
749 return ret;
755 ret = change_password_loop(context, creds, principal, newpw,
759 if (ret == 0 && *result_code == 0)
765 return ret;
782 krb5_error_code ret;
792 ret = krb5_cc_get_principal(context, ccache, &principal);
793 if (ret)
794 return ret;
798 ret = krb5_make_principal(context, &creds.server,
801 if (ret)
804 ret = krb5_cc_get_principal(context, ccache, &creds.client);
805 if (ret) {
810 ret = krb5_get_credentials(context, 0, ccache, &creds, &credsp);
813 if (ret)
816 ret = krb5_set_password(context,
826 return ret;
830 return ret;