Commit Graph

314 Commits

Author SHA1 Message Date
Love Hörnquist Åstrand 359795961a add ftp_do_gss_delegate
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13233 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-12-19 00:54:52 +00:00
Love Hörnquist Åstrand 52b83f8c31 (getargs): negative flag for delegating gss creds
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13232 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-12-19 00:53:11 +00:00
Love Hörnquist Åstrand bcc0935fca (ftp_do_gss_delegate): delegate creds (default on)
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13231 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-12-19 00:49:08 +00:00
Love Hörnquist Åstrand 54fc57ccb5 s/des_read_pw_string/UI_UTIL_read_pw_string/
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12753 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-03 09:37:03 +00:00
Love Hörnquist Åstrand bbeffa1fb5 wrap gssapi stuff with KRB5
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12597 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-08-20 16:26:21 +00:00
Love Hörnquist Åstrand 0d992fb664 add ftp_do_gss_bindings
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12461 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-07-19 09:58:18 +00:00
Love Hörnquist Åstrand 2dfba1b25c fix mdoc bug
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12460 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-07-19 09:57:08 +00:00
Love Hörnquist Åstrand 3df6ae565f document --no-gss-bindings
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12459 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-07-19 09:54:27 +00:00
Love Hörnquist Åstrand 6e46d232bf Optionally support gss bindings, client does it by default, server not.
This is to make it work for clients behind NAT.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12458 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-07-19 09:51:15 +00:00
Love Hörnquist Åstrand 579b0037e6 (args): add gss-bindings
(main): set ftp_do_gss_bindings to 1 to make client use them


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12457 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-07-19 09:49:28 +00:00
Johan Danielsson bc6e02716a (gss_adat): fix name allocation bug
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12359 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-06-13 12:08:21 +00:00
Love Hörnquist Åstrand 24ed2fa8bb (gss_adat): remove poking inside the delegated handle, also fixes
problem where to much memory was allocated


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12321 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-05-21 15:05:49 +00:00
Love Hörnquist Åstrand 5c8ab5c7cc include afslog in both the krb4 and krb5 case
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12233 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-05-07 11:59:13 +00:00
Love Hörnquist Åstrand 10d8573897 always include kauth.c
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12232 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-05-07 11:58:33 +00:00
Love Hörnquist Åstrand 867d4a0498 replace > with \*[Gt]
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12095 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-04-22 13:27:58 +00:00
Love Hörnquist Åstrand 4a6891275c (gss_adat): now that gss_export_name exports a principal, bandaid with
gss_display_name, and check that oid is GSS_KRB5_NT_PRINCIPAL_NAME,
also free memory


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11793 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-03-16 19:40:18 +00:00
Love Hörnquist Åstrand 247de42830 (gss_auth): print out the name we authenticated too
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11710 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-03-14 00:44:18 +00:00
Love Hörnquist Åstrand ee95cb516e s/utilizes/uses/
from NetBSD


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11660 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-02-25 10:48:01 +00:00
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