summaryrefslogtreecommitdiffstats
path: root/src/appl/gssftp/ftp
Commit message (Collapse)AuthorAgeFilesLines
* make dependKen Raeburn2006-04-011-5/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17826 dc483132-0cff-0310-8789-dd5450dbe970
* * secure.c: Include autoconf.h. Include stdint.h and inttypes.h if available.Ken Raeburn2006-03-312-9/+16
| | | | | | | (ftp_uint32, ftp_int32): Always define as [u]int32_t instead of testing configure-time type size macros. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17816 dc483132-0cff-0310-8789-dd5450dbe970
* make depend, now with dependency sortingKen Raeburn2006-03-311-23/+25
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17811 dc483132-0cff-0310-8789-dd5450dbe970
* Instead of arbitrary division of headers into include and include/krb5, withKen Raeburn2006-03-111-3/+3
| | | | | | | | | | | | include directives sometimes using krb5/foo.h and sometimes using foo.h, and -I options always given for both directories in both source and build trees, push include/krb5/* up a level and drop the krb5 directory (except, for the moment, the change log). Updated #include directives, -I options, and dependencies accordingly, and deleted one or two bits of old, unused code that was noticed in the process. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17730 dc483132-0cff-0310-8789-dd5450dbe970
* Qing Dong <dongq@mit.edu> provided a set of changes to allowJeffrey Altman2006-02-272-1/+5
| | | | | | | | | | | | | krb5 to build under the Microsoft Visual Studio 8 compiler in 64-bit mode and produce file names that do not conflict with the names produced by the 32-bit build. That patch was modified to work on Unix and also include processor dependent pre-processor definitions to remove warnings. ticket: 3415 tags: pullup git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17680 dc483132-0cff-0310-8789-dd5450dbe970
* Delete .cvsignore files; contents have already been Sam Hartman2005-08-241-1/+0
| | | | | | set on svn:ignore properties. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17353 dc483132-0cff-0310-8789-dd5450dbe970
* run "make depend"Ken Raeburn2004-12-301-1/+0
| | | | | | | | In most library directories, this just affects where the line breaks are. In most other directories, it's just dropping a trailing blank line. One or two files really do have updated dependencies. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16987 dc483132-0cff-0310-8789-dd5450dbe970
* * ftp.c (do_auth): Handle a return code of 335, where the authenticationKen Raeburn2003-12-192-1/+6
| | | | | | | | | exchange requires more messages. ticket: 2062 status: open git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15943 dc483132-0cff-0310-8789-dd5450dbe970
* clean up ftp client gss memory managementTom Yu2003-06-252-4/+9
| | | | | | | | | | * ftp.c (do_auth): Call gss_release_buffer() on send_tok immediately after sending it. Call gss_release_name() on target_name at outer_loop instead of inside the loop. ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15651 dc483132-0cff-0310-8789-dd5450dbe970
* * ftp.c (recvrequest): Add new argument indicating whether "-" and "|..."Ken Raeburn2003-06-164-10/+19
| | | | | | | | | | | | | special treatment should be disabled. * ftp_var.h (recvrequest): Update declaration. * cmds.c (remglob, ls, mls): Pass 0 as the extra argument. (mget): Pass 1. (getit): Pass 1 iff only one filename was supplied. ticket: 1351 status: open git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15626 dc483132-0cff-0310-8789-dd5450dbe970
* Use fork not vfork in ftpSam Hartman2003-06-052-4/+5
| | | | | | | Ticket: 1547 Tags: pullup git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15581 dc483132-0cff-0310-8789-dd5450dbe970
* Use socklen_t when passing address to socket functions.Ken Raeburn2003-01-102-3/+11
| | | | | | Fixes compilation warnings on AIX 4.3.3. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15105 dc483132-0cff-0310-8789-dd5450dbe970
* Replace dependencies on generated krb524 and krb4 headers withTom Yu2002-12-231-5/+4
| | | | | | | | | variables, to allow correct behavior when krb4 is disabled. ticket: 1276 owner: tlyu git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15070 dc483132-0cff-0310-8789-dd5450dbe970
* update dependenciesTom Yu2002-11-271-5/+8
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15016 dc483132-0cff-0310-8789-dd5450dbe970
* * main.c (makeargv): Report an error if parsed arguments won't fit in margvKen Raeburn2002-11-093-3/+16
| | | | | | | array. * ftp_var.h (line, argbuf): Extend to 500 bytes. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14983 dc483132-0cff-0310-8789-dd5450dbe970
* update dependenciesKen Raeburn2002-08-291-1/+0
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14791 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in: Revert $(S)=>/ change, for Windows supportKen Raeburn2002-08-292-1/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14786 dc483132-0cff-0310-8789-dd5450dbe970
* Ignore a bunch of files generated by building in the source tree, excludingKen Raeburn2002-08-291-0/+1
| | | | | | | those covered by CVSROOT/cvsignore patterns. Static UNIX build only, at the moment, may need updates for other configurations. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14783 dc483132-0cff-0310-8789-dd5450dbe970
* Change $(S)=>/ and $(U)=>.. globallyKen Raeburn2002-08-232-1/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14761 dc483132-0cff-0310-8789-dd5450dbe970
* update dependenciesKen Raeburn2002-06-211-8/+11
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14553 dc483132-0cff-0310-8789-dd5450dbe970
* update dependenciesKen Raeburn2002-06-151-2/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14522 dc483132-0cff-0310-8789-dd5450dbe970
* Use ws2_32.lib instead of wsock32.libKen Raeburn2002-06-142-1/+6
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14505 dc483132-0cff-0310-8789-dd5450dbe970
* Suppress warning about unitialized variable; compiler's constant foldingSam Hartman2002-04-112-2/+6
| | | | | | isn't good enough to notice it is always initialized git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14385 dc483132-0cff-0310-8789-dd5450dbe970
* * ftp.c: Include Winsock 2 instead of Winsock.Danilo Almeida2002-04-115-2/+21
| | | | | | | | | | | * ftp_var.h: Include Winsock 2 headers. * secure.c: Include port-sockets.h on Win32. * main.c: Include mswsock.h (MS Winsock extensions) so that we get some socket options we need to convert sockets to "file descriptors" used in posix-like routines. We now need to pull this in explictly now that we are using Winsock 2. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14381 dc483132-0cff-0310-8789-dd5450dbe970
* Patch from Mark Eichin for bug 635Sam Hartman2002-04-042-6/+11
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14347 dc483132-0cff-0310-8789-dd5450dbe970
* define "unix" on BSDKen Raeburn2002-03-072-5/+6
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14232 dc483132-0cff-0310-8789-dd5450dbe970
* * glob.c (execbrc): Fix some fencepost errors. Don't copyTom Yu2001-12-082-2/+14
| | | | | | | | uninitialized memory past the end of the pattern string. Don't increment pointer beyond string end. [pullup from 1.2.3] git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14058 dc483132-0cff-0310-8789-dd5450dbe970
* Update automatic dependencies to work on Windows by using $(OUTPRE) andKen Raeburn2001-10-111-16/+18
| | | | | | | $(OBJEXT). Change a couple of UNIX rules to not trigger incorrectly on Windows. Rebuild dependencies. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13801 dc483132-0cff-0310-8789-dd5450dbe970
* * ftp.c: Conditionalize declarations of some "unused variables" toDanilo Almeida2001-10-112-54/+45
| | | | | | eliminate warnings. ANSI-fy definitions. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13800 dc483132-0cff-0310-8789-dd5450dbe970
* Don't conditionalize prototypes; delete macros supporting it. (Maybe overdone;Ken Raeburn2001-10-109-137/+135
| | | | | | don't worry about restoring them when importing new versions of code.) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13792 dc483132-0cff-0310-8789-dd5450dbe970
* updated dependencies for latest make-depend target codeKen Raeburn2001-09-061-6/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13734 dc483132-0cff-0310-8789-dd5450dbe970
* dependenciesKen Raeburn2001-09-021-0/+27
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13726 dc483132-0cff-0310-8789-dd5450dbe970
* * glob.c (amatch, case '*'): Treat multiple asterisks the same as oneKen Raeburn2001-08-212-0/+11
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13682 dc483132-0cff-0310-8789-dd5450dbe970
* * ftp.c: Declare mech_type in struct gss_trials gss_OID to beEzra Peisach2001-07-302-1/+6
| | | | | | compatible with GSS_C_NO_OID type. (was gss_OID *). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13652 dc483132-0cff-0310-8789-dd5450dbe970
* Remove local Win32-specific definition of gss_mech_krb5.Danilo Almeida2001-07-282-25/+10
| | | | | | | Use GSS_C_NO_OID instead of gss_mech_krb5 for mech_type to use an implementation specific default. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13649 dc483132-0cff-0310-8789-dd5450dbe970
* * getpass.c: Remove duplicate definitions of sig_t, my_sig_t;Tom Yu2001-07-243-5/+8
| | | | | | | | they're already declared in ftp_var.h. * ftp_var.h (FDOPEN_SOCKET): Fix second arg. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13631 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in, cmds.c, ftp.c, ftp_var.h, getpass.c, glob.c,Danilo Almeida2001-07-2411-197/+629
| | | | | | | | | | | | main.c, ruserpass.c, secure.c, secure.h: Quick and dirty Win32 port. Changes include using sockets more portably; changing the method of getting username, home directory, and temporary filenames; adding password reading code for Win32; directory enumeration via FindNextFile() rather than readdir(); removing OUT labels (which appear to cause problems with MSVC++ 6.0). Since ANSI C, assume we have stdarg.h. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13628 dc483132-0cff-0310-8789-dd5450dbe970
* * secure.c: Instead of hard wiring the FUDGE_FACTOR, newEzra Peisach2001-07-042-18/+65
| | | | | | | | | | variables to keep track of the total buffer length desired and the actual maximum that can be fitted. Add secure_determine_constants() to determine the mechanism dependent overhead. This has a hard limit for krb4 - for gssapi use gss_wrap_size_limit. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13553 dc483132-0cff-0310-8789-dd5450dbe970
* * cmds.c, domacro.c: Cast arguments to isspace() and isdigit()Ezra Peisach2001-06-154-18/+25
| | | | | | | | from char to int. * ftp.c: krb5_mk_priv(), krb5_mk_safe() expect C_Block *. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13350 dc483132-0cff-0310-8789-dd5450dbe970
* cmds.c: fix broken port number checkKen Raeburn2001-05-012-4/+10
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13225 dc483132-0cff-0310-8789-dd5450dbe970
* * ftp_var.h: Prototype for recvrequest() needs volatileEzra Peisach2001-04-273-1/+13
| | | | | | | | | declaration to match code. Native Dec Alpha compiler errors on the inconsistancy. * secure.h (PROTOTYPE): Only define if not defined already. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13214 dc483132-0cff-0310-8789-dd5450dbe970
* assume ANSI C: delete no-volatile support, and most no-prototype supportKen Raeburn2001-04-263-8/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13201 dc483132-0cff-0310-8789-dd5450dbe970
* prefer strerror() over sys_errlist[], for sparcv9-solaris2.8Ken Raeburn2001-03-084-4/+17
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13061 dc483132-0cff-0310-8789-dd5450dbe970
* * cmds.c (globulize): Use correct address of globbed results whenKen Raeburn2000-11-212-2/+9
| | | | | | freeing storage. Patch from Nalin Dahyabhai <nalin@redhat.com>. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12869 dc483132-0cff-0310-8789-dd5450dbe970
* * secure.h: Change SESSION to refer to &cred.session instead, soTom Yu2000-10-242-1/+7
| | | | | | | as to have the correct pointer type when passed to {mk,rd}_{safe,priv}() functions. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12807 dc483132-0cff-0310-8789-dd5450dbe970
* * ftp.c (do_auth): Remove debugging printf which I inadvertantlyEzra Peisach2000-10-102-1/+5
| | | | | | introduced. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12749 dc483132-0cff-0310-8789-dd5450dbe970
* renamed getmode() and setmode() to get_mode() and set_mode() to avoid a ↵Alexandra Ellwood2000-08-294-6/+13
| | | | | | collision with Mac OS X file permission bits manipulation functions of the same name which get included through unistd.h git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12633 dc483132-0cff-0310-8789-dd5450dbe970
* * secure.h (myaddr): For secure data stream, pass the port numberEzra Peisach2000-08-222-1/+6
| | | | | | | | | | | of the data stream and not the control stream to krb_mk_priv. This would result in the occasional time out of bounds error when ftping to the same machine. (mk_priv and rd_priv have some amusing negating of timestamps depending on address and port of sockets). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12628 dc483132-0cff-0310-8789-dd5450dbe970
* * domacro.c: Compiler warning cleanups and fix the overflow fix toEzra Peisach2000-08-1714-352/+562
| | | | | | | | | | | | | | | | index the proper array. * cmds.c, cmdtab.c, ftp.c, ftp_var.h, getpass.c, glob.c, main.c, radix.c, ruserpass.c, secure.c, secure.h: Compiler warning cleanups including providing prototypes, cleanup of assignments in conditionals, including unistd.h and stdlib.h (if present), declaring local functions as static. * Makefile.in: Do not compile pclose.c - the code is not used. About 600 warnings down.... git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12622 dc483132-0cff-0310-8789-dd5450dbe970
* 1.2-beta4 pullupKen Raeburn2000-06-307-30/+84
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12470 dc483132-0cff-0310-8789-dd5450dbe970