Commit Graph

102 Commits

Author SHA1 Message Date
Johan Danielsson
e3f74b008e punctuation
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15304 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-05-30 11:23:09 +00:00
Johan Danielsson
a837b83e57 log signal causing exit
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15302 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-05-30 11:19:56 +00:00
Love Hörnquist Åstrand
af99f6c862 add kaserver support independ of having krb4 support
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14915 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-04-24 13:47:43 +00:00
Love Hörnquist Åstrand
2eb8ce2e5f Use the new Kerberos 4 functions in libkrb5 and so kerberos 4 is
always compiled in (still default disabled)


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14900 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-04-23 19:57:56 +00:00
Love Hörnquist Åstrand
ca0da3a363 (handle_http_tcp): handle error from write(2)
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14398 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-12-13 22:18:38 +00:00
Love Hörnquist Åstrand
7816000f45 Make sure argument passed to ctype isn't signed char
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14322 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-10-30 20:55:14 +00:00
Love Hörnquist Åstrand
7fe851e011 (handle_tcp): note who is what that closed the connection on us
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13933 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-06-15 13:13:22 +00:00
Love Hörnquist Åstrand
0f7b18e449 case size_t to unsigned long for LP64 platforms
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13678 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-04-02 21:09:46 +00:00
Love Hörnquist Åstrand
9fe5dfb67c on strange tcp error; log local port number and socket type
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13449 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-03-07 14:54:49 +00:00
Love Hörnquist Åstrand
dfbc07b034 instead of the cryptic "Request:" use "HTTP request:"
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13010 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-10-14 11:02:33 +00:00
Love Hörnquist Åstrand
1eb16a5ad2 (handle_tcp): handle recvfrom returning 0 (connection closed)
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12619 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-08-23 20:36:07 +00:00
Love Hörnquist Åstrand
2a54d3bcb1 (grow_descr): increment the size after we succeed to allocate the space
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12617 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-08-23 20:15:39 +00:00
Love Hörnquist Åstrand
c997f14ac2 (init_socket): sockaddr size argument to krb5_addr2sockaddr is a
krb5_addr2sockaddr *


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12569 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-08-17 17:08:17 +00:00
Love Hörnquist Åstrand
2c9f5a3058 s/intialize/initialize, from <jmc@prioris.mini.pw.edu.pl>
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11654 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-02-18 15:39:10 +00:00
Love Hörnquist Åstrand
ec1a8d0763 always compile in support for 524
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11573 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-01-14 05:45:11 +00:00
Johan Danielsson
bcfd1e0ca0 (init_socket): initialise sa_size to size of sockaddr_storage
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11550 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-12-02 14:31:01 +00:00
Johan Danielsson
6dc8410423 check that %-quotes are followed by two hex digits
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11509 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-10-21 15:12:59 +00:00
Johan Danielsson
62bff3a986 (addr_to_string): check return value of sockaddr2address
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11075 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-08-12 13:29:48 +00:00
Johan Danielsson
56967035b9 add some cache-control-foo to the http responses (from Gombas Gabor)
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11056 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-07-04 14:53:11 +00:00
Assar Westerlund
ec8233054e (do_request): print size_t's correctly
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10508 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-08-21 10:10:25 +00:00
Johan Danielsson
2b67390d1d always include kaserver support
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10215 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-07-02 16:32:19 +00:00
Assar Westerlund
3b36617ac6 adapt to changing address functions
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9942 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-05-14 06:18:11 +00:00
Assar Westerlund
594fe33695 fix a few kdc_log format types
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9684 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-02-15 04:29:18 +00:00
Assar Westerlund
5d25e7e3ef (add_new_tcp): check for the socket fd being too large to selct on
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9112 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-10-08 21:36:29 +00:00
Assar Westerlund
21c29c4974 (loop): check that the socket fd is not too large to select on
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9111 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-10-08 18:37:08 +00:00
Assar Westerlund
7e4da1415d use socklen_t where appropriate instead of int. From <thorpej@netbsd.org>
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8920 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-08-09 20:44:30 +00:00
Johan Danielsson
c854f71c37 (add_standard_ports): only listen to port 750 if serving v4 requests
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8454 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-06-24 14:47:19 +00:00
Assar Westerlund
ba37ccffe6 fix printf formats on LP64, from NetBSD
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8442 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-06-21 22:16:22 +00:00
Johan Danielsson
230f7b9b67 only listen to port 4444 if 524 is enabled
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8341 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-06-07 09:52:28 +00:00
Assar Westerlund
9f46991dfa (add_standard_ports): also listen on krb524 aka 4444
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8337 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-06-07 02:53:23 +00:00
Assar Westerlund
f29f3800a4 remember to repoint all descr->sa to _ss after realloc as this might
have moved the memory around.  problem discovered and diagnosed by
Brandon S. Allbery


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8082 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-03-29 20:45:33 +00:00
Assar Westerlund
2f3472173d (add_new_tcp): use the correct entries in the descriptor table
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7973 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-02-22 22:43:44 +00:00
Assar Westerlund
b31decd7a0 initialize `descr' uniformly and correctly
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7971 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-02-22 00:42:45 +00:00
Assar Westerlund
0d36682a62 (descr): add sockaddr and string representation
(*): re-write to use the above mentioned


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7958 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-02-19 18:41:24 +00:00
Assar Westerlund
2bfe5cd8a4 (init_sockets): pay attention to explicit_addresses
some more comments.
better error messages.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7906 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-02-11 17:45:45 +00:00
Johan Danielsson
c5b916ca6f remove advertising clause
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7464 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-12-02 17:05:13 +00:00
Assar Westerlund
e23b92aea1 (handle_tcp): things work much better when ret is initialized
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7114 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-10-06 12:54:23 +00:00
Assar Westerlund
a702301bc9 (handle_tcp): try to print warning `TCP data of strange type' less
often


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6897 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-09-05 17:16:01 +00:00
Assar Westerlund
d377c71ac6 (*): simplify by using `struct sockaddr_storage'
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6524 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-07-24 18:41:32 +00:00
Assar Westerlund
33f58480d5 (handle_tcp): make sure we have data before starting to look for HTTP
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6422 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-07-05 19:11:50 +00:00
Assar Westerlund
faca5a7f19 (handle_tcp): always do getpeername, we can't trust recvfrom to return
anything sensible


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6421 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-07-05 19:07:05 +00:00
Assar Westerlund
f8d35a221e (add_port_string): don't return a value
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6360 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-06-23 13:12:39 +00:00
Assar Westerlund
e4ab0aeee0 (add_standard_ports): add comma
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6341 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-06-23 05:33:41 +00:00
Assar Westerlund
a6b0e0e7ee add fallbacks for all lookups by service name
(handle_tcp): break-up and clean-up


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6306 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-06-15 01:33:33 +00:00
Johan Danielsson
d661025c46 (handle_tcp): remove %-escapes in request
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6253 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-05-18 12:06:55 +00:00
Assar Westerlund
0aca0483d2 (add_standard_ports, process_request): look at enable_kaserver. From
"Brandon S. Allbery KF8NH" <allbery@kf8nh.apk.net>


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5983 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-04-19 10:23:26 +00:00
Johan Danielsson
f92fa946cb don't use data after clearing decriptor
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5955 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-04-15 13:21:16 +00:00
Johan Danielsson
73fe7c4a0b log bogus requests
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5944 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-04-15 09:34:37 +00:00
Johan Danielsson
02dd0a0635 (init_sockets): pass context to krb5_get_all_server_addrs
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5841 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-04-01 18:25:54 +00:00
Johan Danielsson
806731da51 (addr_to_string): use krb5_print_address
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5798 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-03-29 19:01:08 +00:00