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 Hornquist Astrand
9f244d27cc
use krb5_warn
2010-11-25 10:51:30 -08:00
Love Hörnquist Åstrand
3a2db6c8ea
kill krb4 support
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24494 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-01-26 01:09:01 +00:00
Love Hörnquist Åstrand
fe1a976ae2
new krb5_cc_cache_match
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23905 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-10-13 03:03:21 +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
44a367881b
Add options to allow select principal or credential cache when doing afslog.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16438 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-03 09:27:54 +00:00
Love Hörnquist Åstrand
0a57899d04
use negative string help string for arg_negative_flag
...
Pointed out by Harald Barth
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14185 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-09-03 12:11:40 +00:00
Love Hörnquist Åstrand
801e3f9334
(do_afslog): is cell is unset, set it "<default cell>" for error printing
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12436 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-07-15 12:56:00 +00:00
Love Hörnquist Åstrand
04729db559
(log_func): drop the error number
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12119 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-04-23 17:59:19 +00:00
Love Hörnquist Åstrand
ec83471d4b
set kafs log function if verbose is turned on
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12002 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-04-14 09:02:30 +00:00
Love Hörnquist Åstrand
2d1b43f459
make build without KRB4
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11844 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-03-18 04:24:20 +00:00
Johan Danielsson
9960ddd14e
remove plural form in help string
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11548 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-11-26 17:42:31 +00:00
Johan Danielsson
e181dcb248
try more files when trying to expand a cell name
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11544 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-11-26 17:11:58 +00:00
Johan Danielsson
d14590bb8b
create a list of cells to get tokens for, before actually doing
...
anything, and try to get tokens via krb4 if krb5 fails, and give it a
chance to work with krb4-only; also some bug fixes, partially from
Tomas Olsson.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11542 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-11-26 16:54:36 +00:00
Assar Westerlund
5d2d4a6239
(main): call free_getarg_strings
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9961 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-05-16 22:10:15 +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
7ff3f957b7
add err.h
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9497 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-01-25 12:45:15 +00:00
Assar Westerlund
633782864b
(main): handle krb5_init_context failure consistently
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9443 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-12-31 08:05:03 +00:00
Assar Westerlund
67ec1b5a5f
clarify usage strings
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9414 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-12-25 18:24:38 +00:00
Assar Westerlund
5f7dbf549a
(expand_cell_name): repair more
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6416 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-07-04 23:50:39 +00:00
Assar Westerlund
bfdbfc43ec
(epxand_cell_name): clean-up
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6413 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-07-04 16:20:35 +00:00
Assar Westerlund
d4f34bffc3
(expand_cell_name): terminate on #. From Miroslav Ruda
...
<ruda@ics.muni.cz >
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6412 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-07-04 16:18:55 +00:00
Johan Danielsson
ce40cf9200
cleanup option parsing
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5769 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-03-27 11:49:38 +00:00
Johan Danielsson
64d4aa49d8
use print_version
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5478 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-03-08 10:51:48 +00:00
Assar Westerlund
fc1956b05f
new arg_printusage
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5130 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-08-18 21:17:01 +00:00
Assar Westerlund
f82f10d546
(main): return a exit code.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4203 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-12-15 00:29:17 +00:00
Johan Danielsson
8ea5f1fa07
<config.h>
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4087 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-12-04 03:19:46 +00:00
Johan Danielsson
f6824da1b7
Update for new kafs-names.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3395 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-09-05 18:10:04 +00:00
Johan Danielsson
e93a0b4bc6
If no cells or files specified, get tokens for all local cells. Better
...
test for files.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3086 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-08-23 16:14:51 +00:00
Johan Danielsson
5b8fc039f4
Kerberos 5 afslog.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3024 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-08-15 22:32:59 +00:00