Commit Graph

87 Commits

Author SHA1 Message Date
Love Hornquist Astrand
0879b9831a remove trailing whitespace 2011-05-21 11:57:31 -07:00
Asanka Herath
d00f9984a5 Make roken build on windows
Signed-off-by: Love Hornquist Astrand <lha@h5l.org>
2009-11-24 21:42:02 -08:00
Love Hornquist Astrand
4674f2dc6c Better length checks [CID-67] 2009-07-30 12:50:01 +02:00
Love Hornquist Astrand
879051c308 Free sockets in cleanup function [CID-101] 2009-07-30 10:50:22 +02:00
Love Hörnquist Åstrand
604fc696c9 drop krbv4 support
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24522 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-01-26 01:15:30 +00:00
Love Hörnquist Åstrand
6937d41a02 remove trailing whitespace
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23815 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-09-13 09:21:03 +00:00
Love Hörnquist Åstrand
e172367898 switch to utf8 encoding of all files
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23814 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-09-13 08:53:55 +00:00
Love Hörnquist Åstrand
9d0c063d77 make encoding function independent of krb4 and krb5, enable removal of krb4
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20452 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-04-19 20:04:19 +00:00
Love Hörnquist Åstrand
5118c90498 Rename u_intXX_t to uintXX_t
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17450 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-05-05 11:11:43 +00:00
Love Hörnquist Åstrand
106c5e808e (doit): only cleaup for active sockets, passive does it own cleaning up
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15601 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-07-09 02:21:25 +00:00
Love Hörnquist Åstrand
5e969ca2b3 fix unconst and shadow warnings
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15600 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-07-09 02:19:10 +00:00
Love Hörnquist Åstrand
956bab4cf0 (recv_conn): init variables to using them uninitialized
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15357 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-06-07 14:36:12 +00:00
Johan Danielsson
e264c26f0c (doit): remove leftover sockets
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12770 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-04 13:42:05 +00:00
Love Hörnquist Åstrand
fa3611d0b1 (recv_conn): pass pointer to sockaddr, not pointer to pointer
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12297 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-05-15 15:10:57 +00:00
Love Hörnquist Åstrand
e3fc3df5ad (recv_conn): get sizeof of the sockaddr_storage, not the sockaddr pointer
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12294 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-05-15 14:37:13 +00:00
Love Hörnquist Åstrand
91f5196857 (recv_conn): if getnameinfo failes, send error to client (and syslog)
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12292 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-05-15 13:54:12 +00:00
Johan Danielsson
8f06415a58 don't directly use sockaddr_storage, since we can't always know what
it looks like


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12055 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-04-16 16:45:43 +00:00
Johan Danielsson
c0a3a2220c some ipv6 support (from Love)
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11477 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-10-15 16:48:46 +00:00
Assar Westerlund
67422a6b02 s/[gs]et_progname/[gs]etprogname/
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9704 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-02-20 01:44:56 +00:00
Assar Westerlund
c02ed215b8 (doit_passive): check that fds are not too large to select on
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9101 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-10-08 13:22:19 +00:00
Assar Westerlund
5f648d3799 use socklen_t where appropriate instead of int
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8923 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-08-09 20:53:11 +00:00
Assar Westerlund
3e01f1079f do not use variable as format string to syslog
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8479 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-06-28 18:44:07 +00:00
Assar Westerlund
615ff2f164 (main): call krb5_getportbyname with the default in host-byte-order
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7680 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-12-28 03:39:38 +00:00
Assar Westerlund
dc84dad095 (recv_conn): type correctness
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7551 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-12-06 16:47:14 +00:00
Assar Westerlund
8ba4450cf7 (recv_conn): use getnameinfo_verified
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7526 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-12-05 10:55:56 +00:00
Assar Westerlund
b15b894583 (recv_conn): replace inaddr2str with getnameinfo
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7517 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-12-05 00:20:14 +00:00
Johan Danielsson
3ca5f8150f remove advertising clause
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7463 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-12-02 16:58:55 +00:00
Assar Westerlund
b26cf0520c (recv_conn): better errors when getting unrecognized data
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7443 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-11-26 23:12:50 +00:00
Assar Westerlund
37af8f3e75 (childhandler): watch for child `wait_on_pid' to die.
(recv_conn): set `wait_on_pid' instead of looping on waitpid here
also.  This should solve the problem of kxd looping which was caused
by the signal handler getting invoked before this waitpid and reaping
the child leaving this poor loop without any child


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6894 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-09-02 19:09:25 +00:00
Assar Westerlund
d265a2b7b8 (recv_conn): give better error message
(doit_active): don't die if fork gives EAGAIN


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6838 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-08-19 15:41:25 +00:00
Johan Danielsson
7b10291769 (recv_conn): call setjob on crays;
(doit_passive): if fork fails with EAGAIN, don't shutdown, just close
the connection
re-implement `-t' flag


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6837 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-08-19 14:56:38 +00:00
Assar Westerlund
3ed8194828 (main): hopefully do inetd confusion right
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6336 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-06-20 14:32:03 +00:00
Assar Westerlund
b9c70fe785 (fatal): more type correctness
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6325 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-06-15 03:54:47 +00:00
Assar Westerlund
656f74b6a6 (recv_conn): fix syslog messages
(main): fix inetd_flag thinko


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6276 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-05-22 14:34:57 +00:00
Assar Westerlund
362d7cdf4b *** empty log message ***
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6217 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-05-12 17:59:14 +00:00
Assar Westerlund
3447488a94 (main): use getarg
(*): handle v4 and/or v5


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6183 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-05-10 00:16:50 +00:00
Assar Westerlund
8e0e250033 (doit_passive): handle error code from create_and_write_cookie
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6156 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-05-08 01:25:08 +00:00
Johan Danielsson
0c027ef26c openlog -> roken_openlog
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5490 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-03-10 18:33:38 +00:00
Assar Westerlund
7f8b81d6f1 remove unused variables, add braces.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5381 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-02-19 05:17:11 +00:00
Assar Westerlund
74f17aca86 create sockets before setuid to handle Solaris' strange permissions on
/tmp/.X11-{unix,pipe}


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5154 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-09-26 15:35:06 +00:00
Assar Westerlund
c32f42c69c (doit_passive): conditionalize stream pipe code
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5122 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-08-16 17:24:26 +00:00
Assar Westerlund
dc0dfabdfe implement support for Solaris's named-pipe X transport
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5121 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-08-16 16:35:13 +00:00
Johan Danielsson
a5f54865d4 merge strcpy_truncate branch
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5027 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-06-09 19:25:40 +00:00
Assar Westerlund
12a10d84b6 (doit): better error reporting
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4958 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-05-27 02:20:17 +00:00
Assar Westerlund
7c216dc504 (doit): fix flow-of-control bug in prev version
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4782 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-04-19 07:45:06 +00:00
Assar Westerlund
5b996a53ae use new get_xsockets
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4602 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-03-18 22:30:53 +00:00
Assar Westerlund
84e37f1aef more error testing from Love Hörnquist-Åstrand <e96_lho@elixir.e.kth.se>
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4180 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-12-10 02:56:11 +00:00
Johan Danielsson
496e2c0ec8 Move tmp-file creation to create_and_write_cookie.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3877 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-11-09 11:14:28 +00:00
Assar Westerlund
bcfa8627ac (doit_conn): Fix typo in call to accept.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1838 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-06-03 03:20:40 +00:00
Assar Westerlund
bbb98977fa fencepost error with KRB_SENDAUTH_VLEN
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1733 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-05-18 20:38:08 +00:00