Commit Graph

82 Commits

Author SHA1 Message Date
Roland C. Dowdeswell 8dc7c43a8b ipropd_slave.c: init data to zero or we free a random ptr. 2012-05-28 12:43:29 +01:00
Roland C. Dowdeswell cc47c8fa7b Turn on -Wextra -Wno-sign-compare -Wno-unused-paramter and fix issues.
We turn on a few extra warnings and fix the fallout that occurs
when building with --enable-developer.  Note that we get different
warnings on different machines and so this will be a work in
progress.  So far, we have built on NetBSD/amd64 5.99.64 (which
uses gcc 4.5.3) and Ubuntu 10.04.3 LTS (which uses gcc 4.4.3).

Notably, we fixed

	1.  a lot of missing structure initialisers,

	2.  unchecked return values for functions that glibc
	    marks as __attribute__((warn-unused-result)),

	3.  made minor modifications to slc and asn1_compile
	    which can generate code which generates warnings,
	    and

	4.  a few stragglers here and there.

We turned off the extended warnings for many programs in appl/ as
they are nearing the end of their useful lifetime, e.g.  rsh, rcp,
popper, ftp and telnet.

Interestingly, glibc's strncmp() macro needed to be worked around
whereas the function calls did not.

We have not yet tried this on 32 bit platforms, so there will be
a few more warnings when we do.
2012-02-20 19:45:41 +00:00
Love Hörnquist Åstrand a802c4799d Log client status changes 2012-02-15 21:05:05 -08:00
Love Hörnquist Åstrand bf37778dbd make ipropd_slave tell its status in a status file
The ipropd_slave will log its status to /var/heimdal/ipropd-slave-status
if its connecting, up to date, or disconnected.

The master will now also confirm to slaves that are are in fact up to date
if they just restart, before there was no confirmation, the slave just didn't
get any deltas.
2012-02-15 20:59:54 -08:00
Nicolas Williams 40a7d4b62f More fixes for -Werror (GCC 4.6 catches more stuff) 2011-11-02 23:20:55 -05:00
Love Hornquist Astrand 0879b9831a remove trailing whitespace 2011-05-21 11:57:31 -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 3b2e927c79 catch error from asprintf() 2011-04-23 18:57:57 -07:00
Asanka C. Herath 880d728e02 Un-const as necessary to silence compiler warnings 2010-11-24 15:33:07 -05:00
Asanka Herath c6b8fad5dc Consistency updates for lib/kadm5 and don't check fd_set size if it's not necessary 2009-11-24 10:18:20 -08:00
Asanka Herath d84119813e No AF_UNIX on Windows and no SIGPIPE and SIGXCPU 2009-11-24 10:12:44 -08:00
Love Hörnquist Åstrand 11b955ea01 plug memory leak
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25093 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-04-04 17:10:52 +00:00
Love Hörnquist Åstrand 62ae550ab2 don't leak memory
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25087 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-04-04 17:09:39 +00:00
Love Hörnquist Åstrand 32218cc132 use krb5_cc_new_unique, use constants for cache types
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25057 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-04-03 04:07:07 +00:00
Love Hörnquist Åstrand eb0549ea43 make vno set to a valid, so that in case master disconnects before it sent us any entries, don't print stack value.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24863 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-02-27 03:31:50 +00:00
Love Hörnquist Åstrand 3935b4ed34 wrap detach
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24410 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-01-25 00:39:36 +00:00
Love Hörnquist Åstrand efccbcdeff init optidx
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24059 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-11 04:50:48 +00:00
Love Hörnquist Åstrand 49e70a4c41 Make slave more resiliant to master that go down, make them retry now and then.
The client tries connect every "[libdefault] reconnect-min" seconds,
and for every time it failes, it backs down "[libdefault]
reconnect-backoff" seconds until it reaches "[libdefault]
reconnect-max". On successful connect, the start value is reset to [libdefault] reconnect-min.

There are default values that make sense.

This patch was created by Buck Huppmann 2003, and been nursed along by
Alf Wachsmann until I merged it now.

