Love Hornquist Astrand
0879b9831a
remove trailing whitespace
2011-05-21 11:57:31 -07:00
Love Hornquist Astrand
393ea16776
use krb5_make_principal
2009-10-04 11:29:05 -07:00
Love Hornquist Astrand
0153270494
use krb5_make_principal
2009-10-04 11:28:54 -07:00
Love Hörnquist Åstrand
75033a80fd
drop krbv4 support
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24507 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-01-26 01:11:53 +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
9e42eb9529
Fix pointer vs strict alias rules.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21516 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-07-12 12:47:23 +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
75a77c6e79
make compile again
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14938 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-04-24 20:28:59 +00:00
Love Hörnquist Åstrand
250432e84a
use strlcat
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14937 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-04-24 20:25:05 +00:00
Love Hörnquist Åstrand
57c22f0d8e
use strlcpy
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14936 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-04-24 20:23:00 +00:00
Love Hörnquist Åstrand
94ad9d0c80
cast size_t to unsigned long
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14859 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-04-20 10:34:12 +00:00
Johan Danielsson
af952334df
rename loop() to rsh_loop()
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14238 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-09-21 11:34:15 +00:00
Johan Danielsson
af993645bc
(loop): pass errsock status to init_ivecs
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14237 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-09-21 11:33:42 +00:00
Johan Danielsson
9d7b65f346
reorder some options
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13392 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-02-20 12:20:36 +00:00
Johan Danielsson
20f6a22793
use krb5_appdefault to get defaults for forward and encrypt
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12075 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-04-16 20:37:20 +00:00
Assar Westerlund
653e96e023
(loop): only check errsock if it's valid
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11899 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-03-24 03:31:40 +00:00
Johan Danielsson
eb56509978
(doit_broken): call print_addr from parent process, and skip
...
un-printable addresses; (print_addr): don't limit to IPv4
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11464 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-09-19 19:26:47 +00:00
Johan Danielsson
af18ece01f
free some memory
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11389 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-09-04 21:40:04 +00:00
Johan Danielsson
4f823a9b69
revert to protocol v1 if not asked for specific protocol
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11351 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-09-03 20:27:01 +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
2a478083b6
make this build without krb5
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10843 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-02-18 19:17:22 +00:00
Assar Westerlund
897f0b1f93
unsigned char casts for is*, casts for socket functi, add headers
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10646 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-09-03 05:54:18 +00:00
Johan Danielsson
38c91e6050
only complain about encryption flag when old authentication is
...
requested
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10494 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-08-15 19:42:59 +00:00
Assar Westerlund
7ed1764c7d
(main): fix errx call
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10444 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-08-08 09:51:01 +00:00
Johan Danielsson
d82602c3c0
don't try broken auth if rresvport failed; try to give some more
...
informative error messages
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10439 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-08-07 12:55:59 +00:00
Johan Danielsson
b7a4b79403
iff -d, set the SO_DEBUG flags of the stdout and stderr socket;
...
implement parsing user@host
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10413 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-07-31 08:16:16 +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
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
f64041aa23
(loop, proto): check that the fd's aren't too large to select on
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9185 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-11-15 22:58:53 +00:00
Assar Westerlund
416874d66f
move code to do config/command parsing correctly.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8925 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-08-10 19:25:20 +00:00
Assar Westerlund
986d4dc7a8
(main): only fetch stuff from krb5.conf when no option has been given
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8919 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-08-09 19:52:22 +00:00
Assar Westerlund
b227547119
(doit): loop until we create an error socket of an supported socket
...
family
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8881 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-08-01 21:10:52 +00:00
Assar Westerlund
1a831dae4a
make trying to use encryption and bsd authentication a crime
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8424 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-06-21 02:10:41 +00:00
Assar Westerlund
b494b7cebb
(main): work-around for setuid and capabilities bug fixed in Linux
...
2.2.16
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8367 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-06-09 10:08:30 +00:00
Johan Danielsson
6b2825f188
nuke long option from -z
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8325 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-06-06 09:38:47 +00:00
Johan Danielsson
118ec61bb0
don't try to encrypt if auth is broken (Daniel Kouril)
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8324 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-06-06 09:37:32 +00:00
Assar Westerlund
8611ebf5de
(proto): select on the normal socket when waiting for the daemon to
...
connect back to the stderr port, so that we discover when data arrives
there before. when that happens, we assume that the daemon did not
manage to connect (because of NAT/whatever) and continue as if `-e'
was given
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8286 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-05-22 22:53: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
Assar Westerlund
9f9827aa6d
htons should really be ntohs
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7612 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-12-16 11:53:50 +00:00
Assar Westerlund
9630ea929b
(doit): addrinfo returned from getaddrinfo() is not usable directly as
...
hints. copy it and set AI_PASSIVE.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7598 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-12-16 10:26:22 +00:00
Assar Westerlund
90dea3f7a7
use getaddrinfo
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7498 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-12-04 18:06:43 +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
0d50f8f7e2
(main): remember to close the priviledged sockets before calling
...
rlogin
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7417 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-11-20 20:50:07 +00:00
Assar Westerlund
ac5267f34c
(main): redo the v4/v5 selection for consistency.
...
-4 -> try only v4
-5 -> try only v5
none, -45 -> try v5, v4
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7297 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-11-02 22:45:10 +00:00
Assar Westerlund
6fb65024a7
(proto): be more careful and don't print errno when read() returns 0
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7141 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-10-14 08:04:20 +00:00
Assar Westerlund
538358295d
call freehostent
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6756 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-08-05 12:22:09 +00:00
Assar Westerlund
d2120e0670
remove some dead code
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6750 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-08-05 10:17:15 +00:00
Assar Westerlund
5bbde2428f
add -z' and
-G' options
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6713 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-08-04 17:03:54 +00:00