40 Commits

Author SHA1 Message Date
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
23f5f03c7e drop v4 2010-11-26 09:03:36 -08:00
a83bb81997 drop rcsid 2009-09-07 21:23:42 -07:00
54e10a2a13 Provide better error messages for libkafs 2009-08-30 11:10:15 -07:00
58b16c9bf1 dns: switch to rk types, prefix types with rk_
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24891 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-03-22 17:18:35 +00:00
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
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
fbdd3b822d Try afs/cell@REALM before afs@REALM since that is what OpenAFS folks
have been saying is best pratices for some time now.

Patch from Derrick Brashear.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23373 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-07-17 20:42:42 +00:00
abd08f59fd rename index to idx
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15461 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-06-16 22:52:33 +00:00
26719d30d9 use struct kafs_data everywhere, don't mix with the typedef kafs_data
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15342 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-06-02 07:38:22 +00:00
0154e035af search paths for AFS configuration files for the OpenAFS MacOS X,
fix comment


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13282 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-01-22 15:12:12 +00:00
1b0cfc72b1 add _PATH_ARLA_OPENBSD & c/o
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13176 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-12-02 17:28:18 +00:00
82fa1ca07c typo, Bruno Rohee <bruno@rohee.com>
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13117 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-11-14 16:29:22 +00:00
144e19b123 drop the int argument (the error code) from the logging function
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12118 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-04-23 17:58:34 +00:00
1d8be89915 (kafs_set_verbose): add function that (re)sets the logging function
(_kafs_try_get_cred): add function that does (krb_data->get_cred) to
make logging easier (that is now done in this function)
(*): use _kafs_try_get_cred


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11997 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-04-14 08:37:28 +00:00
3865a2a5fc (kafs_settoken_rxkad): move all content kerberos version from
kafs_settoken to kafs_settoken_rxkad
(_kafs_fixup_viceid): move the fixup the timestamp to make client
happy code here.
(_kafs_v4_to_kt): move all the kerberos 4 dependant parts from
kafs_settoken here.
(*): adapt to kafs_token


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11838 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-03-18 04:17:32 +00:00
8a7bdbf312 remove the trial of afs@REALM for cell != realm, it tries to use the
wrong key for foreign cells


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11029 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-05-31 02:43:51 +00:00
4de5f97133 (find_cells): make file parameter const
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10928 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-04-18 10:51:18 +00:00
2a9246030c look for configuration files in /etc/arla (the location in debian's
arla package)


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10682 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-09-10 16:08:17 +00:00
7bd5ebe12a look in /etc/openafs for debian openafs
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10326 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-07-12 09:21:05 +00:00
060c8f4a91 (_kafs_realm_of_cell): changed to first try exact match in CellServDB,
then exact match in DNS, and finally in-exact match in CellServDB


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10128 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-06-19 16:38:53 +00:00
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
6a5c94ca88 Trim trailing whitespace from cellname.
Lines starting with # are regarded as comments.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7182 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-10-18 15:41:34 +00:00
8daeee5f57 Change code to make a clear distinction
between hinted realm and ticket realm.
Change code to acquire the ``best
 possible ticket. Use cross-cell authentication only as method of
 last resort.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7121 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-10-08 16:32:14 +00:00
bf75fac82a large strc{py,at}_truncate -> strlc{py,at} replacement
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6984 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-09-16 20:41:57 +00:00
39ad11070e (realm_of_cell): rename to _kafs_realm_of_cell and un-staticize
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6303 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-06-09 22:41:41 +00:00
52ce57f0b7 merge changes from 0.9.9 branch
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5159 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-09-26 20:59:53 +00:00
d5c71ea58e new support for specifying homedir
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5143 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-09-04 16:25:46 +00:00
460832b783 (find_cells): realloc more carefully
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5117 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-08-15 21:22:23 +00:00
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
0266df7856 (_kafs_afslog_all_local_cells): Try _PATH_ARLA_*
(_realm_of_cell): Try _PATH_ARLA_CELLSERVDB


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4709 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-04-04 13:08:31 +00:00
c616dd9157 Start using resolve again.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4568 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-03-10 18:36:27 +00:00
bd465edee2 Be carefull to preserve
(issue_date, life) -> (StartTime, EndTime) -> (issue_date, life)


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4477 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-02-27 17:22:21 +00:00
12e2ed373d Don't store expired tokens (this broke when using pag-less
rsh-sessions, and `non-standard' ticket files).


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4438 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-02-19 13:50:10 +00:00
5d990d289e (find_cells): check memory allocations
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4130 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-12-05 04:28:05 +00:00
c8aedecc75 Remove fix for broken realloc.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4043 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-11-19 19:20:24 +00:00
c4b062f219 (find_cells): work around broken realloc
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4042 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-11-18 16:14:30 +00:00
5240a1170d Could no longer figure out that
AFS cell pdc.kth.se uses service principal afs.pdc.kth.se@NADA.KTH.SE.
Now fixed.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3770 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-11-03 20:35:24 +00:00
bfc1cc40bc krb5_error_code -> int
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3614 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-10-14 23:00:39 +00:00
a1209edcbf Functions in common with krb/krb5
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3388 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-09-05 17:30:56 +00:00