summaryrefslogtreecommitdiffstats
path: root/src/appl/gssftp
Commit message (Collapse)AuthorAgeFilesLines
...
* Don't use channel bindings for accept_sec_contextSam Hartman2002-04-112-10/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14386 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
* update dependenciesKen Raeburn2002-03-261-0/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14292 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in: Remove dependency on krb524.h and krb524_err.h asEzra Peisach2002-03-202-1/+5
| | | | | | they may not be present if compiling --without-krb4. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14288 dc483132-0cff-0310-8789-dd5450dbe970
* define "unix" on BSDKen Raeburn2002-03-074-9/+12
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14232 dc483132-0cff-0310-8789-dd5450dbe970
* fix bug with inconsistent result codes when homedir isn't accessible but / isKen Raeburn2002-01-082-6/+18
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14092 dc483132-0cff-0310-8789-dd5450dbe970
* * ftpcmd.y (pathname): Handle returns from ftpglob() better soTom Yu2001-12-082-6/+17
| | | | | | | | | | that errors get sent via reply(), while causing some match failures to match to simply return $1, so the higher level can deal. Previously, some failures would cause synch problems since NULL would be returned and no reply was sent. [pullup from 1.2.3] git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14059 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
* * ftpd.M: Remove improper formatting from the .SH NAME section, as itMitchell Berger2001-10-112-4/+7
| | | | | | | | | was reported to cause windex generation problems and was inconsistent with all the other man pages. [Fixes krb5-doc/319] git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13802 dc483132-0cff-0310-8789-dd5450dbe970
* Update automatic dependencies to work on Windows by using $(OUTPRE) andKen Raeburn2001-10-112-37/+42
| | | | | | | $(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-1012-145/+147
| | | | | | 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-062-15/+13
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13734 dc483132-0cff-0310-8789-dd5450dbe970
* dependenciesKen Raeburn2001-09-022-0/+57
| | | | 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
* * ftpd.M: Update the usage line and option descriptions to be in syncMitchell Berger2001-08-032-19/+32
| | | | | | with what the code actually does and be in a consistent order. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13672 dc483132-0cff-0310-8789-dd5450dbe970
* * ftpd.c (main): Convert to do option parsing with getopt() ratherMitchell Berger2001-08-032-71/+48
| | | | | | | | | than the whitespace-sensitive voodoo we've used in the past. This fixes a bug where use of -u to set a default umask silently failed and granted more permission on files than desired if the -u and the mode were separated by a space, and likely many other such bugs. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13670 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
* * configure.in: Add check for getev() to avoid problems whenTom Yu2001-07-242-1/+6
| | | | | | building setenv.c from appl/bsd. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13632 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
* * ftpd.c: Provide prototypes for myoob and lostconnEzra Peisach2001-07-052-3/+9
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13558 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
* * ftpd.c (sgetpwnam): Remove local declaration of sgetsaveEzra Peisach2001-07-032-2/+4
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13549 dc483132-0cff-0310-8789-dd5450dbe970
* * popen.c: Include ftpd_var.hEzra Peisach2001-07-025-16/+33
| | | | | | | | | | | | * ftpd.c: Declare secure_fprintf, gunique, sgetsave, sgetpwnam, path_expand static. * ftpd_var.h: Add prototypes for getline, renamefrom, ftpd_popen, ftpd_pclose. * ftpcmd.y: Declare lookup, copy and urgsafe_getc static. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13545 dc483132-0cff-0310-8789-dd5450dbe970
* * ftpcmd.y (help): Change local variable type to ftypeEzra Peisach2001-06-223-67/+74
| | | | | | | * ftpd.c (main): Local variable name changes to prevent shadowing of cp, sin, optarg. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13492 dc483132-0cff-0310-8789-dd5450dbe970
* * ftpd.c: If NEED_SETENV defined, prototype for setenv.Ezra Peisach2001-06-212-1/+7
| | | | | | | (auth_data): radix_encode expects a int * and not a size_t *. Use temporary variable to pass data in and out. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13466 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in (SETENVOBJ): Define NEED_SETENV if compiling our ownEzra Peisach2001-06-212-0/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13461 dc483132-0cff-0310-8789-dd5450dbe970
* * ftpd.c: If NEED_SETENV defined, prototype for setenvEzra Peisach2001-06-212-0/+8
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13460 dc483132-0cff-0310-8789-dd5450dbe970
* * ftpd.c: Include gssapi/gssapi_krb5.h for gss_krb5_copy_ccacheEzra Peisach2001-06-212-0/+7
| | | | | | prototype. Provide prototype for yyparse. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13448 dc483132-0cff-0310-8789-dd5450dbe970
* * ftpcmd.y: Cleanup potential ambiguity between comparsion andEzra Peisach2001-06-192-1/+6
| | | | | | pre-increment for a variable. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13388 dc483132-0cff-0310-8789-dd5450dbe970
* * ftpcmd.y, ftpd.c: Cast argument to isspace()/isdigit() to intEzra Peisach2001-06-154-9/+16
| | | | | | | * secure.h (SESSION): Pass pointer to C_Block as expected by krb5_mk_priv(). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13351 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
* * pathnames.h: _PATH_FTPUSERS renamed to _PATH_FTPUSERS_DEFAULTMitchell Berger2001-06-084-5/+34
| | | | | | | | | * ftpd.c: Added '-U filename' option to allow specification of an ftpusers file other than the default. * ftpd.M: Documented the new -U option. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13303 dc483132-0cff-0310-8789-dd5450dbe970
* Fix up small typo in lat set of commitsEzra Peisach2001-06-061-1/+2
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13279 dc483132-0cff-0310-8789-dd5450dbe970
* * ftpcmd.y: Include "ftpd_var.h" and remove prototype for reply()Ezra Peisach2001-06-065-50/+242
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | and lreply(). Add prototypes and declare as returning void sizecmd(), help() and yylex(). Cleanup assignments in conditionals. * ftpd.c: Include <grp.h> for initgroups() prototype. Move reply(), lreply() prototypes to ftpd_var.h (and include same). Include "krb524.h" for krb524_convert_creds_kdc() prototype. Include secure.h. Provide static prototypes for ftpd_gss_convert_creds(), ftpd_gss_userok(), dolog(), receive_data(), login(), end_login(), disallowed_user(), restricted_user(), checkuser(). Declare main(), checkuser(), disallowed_user(), restricted_user(), end_login(), kpass(), retreive_data(), auth_data(), secure_printf(), ftpd_gss_userok(), as returning int. Declare setdlevel(), user(), pass(), login(), retreive(), store_file(), secure_error(), statfilecmd(), stat_cmd(), fatal(), reply(), lreply(), ack(), nack(), yyerror(), delete_file(), cwd(), makedir(), removedir(), pwd(), renamecmd(), dolog(), dologout(), passive(), perror_reply(), auth(), send_file_list(), reply_gss_error(), secure_gss_error(), ftpd_gss_convert_creds(), as returning void. Cleanup printf argument mismatches. * ftpd_var.h: New header file with many prototypes from ftpd.c. * popen.c (ftpd_popen): Add parenthesis in conditional to distinguish || vs &&. Add prototype for blkfree(). (ftpd_pclose): Declare as returning int. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13276 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
* * ftpcmd.y: Don't dereference a NULL pointer returned fromTom Yu2001-04-263-20/+143
| | | | | | | | | | ftpglob(). * ftpd.c: Be more paranoid about return values from ftpglob(). Police uses of sprintf(). Account for expansion in radix_encode(). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13193 dc483132-0cff-0310-8789-dd5450dbe970
* prefer strerror() over sys_errlist[], for sparcv9-solaris2.8Ken Raeburn2001-03-088-5/+28
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13061 dc483132-0cff-0310-8789-dd5450dbe970
* make pty_make_sane_hostname take sockaddr* arg instead of sockaddr_in*Ken Raeburn2000-12-062-1/+6
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12883 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
* Oops - checked in a newer version by accidentEzra Peisach2000-11-011-10/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12850 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in: Use AC_CHECK_FUNCS, AC_CHECK_HEADERS, AC_C_CONSTEzra Peisach2000-11-014-10/+35
| | | | | | | instead of the older names AC_HAVE_FUNCS, AC_HEADER_CHECK, AC_CONST. Consolidate use of function testing macros. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12843 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
* * ftpd.c (reply): For gssapi connection, do not include NULL inEzra Peisach2000-10-172-1/+6
| | | | | | sealed reply string. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12796 dc483132-0cff-0310-8789-dd5450dbe970