Commit Graph

321 Commits

Author SHA1 Message Date
Love Hörnquist Åstrand
bdd75a7ca8 Dont need to set this as the controlling PTY on steams sockets, don't
abort on failure. From Harald Barth and Ian Delahorne.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22665 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-03-09 21:47:53 +00:00
Love Hörnquist Åstrand
39733fdb03 Use strlcpy instead of strncpy, thanks to Antoine Brodin.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22390 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-12-31 10:12:48 +00:00
Love Hörnquist Åstrand
28dc596f15 (usage): use exit_code, add --version and --help.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21748 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-07-31 18:57:20 +00:00
Love Hörnquist Åstrand
cd48123810 Add --help.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21732 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-07-31 01:40:30 +00:00
Love Hörnquist Åstrand
3d31f777e0 Remove leftover.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21520 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-07-12 13:11:49 +00:00
Love Hörnquist Åstrand
578a6f5594 GLIBC made the choice that ut_tv should be shared between 32 and 64
bit platforms so now we can no longer use struct timeval functions to
compare or set/get data that uses pointer (gettimeofday for example)
since ut_tv is now not a struct timeval but rather a struct { int32_t
tv_sec; int32_t tv_usec; };


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21518 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-07-12 13:04:50 +00:00
Love Hörnquist Åstrand
cc4333b758 remove cvs ignore files
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21026 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-09 03:09:59 +00:00
Love Hörnquist Åstrand
7ba2b2006c rename des to hcrypto
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20466 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-04-20 08:29:05 +00:00
Love Hörnquist Åstrand
585ce9cbb0 HP/UX defines SE in sys/uio.h, #undef it.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18757 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-21 15:47:35 +00:00
Love Hörnquist Åstrand
e7c62c79bb Fix spelling.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18742 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-21 13:37:28 +00:00
Love Hörnquist Åstrand
489987bee3 Dont't include some streamspty headers here.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18728 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-21 00:09:25 +00:00
Love Hörnquist Åstrand
a8d177955e includes some STREAMSPTY header here to avoid ioctl vs socket_wrapper horror.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18727 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-21 00:08:28 +00:00
Love Hörnquist Åstrand
d8fb637ef8 more files
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18663 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-20 17:09:30 +00:00
Love Hörnquist Åstrand
62e15d7f6b Add documentation for -e, require encryption.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18113 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-19 08:27:40 +00:00
Love Hörnquist Åstrand
b6e0a49796 Add require_encryption.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18112 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-19 08:26:50 +00:00
Love Hörnquist Åstrand
4adf47957d Allow encryption to be required, wait to the client to turn it on, if
failes, refuse the connection.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18111 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-19 08:26:21 +00:00
Love Hörnquist Åstrand
ead5f1b7b6 If encryption is required, don't allow it to be turned off.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18110 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-19 08:25:20 +00:00
Love Hörnquist Åstrand
477270a1ca remove setlinebuf that sneeked in
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16334 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-12-01 15:29:40 +00:00
Love Hörnquist Åstrand
ea8a943e6d Initialize the slc mapping table before its used.
Based on bugraport from Russell Sanford <rrs@clyde.dcccd.edu>


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16331 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-12-01 15:25:45 +00:00
Johan Danielsson
2807ca723b remove newline from syslog string
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16284 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-11-03 16:40:05 +00:00
Love Hörnquist Åstrand
cac19c86e7 Fix printing of /etc/issue{,.net}.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15845 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-08-08 13:37:04 +00:00
Love Hörnquist Åstrand
44c8c17c29 make writenet take const void * and size_t, abort if size it too large
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15844 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-08-08 13:36:16 +00:00
Love Hörnquist Åstrand
33ec7be97f Fix ansi c warning.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15843 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-08-08 13:35:39 +00:00
Love Hörnquist Åstrand
da3079056e no need to typecast argument to writenet
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15842 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-08-08 13:35:04 +00:00
Love Hörnquist Åstrand
671b1a284f make writenet take const void * and size_t
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15841 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-08-08 13:34:26 +00:00
Love Hörnquist Åstrand
b5bf953b97 (set_termbuf): use {} around if to make else unambiguous
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15245 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-05-27 13:42:04 +00:00
Love Hörnquist Åstrand
3fe17e04c4 (start_login): put utmpx code into a new scope to avoid pre c99 problems.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15196 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-05-20 08:35:51 +00:00
Johan Danielsson
40b1dab5bd (start_login): set encryption pointers to NULL, so we don't try to do
either


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15138 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-05-13 14:20:38 +00:00
Johan Danielsson
60fe67f93b (putf): %t: the regular and streamspty case are functionally
equivalent, so merge them, this also makes it work better on machines
that puts their devices in a subdirectory to /dev


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15003 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-04-28 16:36:32 +00:00
Love Hörnquist Åstrand
a3bb5d884c (getpty): Declare p.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14967 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-04-27 08:02:18 +00:00
Love Hörnquist Åstrand
53624218c7 use strlcpy
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14953 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-04-25 13:15:15 +00:00
Love Hörnquist Åstrand
5ff49eff33 remove another strcpy
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14939 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-04-24 20:59:35 +00:00
Love Hörnquist Åstrand
0ffd30a6e4 rewrite getpty to make use openpty when its found, save the slave fd
so that cleanopen can use it if its available


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14848 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-04-19 13:36:20 +00:00
Love Hörnquist Åstrand
7adcb73bb8 include krb5.h to avoid krb5_getportbyname warning
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14847 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-04-19 10:33:18 +00:00
Love Hörnquist Åstrand
50d9ed5566 clean_ttyname might be unused, mark it so with __attribute__
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14755 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-04-07 19:33:29 +00:00
Love Hörnquist Åstrand
c41860a8ee use NULL as last argument to execl, not 0
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14747 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-04-06 11:23:54 +00:00
Love Hörnquist Åstrand
692e21b3e7 remove setting of DES_check_key, all code uses DES_set_key_checked
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14682 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-03-23 16:22:39 +00:00
Johan Danielsson
60369967af remove const from argument list passed to execv
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14176 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-08-27 13:03:10 +00:00
Johan Danielsson
0624b4457e replace INCLUDES with AM_CPPFLAGS
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14164 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-08-26 11:55:29 +00:00
Love Hörnquist Åstrand
a69172cd39 make subbuffer larger XXX resize dynamicly
From: MAAAAA MOOOR <huaraz@btinternet.com>


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13940 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-06-20 17:00:38 +00:00
Love Hörnquist Åstrand
f026b13d65 call setprogname to make libvers happy
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13617 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-03-22 18:07:49 +00:00
Love Hörnquist Åstrand
b6b6ef861a use new DES_ api
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12761 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-03 11:48:53 +00:00
Assar Westerlund
68823821a9 add --version as a special case
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11226 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-08-23 19:29:38 +00:00
Johan Danielsson
879fc6b8bc more, mostly whitespace, fixes from Thomas Klasusner
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11176 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-08-20 17:07:29 +00:00
Johan Danielsson
31ad1085bf use sysconfdir
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11080 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-08-12 15:09:20 +00:00
Assar Westerlund
66e47c8292 move NOERROR
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10713 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-09-17 02:09:05 +00:00
Assar Westerlund
afe19111e9 add a kludge to make it build on aix (that defines NOERROR in both
sys/stream.h and arpa/nameser.h and considers that a fatal error)


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10712 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-09-17 02:09:04 +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
Assar Westerlund
67813438a7 kill some warnings
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10587 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-08-29 00:45:23 +00:00
Johan Danielsson
002678bb48 use INCLUDE_des
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10578 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-08-28 11:21:17 +00:00