Johan Danielsson
a40d984a8c
reinstate -n flag (from Torbjörn Granlund)
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11528 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-10-29 09:47:51 +00:00
Johan Danielsson
5948f454c6
fix parsing of epsv ports (from Love)
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11481 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-10-16 15:46:43 +00:00
Johan Danielsson
77de2f4011
use crypto-headers.h
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11444 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-09-10 20:03:49 +00:00
Johan Danielsson
55cebea766
(sec_vfprintf): free encoded data
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11393 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-09-04 22:01:28 +00:00
Johan Danielsson
0747aa8d55
(gss_decode): release buffer
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11392 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-09-04 22:00:50 +00:00
Johan Danielsson
17f9a949b7
(active_mode): no need to allocate buffer for EPRT
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11391 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-09-04 22:00:12 +00:00
Johan Danielsson
6812f62467
(command): clean up va_{start,end}ing (from NetBSD)
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11261 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-08-28 16:10:39 +00:00
Assar Westerlund
96c121c4f4
start using getarg
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11225 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-08-23 19:11:03 +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
2617fd75cd
remove unused variable
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11161 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-08-20 12:47:45 +00:00
Johan Danielsson
cd4b3ab2cd
better handle continuation lines (from Aidan Cully)
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11045 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-07-01 16:45:02 +00:00
Johan Danielsson
2fcca68adc
fix buffer overrun when receiving long replies
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10948 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-04-24 21:55:07 +00:00
Johan Danielsson
dbe8ec17b6
(gss_adat): if accept_sec_context fails, syslog a reason and give a
...
temporary error message
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10885 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-03-14 23:06:58 +00:00
Jacques A. Vidrine
10063c6282
If we're going to call va_start again, we should call
...
va_end first. This is a no-op on most platforms, though.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10671 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-09-07 20:28:10 +00:00
Assar Westerlund
0fa47f785f
(gss_adat): leak less memory and check return value from asprintf
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10651 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-09-04 09:45:09 +00:00
Johan Danielsson
03569fc666
try using "host" if there's no "ftp" principal
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10579 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-08-28 15:25:43 +00:00
Assar Westerlund
9b8ad9f282
set and use INCLUDE_des
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10574 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-08-28 08:31:31 +00:00
Assar Westerlund
aad564d1c2
re-write the handling of crypto libraries. try to use the one of
...
openssl's libcrypto or krb4's libdes that has all the required
functionality (md4, md5, sha1, des, rc4). if there is no such
library, the included lib/des is built.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10519 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-08-22 20:30:33 +00:00
Assar Westerlund
98a8b2f4c6
add some (unsigned char) casts to is*
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10436 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-08-05 06:39:29 +00:00
Assar Westerlund
a07b759178
(setpeer): __NetBSD__ is also a unix-like OS
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10431 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-08-05 00:55:56 +00:00
Assar Westerlund
19aff2e7fb
references and see also fixups from Ruslan Ermilov <ru@FreeBSD.org>
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10324 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-07-12 08:42:28 +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
2aefcf796c
try to use handle using openssl instead of libdes better. based on patches from GOMBAS Gabor <gombasg@inf.elte.hu> and Brian May <bam@snoopy.apana.org.au>
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9681 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-02-15 04:20:54 +00:00
Assar Westerlund
b3e42a41d3
(setpeer): handle both service names and port numbers for the second
...
optional argument. also make parsing more robust
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9679 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-02-15 04:17:09 +00:00
Assar Westerlund
b56e55eb69
(sec_end): only clean app_data if there is any
...
(*): do realloc consistently
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9654 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-02-07 10:49:43 +00:00
Assar Westerlund
130cb6b3fc
mdoc fixes from ru@freebsd.org
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9470 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-01-11 16:16:30 +00:00
Assar Westerlund
85b4d8f0a8
(gss_auth): be more explicit in error message
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9315 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-12-08 05:07:49 +00:00
Assar Westerlund
97efaf8a8a
add -l
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9184 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-11-15 22:57:21 +00:00
Assar Westerlund
83524f36ad
add `-l' for no line-editing
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9183 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-11-15 22:56:35 +00:00
Assar Westerlund
d070c0181a
(readline): add
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9182 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-11-15 22:56:08 +00:00
Assar Westerlund
887684d490
(lineedit): add variable indicated if we should use readline
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9181 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-11-15 22:55:52 +00:00
Assar Westerlund
baebf953a8
use LIB_des
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9176 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-11-15 22:51:14 +00:00
Johan Danielsson
ee1a5e70e9
(sec_read): fix bug in previous (from Jacques A. Vidrine
...
<n@nectar.com >)
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9148 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-11-08 23:30:32 +00:00
Johan Danielsson
388c5cda99
ignore Makefile.in
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9143 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-11-08 17:26:36 +00:00
Johan Danielsson
c787b9080d
switch to automake
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9141 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-11-05 17:16:41 +00:00
Assar Westerlund
df4a780888
(*): check that fds are not too large to select on
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9097 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-10-08 13:15:33 +00:00
Assar Westerlund
4ca7515785
(cmdscanner): print a newline upon EOF
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9095 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-10-04 06:08:54 +00:00
Assar Westerlund
2a63cfe6b9
fix superfluous semicolons in some of the __attribute__s
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9094 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-10-04 06:07:52 +00:00
Assar Westerlund
4c0020784c
add some attributes to prototypes of sec*
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9076 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-09-19 13:15:45 +00:00
Assar Westerlund
c173085353
(command): add attributes
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9075 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-09-19 13:15:12 +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
Johan Danielsson
0044c0e5a9
add some braces to make gcc happy
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8691 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-07-18 10:00:31 +00:00
Assar Westerlund
8f89435673
update prototype for signal handlers to RETSIGTYPE (*)(int)
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8581 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-07-08 12:08:04 +00:00
Assar Westerlund
c5debbcc33
update prototype for signal handlers to RETSIGTYPE (*)(int)
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8580 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-07-08 12:06:01 +00:00
Assar Westerlund
50256e4bac
add delegation. From Daniel Kouril <kouril@ics.muni.cz> and Miroslav Ruda <ruda@ics.muni.cz>
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8434 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-06-21 02:46:11 +00:00
Assar Westerlund
1bf63f3ec7
(login): re-structure code so that we prompt for password for
...
ftp/anonymous
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8197 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-04-25 20:59:07 +00:00
Assar Westerlund
fb26f178f9
(login): initialize tmp before calling fgets
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8163 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-04-11 00:18:38 +00:00
Assar Westerlund
c7c7a33ef6
rename all st_mtime variables to avoid conflict with #define.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8087 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-04-02 21:25:29 +00:00
Assar Westerlund
85ff7204cc
make sure to always call time, ctime, and gmtime with `time_t's.
...
there were some types (like in lastlog) that we believed to always be
time_t. this has proven wrong on Solaris 8 in 64-bit mode, where they
are stored as 32-bit quantities but time_t has gone up to 64 bits
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8066 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-03-26 19:46:45 +00:00
Assar Westerlund
e41038ec40
(sec_read): more paranoia with return value from sec_get_data
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7874 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-02-07 03:11:43 +00:00