Commit Graph

133 Commits

Author SHA1 Message Date
Love Hornquist Astrand
0879b9831a remove trailing whitespace 2011-05-21 11:57:31 -07:00
Love Hornquist Astrand
657297a738 clean the last bits of KRB4 support in KDC 2011-05-07 11:44:15 -07:00
Love Hornquist Astrand
f5f9014c90 Warning fixes from Christos Zoulas
- shadowed variables
- signed/unsigned confusion
- const lossage
- incomplete structure initializations
- unused code
2011-04-29 20:25:05 -07:00
Love Hornquist Astrand
4f11e546b5 comment + indent 2010-06-29 11:38:12 -07:00
Love Hornquist Astrand
a36f3c7d2a if its a multiline query, truncate after the first line 2010-06-29 11:37:44 -07:00
Love Hornquist Astrand
faa1528394 make http transport work again 2010-06-02 08:32:03 -07:00
Love Hornquist Astrand
dde9ae659b drop RCSID 2010-03-16 12:50:09 -07:00
Asanka Herath
0ad290b500 Fix missing #endif 2009-12-01 16:42:28 -05:00
Love Hornquist Astrand
86f4c66efd Merge branch 'master' into wip/win32-port2 2009-11-25 05:41:14 -08:00
Asanka Herath
b191b1e12f Make kdc build on windows
Signed-off-by: Love Hornquist Astrand <lha@h5l.org>
2009-11-24 22:19:37 -08:00
Love Hornquist Astrand
f1c0c1bba3 prefix SOCKET symbols with rk_ 2009-11-25 05:29:18 +01:00
Asanka Herath
d47c01083b Use SOCKET data type instead of ints for sockets in kdc 2009-11-24 10:18:19 -08:00
Love Hornquist Astrand
6fada85f78 if the UDP packet is truncated, return too packet large 2009-09-16 16:06:11 -07:00
Love Hörnquist Åstrand
ef65ca7a16 free data on write error back on the tcp socket cid#123, make sure we dont write more data back then we got
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24105 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-11 05:00:29 +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
10df17bf54 Use unsigned where appropriate.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22877 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-04-07 18:50:56 +00:00
Love Hörnquist Åstrand
9a0cc41169 Update link.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22434 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-01-14 09:21:37 +00:00
Love Hörnquist Åstrand
23ed41b109 Move up krb5_kdc_save_request so we can catch the reply data too.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20958 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-07 04:35:05 +00:00
Love Hörnquist Åstrand
44e3c4e620 Option to save the request to disk.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20950 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-07 03:07:42 +00:00
Love Hörnquist Åstrand
01d0aa7e38 Update kdc time.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20948 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-07 02:20:45 +00:00
Love Hörnquist Åstrand
3ce7195579 Listen to 9878 if kca is turned on.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19552 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-28 21:09:00 +00:00
Love Hörnquist Åstrand
247cda7f2f (loop): Log that the kdc have started.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18392 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-10 10:13:36 +00:00
Love Hörnquist Åstrand
3128010cc2 (do_request): tell krb5_kdc_process_request if its a datagram reply or not
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18386 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-09 15:41:01 +00:00
Love Hörnquist Åstrand
aa75a633ee (handle_vanilla_tcp): shorten length when we shorten the buffer, this
matter im the PK-INIT encKey case where a checksum is done over the
whole packet. Reported by Olga Kornievskaia


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18345 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-08 09:01:36 +00:00
Love Hörnquist Åstrand
5f62c460c3 (handle_vanilla_tcp): use unsigned integer for for length(
(handle_tcp): if the high bit it set in the unknown case, send back a
KRB_ERR_FIELD_TOOLONG


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17798 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-07-05 12:00:16 +00:00
Love Hörnquist Åstrand
049a354efd (do_request): clean reply with krb5_data_zero
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17604 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-06-01 17:52:09 +00:00
Love Hörnquist Åstrand
f78e6abe5c (de_http): sscanf takes a char *, not unsigned ditto, cast approriately
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15683 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-07-20 08:40:27 +00:00
Love Hörnquist Åstrand
7a3fc5e663 Don't pollute namespace, generate public headerfile
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15532 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-06-30 01:54:49 +00:00
Love Hörnquist Åstrand
7132a9b084 Merge in the libkdc/kdc configuration split from Andrew Bartlet <abartlet@samba.org>
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15529 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-06-30 01:03:35 +00:00
Johan Danielsson
80973980d5 rename sendlength to prependlength (which hopefully better represents
its purpose), and change type to krb5_boolean


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15317 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-05-30 20:56:18 +00:00
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