• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/crypto/heimdal/lib/krb5/

Lines Matching refs:ret

58      int ret;
73 ret = select (fd + 1, &fdset, NULL, NULL, &timeout);
74 if (ret < 0) {
78 } else if (ret == 0) {
99 ret = recv (fd, (char*)tmp + rep->length, nbytes, 0);
100 if (ret < 0) {
104 rep->length += ret;
188 int ret;
193 ret = asprintf(&request, "GET %s%s HTTP/1.0\r\n\r\n", prefix, str);
195 if (ret < 0 || request == NULL)
197 ret = net_write (fd, request, strlen(request));
199 if (ret < 0)
200 return ret;
201 ret = recv_loop(fd, tmout, 0, 0, rep);
202 if(ret)
203 return ret;
268 int ret;
285 ret = getaddrinfo (proxy, portstr, &hints, &ai);
287 if (ret)
288 return krb5_eai_to_heim_errno(ret, errno);
307 ret = asprintf(&prefix, "http://%s/", hi->hostname);
308 if(ret < 0 || prefix == NULL) {
312 ret = send_and_recv_http(s, context->kdc_timeout,
316 if(ret == 0 && receive->length != 0)
329 krb5_error_code ret;
331 ret = _krb5_plugin_find(context, PLUGIN_TYPE_DATA, KRB5_PLUGIN_SEND_TO_KDC, &list);
332 if(ret != 0 || list == NULL)
344 ret = (*service->send_to_kdc)(context, ctx, hi,
347 if (ret == 0)
349 if (ret != KRB5_PLUGIN_NO_HANDLE) {
350 krb5_set_error_message(context, ret,
352 "lookup with error: %d", ""), ret);
372 krb5_error_code ret;
391 ret = (*s->func)(context, s->data, hi,
393 if (ret == 0 && receive->length != 0)
398 ret = send_via_plugin(context, hi, context->kdc_timeout,
400 if (ret == 0 && receive->length != 0)
402 else if (ret != KRB5_PLUGIN_NO_HANDLE)
407 ret = 0;
413 ret = krb5_krbhst_get_addrinfo(context, hi, &ai);
414 if (ret)
428 ret = send_and_recv_http(fd, context->kdc_timeout,
432 ret = send_and_recv_tcp (fd, context->kdc_timeout,
436 ret = send_and_recv_udp (fd, context->kdc_timeout,
441 if(ret == 0 && receive->length != 0)
448 ret = KRB5_KDC_UNREACH;
452 _krb5_krbhst_get_realm(handle), ret);
453 return ret;
472 krb5_error_code ret;
475 ret = krb5_sendto_ctx_alloc(context, &ctx);
476 if (ret)
477 return ret;
481 ret = krb5_sendto_context(context, ctx, send_data, *realm, receive);
483 return ret;
583 krb5_error_code ret;
592 ret = krb5_sendto_ctx_alloc(context, &ctx);
593 if (ret)
594 return ret;
616 ret = krb5_krbhst_init_flags(context, realm, type,
618 if (ret) {
621 return ret;
625 ret = krb5_sendto(context, send_data, handle, receive);
626 if (ret)
629 ret = (*ctx->func)(context, ctx, ctx->data, receive, &action);
630 if (ret)
640 if (ret == KRB5_KDC_UNREACH)
641 krb5_set_error_message(context, ret,
644 if (ret)
648 return ret;
655 krb5_error_code ret;
661 ret = krb5_error_from_rd_error(context, &error, NULL);
664 switch(ret) {