Commit Graph

283 Commits

Author SHA1 Message Date
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
Assar Westerlund
3462827e80 (guess_domain): handle ai_canonname being set in any of the addresses
returnedby getaddrinfo.  glibc apparently returns the reverse lookup
of every address in ai_canonname.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7757 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-01-08 07:45:11 +00:00
Assar Westerlund
45d1cde80c (hookup): handle ai_canonname being set in any of the addresses
returnedby getaddrinfo.  glibc apparently returns the reverse lookup
of every address in ai_canonname.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7756 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-01-08 07:43:47 +00:00
Assar Westerlund
c72c2d46c2 add ftp.1
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7734 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-01-06 15:11:43 +00:00
Assar Westerlund
cc6883b4ff (guess_domain): handle ai_canonname not being set
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7610 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-12-16 11:49:43 +00:00
Assar Westerlund
db533316bd (hookup): handle ai_canonname not being set
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7609 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-12-16 11:49:11 +00:00
Assar Westerlund
4e5422097d (krb4_auth): the nat-IP address might not be realm bounded.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7554 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-12-06 17:10:13 +00:00
Assar Westerlund
2459e3441b (guess_domain): re-write to use getaddrinfo
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7494 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-12-04 18:03:39 +00:00
Assar Westerlund
7fa11bb3f0 (hookup): re-write to use getaddrinfo
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7493 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-12-04 18:03:01 +00:00
Johan Danielsson
3ca5f8150f remove advertising clause
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7463 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-12-02 16:58:55 +00:00
Johan Danielsson
410b0164e7 do not use krb_get_our_ip_for_realm unless it exists
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7458 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-12-02 13:04:36 +00:00
Assar Westerlund
30b16f408c (sec_login): check return value from realloc
(sec_end): set app_data to NULL


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7446 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-11-29 03:16:29 +00:00
Assar Westerlund
01fdca0882 (krb4_auth): obtain the `local' address when doing NAT. also turn on
passive mode.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7428 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-11-25 05:28:26 +00:00
Assar Westerlund
9becdf9186 (main): getopt returns -1 not EOF. From <art@stacken.kth.se>
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7379 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-11-13 06:18:02 +00:00