summaryrefslogtreecommitdiffstats
path: root/src/appl/gssftp
Commit message (Collapse)AuthorAgeFilesLines
...
* ftpcmd.y (cmd): Fix Y2K problem in the MDTM commandTheodore Tso1998-05-082-3/+8
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10554 dc483132-0cff-0310-8789-dd5450dbe970
* POSIX states that getopt returns -1 when it is done parsing options,Theodore Tso1998-05-062-1/+6
| | | | | | not EOF. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10548 dc483132-0cff-0310-8789-dd5450dbe970
* Fix -n so that it doesn't disable authentication but does disable login. [38]Sam Hartman1998-04-254-2/+27
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10543 dc483132-0cff-0310-8789-dd5450dbe970
* * glob.c (ftpglob): Always allocate new storage, even if no magic globKen Raeburn1998-04-222-2/+17
| | | | | | characters were found, because the caller will always free the storage. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10539 dc483132-0cff-0310-8789-dd5450dbe970
* (send_file_list): Oops missed a sigsetjmp() call.Tom Yu1998-04-112-1/+8
| | | | | | | | | (send_data): Add call to secure_flush() to send a zero length buffer when aborting. (send_file_list): Add call to secure_flush() to send a zero length buffer when aborting. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10528 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in: Add CHECK_SETJMP and CHECK_SIGNALSTom Yu1998-04-112-0/+6
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10527 dc483132-0cff-0310-8789-dd5450dbe970
* * ftpd.c (receive_data):Tom Yu1998-04-113-7/+34
| | | | | | | | | (send_data): Add support for sigsetjmp(). (main): Use sigaction() if we can to avoid SysV lossage. * ftpcmd.y (PBSZ): Remove restriction on shrinking buffer size. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10526 dc483132-0cff-0310-8789-dd5450dbe970
* * secure.c (secure_putbyte): Set nout = 0 *before* callingDan Winship1998-04-072-1/+9
| | | | | | | | | secure_putbuf: if the transfer is aborted, the SIGURG handler will longjmp out, so the line after the secure_putbuf will never get executed, so nout would never be reset and the next transfer would overrun ucbuf. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10524 dc483132-0cff-0310-8789-dd5450dbe970
* * ftpcmd.y (getline): Don't syslog passwords! (or newlines)Dan Winship1998-03-052-2/+11
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10498 dc483132-0cff-0310-8789-dd5450dbe970
* * ftpcmd.y: Add production "nonguest" to catch things thatTom Yu1998-02-252-5/+22
| | | | | | | | anonymous users aren't supposed to do. Replace "check_login" with "nonguest" in a few places to prevent w4r3z d00dz from being lame with world-writable incoming directories. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10473 dc483132-0cff-0310-8789-dd5450dbe970
* * ftpd.c: Use krb5_seteuid() and krb5_setegid(). [krb5-libs/505]Tom Yu1998-02-233-18/+20
| | | | | | | * Makefile.in (ftpd): Fix up KRB4COMPAT_LIBS (was KRB5_BASE_LIBS), and add UTIL_LIB. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10470 dc483132-0cff-0310-8789-dd5450dbe970
* Remove trailing slash from thisconfigdir. Change directory syntaxTom Yu1998-02-186-6/+21
| | | | | | used in BUILDTOP. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10464 dc483132-0cff-0310-8789-dd5450dbe970
* Remove USE_ANAME as aclocal.m4 no longer defines itEzra Peisach1998-02-142-1/+4
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10459 dc483132-0cff-0310-8789-dd5450dbe970
* Applied lxs's changes to make ftpd safe for systems whereTheodore Tso1998-02-142-3/+20
| | | | | | sizeof(off_t) > sizeof(int). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10456 dc483132-0cff-0310-8789-dd5450dbe970
* Collapse ftp and ftpd's configure.in into gssftp's configure.inTheodore Tso1998-02-139-74/+84
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10440 dc483132-0cff-0310-8789-dd5450dbe970
* Mass makefile/configure.in build system revampTheodore Tso1998-02-127-2/+22
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10424 dc483132-0cff-0310-8789-dd5450dbe970
* popen.c (ftpd_popen): Make sure you can't overrun the argv[] andTheodore Tso1998-02-062-4/+13
| | | | | | gargv[] arrays. (Patch submitted by dima@best.net). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10419 dc483132-0cff-0310-8789-dd5450dbe970
* * ftpd.c (auth_data): Accept forwarded credentials and dispose ofDan Winship1998-01-302-16/+41
| | | | | | them properly. (And fix some indentation bugs.) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10390 dc483132-0cff-0310-8789-dd5450dbe970
* Add -x (automatically encrypt) and -f (forward credentials) optionsDan Winship1998-01-306-14/+43
| | | | | | | Don't complain about missing ftp/hostname principal if there's a usable host/hostname. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10387 dc483132-0cff-0310-8789-dd5450dbe970
* * logwtmp.c (ftp_logwtmp): Rename logwtmp to ftp_logwtmp to avoidTom Yu1997-12-213-4/+13
| | | | | | | | | | collision with native logwtmp. Also, return void rather than int. * ftpd.c: Rename logwtmp to ftp_logwtmp to avoid collision with native logwtmp. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10341 dc483132-0cff-0310-8789-dd5450dbe970
* * ftpd.c: Don't include netdb.h or sys/socket.h if krb.h isTom Yu1997-12-122-0/+12
| | | | | | | included; this works around an Ultrix bug where those headers aren't protected against multiple inclusion. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10333 dc483132-0cff-0310-8789-dd5450dbe970
* * ftp.c:Tom Yu1997-12-123-0/+19
| | | | | | | | * main.c: Don't include netdb.h or sys/socket.h if krb.h is included; this works around an Ultrix bug where those headers aren't protected against multiple inclusion. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10332 dc483132-0cff-0310-8789-dd5450dbe970
* * main.c: Change KERBEROS to KRB5_KRB4_COMPAT where appropriateTom Yu1997-10-165-91/+107
| | | | | | | | | | | | | | | * secure.c: Use <secure.h> rather than "secure.h" so that the correct secure.h gets included (the one in the $(srcdir) of the directory we're compiling secure.c into). From danw@mit.edu. * ftp.c: Change KERBEROS to KRB5_KRB4_COMPAT where appropriate. Re-order the clauses so that that GSSAPI gets tried before KERBEROS_V4. * Makefile.in: Update LOCALINCLUDE and the link line to DTRT with krb4 compatibility. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10235 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in: Change LOCALINCLUDE and the link line to allow forTom Yu1997-10-163-56/+73
| | | | | | | | | | | krb4 compatibility. * ftpd.c: Change KERBEROS to KRB5_KRB4_COMPAT where appropriate. (reply): Fix up braces around the check for auth_type == "KERBEROS_V4" so that the nesting of if statements is correct. Various and sundry fixes from danw@mit.edu to make it work. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10234 dc483132-0cff-0310-8789-dd5450dbe970
* Fix bug that causes send_file_list to send no dataSam Hartman1997-08-292-2/+10
| | | | | | on short directories in safe mode. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10185 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in (SRCS): Add $(srcdir) where neededEzra Peisach1997-08-174-7/+18
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10175 dc483132-0cff-0310-8789-dd5450dbe970
* Fix name of srvtab file in the man page to be krb5.keytabTheodore Tso1997-07-162-1/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10119 dc483132-0cff-0310-8789-dd5450dbe970
* Fix Y2K bug in the parsing of the MDTM command. [krb5-appl/399]Theodore Tso1997-05-022-2/+7
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10083 dc483132-0cff-0310-8789-dd5450dbe970
* Merge of libhack_branchTom Yu1997-02-096-19/+20
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9831 dc483132-0cff-0310-8789-dd5450dbe970
* Merge V1_0_FREEZE_3 into the mainline. (Note this merge does *not*Theodore Tso1996-12-132-2/+8
| | | | | | include the doc subtree!!) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9632 dc483132-0cff-0310-8789-dd5450dbe970
* Apply patch from shadow@andrew.cmu.edu to fix a bug I fixedSam Hartman1996-11-202-1/+8
| | | | | | | for krb5 if compiled with Kerberos support; we don't support that, but applying the patch was easier than removing the code. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9445 dc483132-0cff-0310-8789-dd5450dbe970
* * ftpd.c (ftpd_userok): Don't undconditionally return -1Tom Yu1996-11-122-1/+6
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9386 dc483132-0cff-0310-8789-dd5450dbe970
* Check return value of krb5_init_context()Theodore Tso1996-11-082-1/+7
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9341 dc483132-0cff-0310-8789-dd5450dbe970
* * ftpd.c (auth_data): actually exit the for loop if the ftp keyMark Eichin1996-10-222-2/+7
| | | | | | was ok. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9236 dc483132-0cff-0310-8789-dd5450dbe970
* * ftpd.c (secure_fprintf): Use STDARG routines ifEzra Peisach1996-10-142-5/+28
| | | | | | present. [krb5-appl/108] git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9168 dc483132-0cff-0310-8789-dd5450dbe970
* * cmds.c (setpeer): Apply jik's fix so "-n" actually works asTom Yu1996-09-272-2/+8
| | | | | | intended. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9130 dc483132-0cff-0310-8789-dd5450dbe970
* remove ".so man1/header.doc" and extra args to .THTom Yu1996-09-104-4/+10
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9069 dc483132-0cff-0310-8789-dd5450dbe970
* man page rewrite from Cygnus. (Got rid of dependency on tmac.doc, whichJeff Bigler1996-08-292-1216/+1225
| | | | | | breaks under HP-UX) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9004 dc483132-0cff-0310-8789-dd5450dbe970
* s/struct fd_set/fd_set/gSam Hartman1996-08-052-5/+10
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8901 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in: Determine sizeof short, int, long for secure.cEzra Peisach1996-07-302-0/+7
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8861 dc483132-0cff-0310-8789-dd5450dbe970
* * secure.c: Do not assume sizeof(long) = 4 for sending lengths OTWEzra Peisach1996-07-303-3/+24
| | | | | | * configure.in: Determine sizeof short, int, long for secure.c git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8860 dc483132-0cff-0310-8789-dd5450dbe970
* * Define a non-zero FUDGE_FACTOR for GSSAPI; I have it set to 64 now,Sam Hartman1996-07-273-9/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | even though I tend to see 52 bytes of increased data because I'm not sure that the 52 bytes is constant across all implementations ands options. * When allocating outbuf, set bufsize to the size that was actually allocated; it tends not to be nbyte+FUDGE_FACTOR exactly, and you smash the heap if you store a different size than you actually allocate. * If a secure_putbyte fails, set nout to zero so you don't run off the end of the buffer next time around. * Only write out foure bytes of net_len, no matter how big it is. The right answer is to have it be some 32-bit type but I'm not sure if I should use the krb5 type, the GSSAPI type, or what. (Remember, this code has ifdefs for KerberosIV without GSSAPI) * While we're at it, if secure_write fails while writing out a file in the client, notice the error. (a break in an inner loop didn't break out quite far enough) With these changes, I am able to get and put multi-megabyte files even on an Alpha. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8847 dc483132-0cff-0310-8789-dd5450dbe970
* *** empty log message ***Marc Horowitz1996-07-261-0/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8840 dc483132-0cff-0310-8789-dd5450dbe970
* * ftpd.c (auth_data): the logic which dealt with multiple acceptorMarc Horowitz1996-07-241-207/+204
| | | | | | names and fallback was just broken. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8793 dc483132-0cff-0310-8789-dd5450dbe970
* this commit includes all the changes on the OV_9510_INTEGRATION andMarc Horowitz1996-07-226-10/+22
| | | | | | | | | OV_MERGE branches. This includes, but is not limited to, the new openvision admin system, and major changes to gssapi to add functionality, and bring the implementation in line with rfc1964. before committing, the code was built and tested for netbsd and solaris. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8774 dc483132-0cff-0310-8789-dd5450dbe970
* * ftpd.c (authdata): misplaced braces caused server to not be able toKevin Mitchell1996-06-132-1/+8
| | | | | | | use ftp principle if it was present. Client looks for ftp first, then tries host; ftpd was looking only for host. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8355 dc483132-0cff-0310-8789-dd5450dbe970
* cvsignore hackeryTom Yu1996-06-103-3/+0
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8288 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in, configure.in: back out previous changes and useTom Yu1996-06-033-7/+8
| | | | | | Ezra's patches instead. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8207 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in, Makefile.in: only link getdtablesize.o if neededTom Yu1996-06-033-2/+11
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8205 dc483132-0cff-0310-8789-dd5450dbe970
* hpux is unix. really, it isKen Raeburn1996-05-012-0/+12
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7880 dc483132-0cff-0310-8789-dd5450dbe970