20 Commits

Author SHA1 Message Date
Nicolas Williams
620862049e Use roken_get_*() instead of getpwuuid()
Using non-reentrant getpwuid() (or getpwnam(), or getspnam())  can be
dangerous.  We had a report of a login application / PAM that calls
those, and Heimdal, by calling them too, clobbered the cached struct
passwd used by the login app / PAM.
2018-12-25 22:11:19 -06:00
Roland C. Dowdeswell
e8779d5d4a Add -Wshadow and deal with the warnings. 2012-02-21 11:17:55 +00: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 Hornquist Astrand
98f2421134 Use krb5_cc_get_type() to get the type, dont assume typename_arg is set
Patch from Johan Gadsjö via Joakim Fallsjö
2009-09-24 07:19:33 -07:00
Love Hornquist Astrand
e977f1cf2f You don't exists [CID-60] 2009-07-30 13:03:27 +02:00
Love Hörnquist Åstrand
3b04ca2afd simplify
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25031 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-04-03 04:02:04 +00:00
Love Hörnquist Åstrand
1d1a2af1a6 no krb4
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24535 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-01-28 00:43:14 +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
e36a5a60a5 Use unsigned where appropriate.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22885 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-04-07 18:51:30 +00:00
Love Hörnquist Åstrand
aeedc46505 add --cache-type that allows the user to control the resulting
credential cache type, inherit the type from the invoking process


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14574 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-02-12 14:23:28 +00:00
Love Hörnquist Åstrand
3409351eec use setprogname
if we stripped off -c, try use the fallback code


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14083 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-07-27 10:52:38 +00:00
Johan Danielsson
3a36f7c6db mkstemp formats must end in exactly six X's
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13014 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-10-14 12:32:39 +00:00
Love Hörnquist Åstrand
11f5550fe8 unconditionally set KRBTKFILE
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12434 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-07-15 12:38:46 +00:00
Assar Westerlund
1759177e35 actually use getarg
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11224 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-08-23 17:54:20 +00:00
Assar Westerlund
0735a45f38 make it handle --version/--help
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11222 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-08-23 17:45:40 +00:00
Assar Westerlund
3e00ddf50d use esetenv
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9089 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-10-02 05:06:04 +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
75b24a61d2 (main): use mkstemp to generate temporary file names. From Miroslav
Ruda <ruda@ics.muni.cz>


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6704 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-08-04 16:55:38 +00:00
Assar Westerlund
9299f3fcf1 heimdal-ized pagsh. Thanks to Miroslav Ruda <ruda@ics.muni.cz>
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6378 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-06-26 21:12:03 +00:00