While here, add IPv6 support.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23936 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-10-18 23:55:57 +00:00
Love Hörnquist Åstrand 8cf907f08a switch to krb5_clear_error_message
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23912 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-10-14 02:55:55 +00:00
Love Hörnquist Åstrand 29a746efd7 fix usage
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23860 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-09-22 06:32:23 +00:00
Love Hörnquist Åstrand 210cad9123 update(c)
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23856 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-09-22 06:32:07 +00:00
Love Hörnquist Åstrand 384d464e85 add master att the end as argument, from harald barth
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23854 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-09-22 06:31:58 +00:00
Love Hörnquist Åstrand 2e1dceceec s/slave/master/ for some strings, from harald barth.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23853 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-09-22 06:31:53 +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 e65761aac2 and right num of arguments
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23359 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-07-15 11:24:36 +00:00
Love Hörnquist Åstrand 7e91838407 use the right type for error message
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23358 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-07-15 11:24:24 +00:00
Love Hörnquist Åstrand 125f5659a7 Clear context error that is not useful.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23245 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-06-01 22:28:44 +00:00
Love Hörnquist Åstrand 811319445f warnings on platforms where sig_atomic_t is not a int, from netbsd via Michael van Elst, Havard Eidnes and T K Spindler
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22773 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-03-24 19:13:46 +00:00
Love Hörnquist Åstrand 284d45bbbc use hdb_db_dir() and hdb_default_db()
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22211 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-12-07 19:27:27 +00:00
Love Hörnquist Åstrand 3a51ba465b Provide better error why kadm5_log_replay failed.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21832 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-08-07 17:35:49 +00:00
Love Hörnquist Åstrand 000d2c1e6a Print what version the client starts at.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21817 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-08-03 14:17:52 +00:00
Love Hörnquist Åstrand 2991c6378d make more sane.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21814 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-08-03 14:16:24 +00:00
Love Hörnquist Åstrand 5bdb1c0e7f always update log version, because that is whats happning in reality.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21812 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-08-03 14:09:54 +00:00
Love Hörnquist Åstrand 2d7c7670b0 more paranoid check that the log entires are self consistant
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21809 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-08-03 13:59:14 +00:00
Love Hörnquist Åstrand a569fb65a4 Spelling.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21788 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-08-02 11:54:33 +00:00
Love Hörnquist Åstrand 0382061b7b add configuration for signal file and acl file, let user select hostname, catch signals and print why we are quiting, make nop cause one new version, not two
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21756 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-07-31 22:15:08 +00:00
Love Hörnquist Åstrand f23e5f1e58 More comments and some more error checking.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21715 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-07-27 16:13:09 +00:00
Love Hörnquist Åstrand e37759c4b1 Catch return value from krb5_program_setup. From Steven Luo.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21209 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-20 07:01:27 +00:00
Love Hörnquist Åstrand ece5f9603e Make krb5_get_init_creds_opt_free take a context argument.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19078 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-20 18:12:41 +00:00
Love Hörnquist Åstrand cb704efeeb Rename u_intXX_t to uintXX_t
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17445 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-05-05 10:37:46 +00:00
Love Hörnquist Åstrand 0c2369acd0 Wrap hdb_entry with hdb_entry_ex, patch originally from Andrew Bartlet
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16378 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-12-12 12:40:12 +00:00
Love Hörnquist Åstrand 1a8b054bbc avoid shadowing
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15486 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-06-17 05:27:46 +00:00
Love Hörnquist Åstrand af6eb0f463 Don't test HAVE_DAEMON since roken supplies it.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15213 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-05-23 17:39:35 +00:00
Love Hörnquist Åstrand 32b515fccb add the documented option --port
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14964 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-04-25 19:23:15 +00:00
Johan Danielsson 209ac33571 (ihave): use krb5_write_priv_message
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14265 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-09-24 11:27:58 +00:00
Johan Danielsson 1f57648d35 add --detach
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14130 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-08-18 16:59:03 +00:00
Love Hörnquist Åstrand 8ae4ac8c04 stop using krb5 lib private byte-frobbing functions and replace them
with with krb5_storage


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13130 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-11-23 06:23:28 +00:00
Love Hörnquist Åstrand f00c4ac492 (receive_loop): when seeking over the entries we already have, skip
over the trailer.
From: Jeffrey Hutzelman <jhutz@cmu.edu>


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13126 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-11-19 03:21:31 +00:00
Love Hörnquist Åstrand ef7b3a72f6 (main): parse kdc.conf
From: Jeffrey Hutzelman <jhutz@cmu.edu>


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13124 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-11-18 23:19:26 +00:00