Commit Graph

47 Commits

Author SHA1 Message Date
Nicolas Williams ff0bdc9bc8 Test improved fcc_remove_cred() 2013-09-12 12:14:40 -05:00
Viktor Dukhovni 203e2beedd The DIR ccache code and tests don't quite work yet. 2013-05-16 00:34:36 -04:00
Love Hornquist Astrand de61953108 handle creation of DIR caches 2013-04-29 22:54:11 -07: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 fb8c65a8c2 better logging 2011-07-23 11:44:42 -07:00
Love Hornquist Astrand 0879b9831a remove trailing whitespace 2011-05-21 11:57:31 -07:00
Love Hornquist Astrand 077357c848 catch error from as.*printf 2010-05-30 13:37:07 -07:00
Love Hornquist Astrand 687db64c56 Patch from Secure Endpoints/Asanka Herath for windows support 2009-12-21 08:45:28 +01:00
Love Hornquist Astrand 596bd00c9b wrap scc tests with have scc 2009-11-22 11:56:11 -08:00
Love Hörnquist Åstrand 942a821fab remove RCSID
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25171 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-05-04 06:17:40 +00:00
Love Hörnquist Åstrand c30773819b rename SDB to SCC
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25074 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-04-03 04:10:03 +00:00
Love Hörnquist Åstrand 92017a2fd1 rename scache to scc
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25068 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-04-03 04:09:00 +00:00
Love Hörnquist Åstrand 88e7107177 use krb5_cc_new_unique, use constants for cache types
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25065 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-04-03 04:08:30 +00:00
Love Hörnquist Åstrand d32a5564a6 use krb5_cc_new_unique, use constants for cache types
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25061 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-04-03 04:07:48 +00:00
Love Hörnquist Åstrand 38b93186dd use krb5_cc_new_unique, use constants for cache types
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25060 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-04-03 04:07:38 +00:00
Love Hörnquist Åstrand 5697c8e76c use krb5_cc_new_unique, use constants for cache types
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25059 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-04-03 04:07:28 +00:00
Love Hörnquist Åstrand e9acb99d0e test krb5_cc_[sg]et_config, plug leaks
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25023 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-04-03 04:00:28 +00:00
Love Hörnquist Åstrand 6d190e9b9d check id returned from krb5_cccol_cursor_next
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24036 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-11-12 04:20:04 +00:00
Love Hörnquist Åstrand d5e9266af3 make scache dependant on sqlite
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23994 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-10-26 18:27:35 +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 6ebb98dd4a skip unknown types
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23322 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-06-24 23:49:39 +00:00
Love Hörnquist Åstrand 2abf5f2292 test remove
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22834 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-04-07 11:47:58 +00:00
Love Hörnquist Åstrand dcc5363304 no test_init_vs_destroy for API: cache, more tests
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22823 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-04-07 11:47:12 +00:00
Love Hörnquist Åstrand 3a907b327a test acc and scc
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22820 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-04-07 11:46:58 +00:00
Love Hörnquist Åstrand e9764e31f4 more verbose info.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22784 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-03-25 13:33:38 +00:00
Love Hörnquist Åstrand e28ac4acd9 Test krb5_cc_move().
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22783 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-03-25 13:33:34 +00:00
Love Hörnquist Åstrand d340f5fab3 update (c)
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22115 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-12-03 21:21:42 +00:00
Love Hörnquist Åstrand 5fed824f37 its vs it\'s etc. From Bjorn Sandell
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22071 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-11-14 20:04:50 +00:00
Love Hörnquist Åstrand be1bf762ec plug memory leaks.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20842 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-03 14:21:32 +00:00
Love Hörnquist Åstrand b04201d5d4 Make test work again.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18810 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-22 07:13:11 +00:00
Love Hörnquist Åstrand 8ea293e426 Try to not leak memory.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18809 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-22 07:11:43 +00:00
Love Hörnquist Åstrand 09196ad8d5 Try to not leak memory.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18808 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-22 07:00:33 +00:00
Love Hörnquist Åstrand e59d785334 Try to not leak memory.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18807 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-22 06:58:53 +00:00
Love Hörnquist Åstrand ea75cbae34 Try to not leak memory.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18806 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-22 06:56:44 +00:00
Love Hörnquist Åstrand d7b6e1f223 test krb5_cc_get_prefix_ops
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16307 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-11-29 09:11:12 +00:00
Love Hörnquist Åstrand 42ec2bd7b5 Test copy FILE -> FILE, and MEMORY -> MEMORY too.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16189 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-10-19 17:36:09 +00:00
Love Hörnquist Åstrand 9d8ec6711a Test krb5_cc_copy_cache and krb5_cc_cache_match.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16188 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-10-19 17:31:39 +00:00
Love Hörnquist Åstrand 5eb65a941e Test the new cache iteration functions.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16107 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-09-30 10:08:01 +00:00
Love Hörnquist Åstrand f49bd1d202 change format for expantion variables in default_cc_name to
%{variable} to not confuse them with shell ditto


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15272 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-05-29 16:18:21 +00:00
Love Hörnquist Åstrand 285d9f5407 Remove duplicate line that was commented using c99 style comments.
Found by samba's build farm.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15203 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-05-20 10:42:54 +00:00
Love Hörnquist Åstrand f81af1030b test variables in default_cc_name
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14112 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-08-11 21:49:46 +00:00
Love Hörnquist Åstrand 6a9ae94fff more cc tests
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14059 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-07-20 18:30:40 +00:00
Love Hörnquist Åstrand bcfc839f89 don't use krb5_err on error code 0
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14033 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-07-09 02:07:33 +00:00
Love Hörnquist Åstrand fb3cfcca9f more cc tests, mostly related to mcc behavior
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13419 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-03-03 21:09:28 +00:00
Love Hörnquist Åstrand 9a2e5b06e1 test some krb5_cc_default_name/krb5_cc_set_default_name combinations
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11681 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-03-10 00:26:40 +00:00