• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-12-stable/crypto/heimdal/kdc/

Lines Matching refs:context

70 add_port(krb5_context context,
90 krb5_err (context, 1, errno, "realloc");
103 add_port_service(krb5_context context,
107 port = krb5_getportbyname (context, service, protocol, port);
108 add_port (context, family, port, protocol);
117 add_port_string (krb5_context context,
133 add_port (context, family, port, protocol);
141 add_standard_ports (krb5_context context,
145 add_port_service(context, family, "kerberos", 88, "udp");
146 add_port_service(context, family, "kerberos", 88, "tcp");
147 add_port_service(context, family, "kerberos-sec", 88, "udp");
148 add_port_service(context, family, "kerberos-sec", 88, "tcp");
150 add_port_service(context, family, "http", 80, "tcp");
152 add_port_service(context, family, "kca_service", 9878, "udp");
153 add_port_service(context, family, "kca_service", 9878, "tcp");
165 parse_ports(krb5_context context,
177 add_standard_ports(context, config, AF_INET6);
179 add_standard_ports(context, config, AF_INET);
185 add_port_string(context, AF_INET6, p, q);
187 add_port_string(context, AF_INET, p, q);
190 add_port_string(context, AF_INET6, p, "udp");
191 add_port_string(context, AF_INET6, p, "tcp");
193 add_port_string(context, AF_INET, p, "udp");
194 add_port_string(context, AF_INET, p, "tcp");
247 init_socket(krb5_context context,
258 ret = krb5_addr2sockaddr (context, a, sa, &sa_size, port);
260 krb5_warn(context, ret, "krb5_addr2sockaddr");
271 krb5_warn(context, errno, "socket(%d, %d, 0)", family, type);
289 krb5_warn(context, errno, "bind %s/%d", a_str, ntohs(port));
299 krb5_warn(context, errno, "listen %s/%d", a_str, ntohs(port));
312 init_sockets(krb5_context context,
325 ret = krb5_get_all_server_addrs (context, &addresses);
327 krb5_err (context, 1, ret, "krb5_get_all_server_addrs");
329 parse_ports(context, config, port_str);
332 krb5_errx(context, 1, "malloc(%lu) failed",
337 init_socket(context, config, &d[num], &addresses.val[j],
346 kdc_log(context, config, 5, "listening on %s port %u/%s",
355 krb5_free_addresses (context, &addresses);
358 krb5_errx(context, 1, "realloc(%lu) failed",
380 addr_to_string(krb5_context context,
384 if(krb5_sockaddr2address(context, addr, &a) == 0) {
386 krb5_free_address(context, &a);
389 krb5_free_address(context, &a);
399 send_reply(krb5_context context,
405 kdc_log(context, config, 5,
415 kdc_log (context, config,
422 kdc_log (context, config, 0, "sendto(%s): %s", d->addr_string,
433 do_request(krb5_context context,
445 ret = krb5_kdc_process_request(context, config,
450 krb5_kdc_save_request(context, request_log, buf, len, &reply, d->sa);
452 send_reply(context, config, prependlength, d, &reply);
456 kdc_log(context, config, 0,
466 handle_udp(krb5_context context,
475 kdc_log(context, config, 0, "Failed to allocate %lu bytes", (unsigned long)max_request_udp);
482 krb5_warn(context, rk_SOCK_ERRNO, "recvfrom");
484 addr_to_string (context, d->sa, d->sock_len,
488 krb5_warn(context, errno,
491 krb5_mk_error(context,
500 send_reply(context, config, FALSE, d, &data);
503 do_request(context, config, buf, n, FALSE, d);
547 add_new_tcp (krb5_context context,
559 krb5_warn(context, rk_SOCK_ERRNO, "accept");
565 krb5_warnx(context, "socket FD too large");
574 addr_to_string (context,
585 grow_descr (krb5_context context,
595 kdc_log(context, config, 0, "Request exceeds max request size (%lu bytes).",
602 kdc_log(context, config, 0, "Failed to re-allocate %lu bytes.",
619 handle_vanilla_tcp (krb5_context context,
628 kdc_log (context, config, 0, "krb5_storage_from_mem failed");
647 handle_http_tcp (krb5_context context,
666 kdc_log(context, config, 0,
673 kdc_log(context, config, 0,
680 kdc_log(context, config, 0, "Failed to allocate %lu bytes",
687 kdc_log(context, config, 0, "Malformed HTTP request from %s", d->addr_string);
688 kdc_log(context, config, 5, "HTTP request: %s", t);
694 kdc_log(context, config, 0, "Malformed HTTP request from %s", d->addr_string);
711 kdc_log(context, config, 0, "HTTP request from %s is non KDC request", d->addr_string);
712 kdc_log(context, config, 5, "HTTP request: %s", t);
715 kdc_log(context, config, 0, "HTTP write failed: %s: %s",
720 kdc_log(context, config, 0, "HTTP write failed: %s: %s",
736 kdc_log(context, config, 0, "HTTP write failed: %s: %s",
742 kdc_log(context, config, 0, "HTTP write failed: %s: %s",
760 handle_tcp(krb5_context context,
769 add_new_tcp (context, config, d, idx, min_free);
775 krb5_warn(context, rk_SOCK_ERRNO, "recvfrom failed from %s to %s/%d",
780 krb5_warnx(context, "connection closed before end of data after %lu "
787 if (grow_descr (context, config, &d[idx], n))
792 ret = handle_vanilla_tcp (context, config, &d[idx]);
802 ret = handle_http_tcp (context, config, &d[idx]);
806 kdc_log (context, config,
813 kdc_log (context, config, 0, "TCP extension not supported");
815 ret = krb5_mk_error(context,
825 send_reply(context, config, TRUE, d + idx, &reply);
835 do_request(context, config,
842 loop(krb5_context context,
848 ndescr = init_sockets(context, config, &d);
850 krb5_errx(context, 1, "No sockets!");
851 kdc_log(context, config, 0, "KDC started");
864 kdc_log(context, config, 1,
875 krb5_errx(context, 1, "fd too large");
886 krb5_warnx(context, "No memory");
905 krb5_warn(context, rk_SOCK_ERRNO, "select");
911 handle_udp(context, config, &d[i]);
913 handle_tcp(context, config, d, i, min_free);
920 kdc_log(context, config, 0, "CPU time limit exceeded");
923 kdc_log(context, config, 0, "Terminated");
925 kdc_log(context, config, 0, "Unexpected exit reason: %d", exit_flag);