Love Hornquist Astrand
0879b9831a
remove trailing whitespace
2011-05-21 11:57:31 -07:00
Asanka Herath
d00f9984a5
Make roken build on windows
...
Signed-off-by: Love Hornquist Astrand <lha@h5l.org >
2009-11-24 21:42:02 -08:00
Love Hornquist Astrand
269fcc53e7
Free auth_context [CID-102]
2009-07-30 10:48:06 +02:00
Love Hörnquist Åstrand
8338244c6d
use strerror(errno) + "%s" instead of "%m", since %m is not really a printf formater
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25254 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-05-28 01:21:19 +00:00
Love Hörnquist Åstrand
877cb93a71
use constants for cache types
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25038 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-04-03 04:03:28 +00:00
Love Hörnquist Åstrand
f7cb5e1aee
drop krbv4 support
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24505 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-01-26 01:11:26 +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
e80e8fcc08
Fix pointer vs strict alias rules.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21515 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-07-12 12:47:07 +00:00
Love Hörnquist Åstrand
f5ff65e8b2
fix ifdef
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19653 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-03 23:29:48 +00:00
Love Hörnquist Åstrand
aa4ff31c8c
Declare iruserok if needed, based on bug report from David Love.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19652 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-03 23:29:23 +00:00
Love Hörnquist Åstrand
5118c90498
Rename u_intXX_t to uintXX_t
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17450 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-05-05 11:11:43 +00:00
Love Hörnquist Åstrand
94731a9251
Read limits from limits.conf, patch from Daniel Ahlin on non-root login.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17301 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-27 09:16:11 +00:00
Johan Danielsson
23f24243e1
(krb5_start_session): syslog failures to store cred cache
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16675 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-31 16:04:02 +00:00
Love Hörnquist Åstrand
2b7b3940d4
(doit): move creation of users ticket file to later to avoid
...
seteuid/setuid dance. this breaks DCE, so remove support for it
completely.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16414 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-12-21 16:04:34 +00:00
Love Hörnquist Åstrand
4863ea9553
Check return value from asprintf instead of string != NULL since it
...
undefined behavior on Linux. From Björn Sandell
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16220 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-10-22 15:07:48 +00:00
Love Hörnquist Åstrand
0133868c80
init some important variables and check that they are set checking
...
authentication, all to please gcc
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15358 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-06-08 17:55:06 +00:00
Love Hörnquist Åstrand
13525ea454
case uid_t to unsigned long in printf format
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15246 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-05-27 13:47:20 +00:00
Love Hörnquist Åstrand
567783423e
Use larger buffer for recving data to be compatible with older
...
versions of heimdal (0.4 branch specificly)
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14986 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-04-27 14:52:26 +00:00
Love Hörnquist Åstrand
afa0363687
use snprintf to format tkfile
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14949 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-04-25 10:16:47 +00:00
Johan Danielsson
34510fca0d
rename loop to rshd_loop
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14240 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-09-21 11:35:07 +00:00
Johan Danielsson
e5b80c785f
pass errsock status to init_ivecs
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14239 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-09-21 11:34:43 +00:00
Johan Danielsson
65d153a293
if we don't have an errsock, dup stdout to stderr (this would normally
...
be done by inetd, but not by mini_inetd).
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14234 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-09-21 11:19:34 +00:00
Johan Danielsson
44cb295753
move keepalive setting to after setting up sockets
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14233 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-09-21 11:17:41 +00:00
Johan Danielsson
b48ce2806b
-P also with KRB5
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12588 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-08-19 11:38:55 +00:00
Johan Danielsson
15e51be8f2
use ARG_MAX + 1
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12071 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-04-16 19:50:49 +00:00
Johan Danielsson
6bf3bbb91b
(read_str): return allocated string
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12069 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-04-16 19:49:29 +00:00
Johan Danielsson
df02f41798
(save_krb5_creds): if rd_cred fails, syslog a reason
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11909 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-03-25 12:24:40 +00:00
Love Hörnquist Åstrand
7f03375e74
do krb5_afslog when compling with afs support
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11868 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-03-18 14:18:56 +00:00
Johan Danielsson
76f0ff261e
handle protocol version 2
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11349 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-09-03 20:03:46 +00:00
Johan Danielsson
9ea473de34
don't show options that doesn't apply
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10847 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-02-18 20:02:14 +00:00
Johan Danielsson
bee8db420e
make this build without krb5; also use the addrinfo interface to
...
mini_inetd, and set the keepalive option if requested
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10844 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-02-18 19:19:36 +00:00
Johan Danielsson
b396a05fa5
make the syslog messages somewhat more informative
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10797 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-11-30 14:38:48 +00:00
Johan Danielsson
e2343de659
add some compat flags
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10416 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-07-31 09:05:45 +00:00
Assar Westerlund
58315e3f0d
(fatal): use vsnprintf correctly
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10359 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-07-19 16:49:35 +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
0397d42c21
(login_access): add prototype
...
(syslog_and_die, fatal): add printf attributes
(*): AIX -> _AIX
(doit): use login_access
based on patches from Ake Sandgren <ake@cs.umu.se >
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9641 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-02-07 05:05:58 +00:00
Assar Westerlund
6e38740a18
(save_krb5_creds): use krb5_rd_cred2 instead of krb5_rd_cred
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9464 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-01-09 18:44:29 +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
Johan Danielsson
6bd6f80082
require encryption if passed -x
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9271 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-12-05 09:12:26 +00:00
Assar Westerlund
57975d729b
(loop): check that the fd's aren't too large to select on
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9186 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-11-15 22:59:21 +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
Assar Westerlund
5f648d3799
use socklen_t where appropriate instead of int
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8923 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-08-09 20:53:11 +00:00
Assar Westerlund
81178d12fe
DCE stuff from Ake Sandgren <ake@cs.umu.se>
...
do not call syslog with a variable as format string
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8531 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-07-02 15:50:21 +00:00
Assar Westerlund
a1b0469cb7
(doit): check return value of getspnam. From <haba@pdc.kth.se>
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8309 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-06-03 12:56:44 +00:00
Assar Westerlund
d196515c3f
(doit): if we fail to connect back to the stderr port, act as if `-e'
...
was given on the client side, i.e. without the special
TCP-connection. This tries to make things better when running the
head against a NAT wall, for example.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8284 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-05-22 22:19:15 +00:00
Assar Westerlund
919dd3528a
only have des stuff if KRB4
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7863 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-02-06 05:58:56 +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
efade330cd
(main): ignore SIGPIPE
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7231 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-10-26 04:27:26 +00:00
Assar Westerlund
9fb0a9020d
(loop): close some omre fd's
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7151 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-10-17 10:26:45 +00:00