OpenBSD CVS

CVS log for src/usr.bin/ftp/ftp_var.h


[BACK] Up to [local] / src / usr.bin / ftp

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.46 / (download) - annotate - [select for diffs], Tue Feb 2 12:58:42 2021 UTC (3 years, 3 months ago) by robert
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, HEAD
Changes since 1.45: +2 -1 lines
Diff to previous 1.45 (colored)

introduce support for sending the If-Modified-Since header while
fetching over http(s) and use the timestamps from the remote server's
Last-Modified header if available when saving local files
this makes it possible to mirror files better with ftp(1)

the new timestamp behaviour can be disabled with the new '-u' flag

ok sthen@, input from sthen@ and gnezdo@

Revision 1.45 / (download) - annotate - [select for diffs], Tue Sep 1 12:33:48 2020 UTC (3 years, 8 months ago) by jca
Branch: MAIN
CVS Tags: OPENBSD_6_8_BASE, OPENBSD_6_8
Changes since 1.44: +94 -94 lines
Diff to previous 1.44 (colored)

Fix build with -fno-common (default in clang 11)

Input and ok mortimer@

Revision 1.44 / (download) - annotate - [select for diffs], Mon Nov 18 04:37:35 2019 UTC (4 years, 6 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_6_7_BASE, OPENBSD_6_7
Changes since 1.43: +2 -2 lines
Diff to previous 1.43 (colored)

various knf and whitespace; ok jca

Revision 1.43 / (download) - annotate - [select for diffs], Thu May 16 12:44:18 2019 UTC (5 years ago) by florian
Branch: MAIN
CVS Tags: OPENBSD_6_6_BASE, OPENBSD_6_6
Changes since 1.42: +0 -0 lines
Diff to previous 1.42 (colored)

Revert suni'ls ftp rewrite for now.
We are juggling too many things at the moment and we can't deal with
the differences in behaviour right now.

Revision 1.42, Sun May 12 20:44:39 2019 UTC (5 years ago) by kmos
Branch: MAIN
Changes since 1.41: +1 -1 lines
FILE REMOVED

Move us from old ftp(1) to Sunil's new ftp(1). The necessary modifications
have been made to make it behave. Any new misbehaviors can be fixed in tree.

OK florian@ deraadt@ "Have you committed ftp yet?"

Revision 1.41 / (download) - annotate - [select for diffs], Sat Feb 10 06:25:16 2018 UTC (6 years, 3 months ago) by jsing
Branch: MAIN
CVS Tags: OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4, OPENBSD_6_3_BASE, OPENBSD_6_3
Changes since 1.40: +2 -1 lines
Diff to previous 1.40 (colored)

Add TLS session support to ftp(1).

If a session file is specified via the `-S session=...', ftp(1) will
attempt to resume TLS sessions based on the session data contained within
this file. Upon completion of a successful TLS handshake the session file
will be updated with new session data, if available.

Discussed with deraadt@ and beck@.

Requested by and input from espie@.

Revision 1.40 / (download) - annotate - [select for diffs], Sat Jan 21 08:33:07 2017 UTC (7 years, 3 months ago) by krw
Branch: MAIN
CVS Tags: OPENBSD_6_2_BASE, OPENBSD_6_2, OPENBSD_6_1_BASE, OPENBSD_6_1
Changes since 1.39: +3 -3 lines
Diff to previous 1.39 (colored)

Nuke whitespace foolish enough to expose itself during the great
"warning:" rectification.

Revision 1.39 / (download) - annotate - [select for diffs], Wed Dec 28 17:48:04 2016 UTC (7 years, 4 months ago) by deraadt
Branch: MAIN
Changes since 1.38: +6 -5 lines
Diff to previous 1.38 (colored)

Split -DSMALL into -DNOSSL, so that a SSL-enabled version of ftp can
be built, which is still pretty small (in distrib/special/ftp-ssl).
Lots of testing by rpe.

Revision 1.38 / (download) - annotate - [select for diffs], Mon Feb 9 08:24:21 2015 UTC (9 years, 3 months ago) by tedu
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9, OPENBSD_5_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.37: +2 -12 lines
Diff to previous 1.37 (colored)

various defines always exist, so delete the ifdef test.
the socks support seems to be dead, since there are no other references.
also, redeclaring a standard function? that's a no-no.
custom compiles with gate-ftp servers don't need to be supported either.
ok deraadt

Revision 1.37 / (download) - annotate - [select for diffs], Fri Jan 16 06:40:08 2015 UTC (9 years, 4 months ago) by deraadt
Branch: MAIN
Changes since 1.36: +6 -5 lines
Diff to previous 1.36 (colored)

Replace <sys/param.h> with <limits.h> and other less dirty headers where
possible.  Annotate <sys/param.h> lines with their current reasons.  Switch
to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc.  Change
MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where
sensible to avoid pulling in the pollution.  These are the files confirmed
through binary verification.
ok guenther, millert, doug (helped with the verification protocol)

Revision 1.36 / (download) - annotate - [select for diffs], Fri Oct 31 13:48:21 2014 UTC (9 years, 6 months ago) by jsing
Branch: MAIN
Changes since 1.35: +3 -3 lines
Diff to previous 1.35 (colored)

Update ftp(1) to use libtls instead of libressl.

Revision 1.35 / (download) - annotate - [select for diffs], Mon Jul 14 09:26:27 2014 UTC (9 years, 10 months ago) by jsing
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6
Changes since 1.34: +4 -9 lines
Diff to previous 1.34 (colored)

Convert ftp(1) to libressl, rather than rolling in^W^Whand rolling libssl.

ok beck@ deraadt@

Revision 1.34 / (download) - annotate - [select for diffs], Fri Jul 11 03:31:52 2014 UTC (9 years, 10 months ago) by lteo
Branch: MAIN
Changes since 1.33: +2 -1 lines
Diff to previous 1.33 (colored)

Allow ftp(1) to change its User-Agent for HTTP(S) URL requests using a
-U command-line option.

feedback from deraadt@, halex@, and Adam Thompson
ok deraadt@ sthen@, man page changes ok jmc@

Revision 1.33 / (download) - annotate - [select for diffs], Tue Dec 24 13:00:59 2013 UTC (10 years, 4 months ago) by jca
Branch: MAIN
CVS Tags: OPENBSD_5_5_BASE, OPENBSD_5_5
Changes since 1.32: +12 -1 lines
Diff to previous 1.32 (colored)

Add support for SSL/TLS server certificate validation, enabled by
default.  See the documentation for the `-S' switch.  This also allows
setting the preferred ciphers for the communication.  Documentation bits
ok'ed by jmc@, ok beck@ sthen@.

Revision 1.32 / (download) - annotate - [select for diffs], Mon Apr 30 13:41:26 2012 UTC (12 years ago) by haesbaert
Branch: MAIN
CVS Tags: OPENBSD_5_4_BASE, OPENBSD_5_4, OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2
Changes since 1.31: +2 -1 lines
Diff to previous 1.31 (colored)

Add a -s flag to ftp(1) to let the user specify the source IP address
of the connection. This is useful for testing ftp(1) over VPN tunnels.

This -s flag is present in the other BSDs, including OS X.

All work was done by Lawrence Teo, thanks (-:.

ok myself mikeb

Revision 1.31 / (download) - annotate - [select for diffs], Fri Jul 2 22:01:10 2010 UTC (13 years, 10 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_1_BASE, OPENBSD_5_1, OPENBSD_5_0_BASE, OPENBSD_5_0, OPENBSD_4_9_BASE, OPENBSD_4_9, OPENBSD_4_8_BASE, OPENBSD_4_8
Changes since 1.30: +9 -9 lines
Diff to previous 1.30 (colored)

#ifndef SMALL a few more things to save space on the ramdisks

Revision 1.30 / (download) - annotate - [select for diffs], Fri Apr 30 19:29:01 2010 UTC (14 years ago) by jsg
Branch: MAIN
Changes since 1.29: +3 -1 lines
Diff to previous 1.29 (colored)

shuffle some things around to deal with incomplete types
gcc4 gets upset about.
based on suggestions from miod@, ok millert@

Revision 1.29 / (download) - annotate - [select for diffs], Tue May 5 19:35:30 2009 UTC (15 years ago) by martynas
Branch: MAIN
CVS Tags: OPENBSD_4_7_BASE, OPENBSD_4_7, OPENBSD_4_6_BASE, OPENBSD_4_6
Changes since 1.28: +4 -1 lines
Diff to previous 1.28 (colored)

make it clean removing the ifdef SMALL maze.  separate cmds and
small stuff.  make it a fetcher.  shrinks quite a bit
agreed by millert@, krw@
ok theo, sthen@

Revision 1.28 / (download) - annotate - [select for diffs], Mon Apr 27 22:51:51 2009 UTC (15 years ago) by martynas
Branch: MAIN
Changes since 1.27: +3 -1 lines
Diff to previous 1.27 (colored)

remove uploading and macros support from install media;  to save
some space
discussed with theo, todd@, millert@
tested and looked over by sthen@

Revision 1.27 / (download) - annotate - [select for diffs], Tue Jul 8 21:07:57 2008 UTC (15 years, 10 months ago) by martynas
Branch: MAIN
CVS Tags: OPENBSD_4_5_BASE, OPENBSD_4_5, OPENBSD_4_4_BASE, OPENBSD_4_4
Changes since 1.26: +3 -1 lines
Diff to previous 1.26 (colored)

- add support for recursive transfers (but not for floppies), e.g.
'mget -cr 4.*' would recursively fetch (-r), and resume the previous
transfers (-c) of 4.X release directories
uses local matching (fnmatch), but only for recursive transfers.
current behavior is not changed in any way.
- while here, ifndef SMALL debugging stuff, this saves some space,
for floppies
- some debugging code was enabled for non-debugging mode, checks
assume debug is set to zero, but it's not initially set
- all "Confirm with" prompts are forced, remove redundant argument
- fix usage: -C and -c are not available for SMALL

discussed a year ago w/ pyr@
looks good to millert@
previous version looked good to pyr@
man page tweaks & ok jmc@

Revision 1.26 / (download) - annotate - [select for diffs], Wed Jun 25 21:15:19 2008 UTC (15 years, 10 months ago) by martynas
Branch: MAIN
Changes since 1.25: +2 -2 lines
Diff to previous 1.25 (colored)

in resume mode, pass -c to mget when {dir,file}hasglob, so that i'm
able to continue multiple transfers with -C;  ok millert@
while here fix some comments (!SMALL vs. SMALL stuff), and add
missing

Revision 1.25 / (download) - annotate - [select for diffs], Mon Nov 26 12:39:00 2007 UTC (16 years, 5 months ago) by martynas
Branch: MAIN
CVS Tags: OPENBSD_4_3_BASE, OPENBSD_4_3
Changes since 1.24: +2 -1 lines
Diff to previous 1.24 (colored)

implement -C for continuing ftp, http(s), and file transfers
ok millert@, pyr@

Revision 1.24 / (download) - annotate - [select for diffs], Wed Jun 13 13:52:26 2007 UTC (16 years, 11 months ago) by pyr
Branch: MAIN
CVS Tags: OPENBSD_4_2_BASE, OPENBSD_4_2
Changes since 1.23: +2 -1 lines
Diff to previous 1.23 (colored)

Enable cookie support. This allows parsing of netscape-like cookie jars
and sending of appropriate cookies. No retrieval of new cookies is done.
Careful review and lots of input by millert and ray.

ok millert@, ray@

Revision 1.23 / (download) - annotate - [select for diffs], Tue May 16 16:20:42 2006 UTC (18 years ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_4_1_BASE, OPENBSD_4_1, OPENBSD_4_0_BASE, OPENBSD_4_0
Changes since 1.22: +5 -1 lines
Diff to previous 1.22 (colored)

https URL support; rototilled by a few people including me; originally
from Rainer_Giedat@genua.de

Revision 1.22 / (download) - annotate - [select for diffs], Tue Jun 3 02:56:08 2003 UTC (20 years, 11 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_9_BASE, OPENBSD_3_9, OPENBSD_3_8_BASE, OPENBSD_3_8, OPENBSD_3_7_BASE, OPENBSD_3_7, OPENBSD_3_6_BASE, OPENBSD_3_6, OPENBSD_3_5_BASE, OPENBSD_3_5, OPENBSD_3_4_BASE, OPENBSD_3_4
Changes since 1.21: +2 -6 lines
Diff to previous 1.21 (colored)

Remove the advertising clause in the UCB license which Berkeley
rescinded 22 July 1999.  Proofed by myself and Theo.

Revision 1.21 / (download) - annotate - [select for diffs], Sat Feb 16 21:27:46 2002 UTC (22 years, 3 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_3_BASE, OPENBSD_3_3, OPENBSD_3_2_BASE, OPENBSD_3_2, OPENBSD_3_1_BASE, OPENBSD_3_1
Changes since 1.20: +2 -2 lines
Diff to previous 1.20 (colored)

Part one of userland __P removal.  Done with a simple regexp with some minor hand editing to make comments line up correctly.  Another pass is forthcoming that handles the cases that could not be done automatically.

Revision 1.20 / (download) - annotate - [select for diffs], Sat Oct 27 10:31:27 2001 UTC (22 years, 6 months ago) by heko
Branch: MAIN
Changes since 1.19: +2 -1 lines
Diff to previous 1.19 (colored)

Send User-Agent: OpenBSD ftp to WWW servers and proxies.

``User agents SHOULD include this field with requests'', from RFC 2616:
http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.43

Patch from and problem reported by Diana Eichert <deicher@sandia.gov>
when using proxies with specific browser requirements. Tested by me with
the ports mirror-maker makefile / fetch-all script (with and without a
proxy).

ok millert@

Revision 1.19 / (download) - annotate - [select for diffs], Wed Jun 21 19:22:54 2000 UTC (23 years, 11 months ago) by itojun
Branch: MAIN
CVS Tags: OPENBSD_3_0_BASE, OPENBSD_3_0, OPENBSD_2_9_BASE, OPENBSD_2_9, OPENBSD_2_8_BASE, OPENBSD_2_8
Changes since 1.18: +3 -1 lines
Diff to previous 1.18 (colored)

add epsv4 command, which turns off epsv on ipv4 (off by dfeault)
automagicaslly disable epsv on ipv4, if epsv fails for single connection.
merge from netbsd-current.

req from fgs.

Revision 1.18 / (download) - annotate - [select for diffs], Wed Dec 8 12:57:06 1999 UTC (24 years, 5 months ago) by itojun
Branch: MAIN
CVS Tags: OPENBSD_2_7_BASE, OPENBSD_2_7
Changes since 1.17: +35 -6 lines
Diff to previous 1.17 (colored)

ftp(1) from KAME, should be good for testing.

Revision 1.17 / (download) - annotate - [select for diffs], Wed Dec 17 16:03:04 1997 UTC (26 years, 5 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_6_BASE, OPENBSD_2_6, OPENBSD_2_5_BASE, OPENBSD_2_5, OPENBSD_2_4_BASE, OPENBSD_2_4, OPENBSD_2_3_BASE, OPENBSD_2_3
Changes since 1.16: +2 -1 lines
Diff to previous 1.16 (colored)

By default, use passive mode and fall back to active as needed.
The user can specify active only with the -A flag, or use the
new FTPMODE envariable.

Revision 1.16 / (download) - annotate - [select for diffs], Thu Oct 2 04:22:01 1997 UTC (26 years, 7 months ago) by imp
Branch: MAIN
CVS Tags: OPENBSD_2_2_BASE, OPENBSD_2_2
Changes since 1.15: +2 -1 lines
Diff to previous 1.15 (colored)

Add prototype for fclose in socks case so we compile -DSOCKS

Revision 1.15 / (download) - annotate - [select for diffs], Mon Sep 22 05:14:11 1997 UTC (26 years, 8 months ago) by millert
Branch: MAIN
Changes since 1.14: +5 -1 lines
Diff to previous 1.14 (colored)

socks5 support

Revision 1.14 / (download) - annotate - [select for diffs], Thu Sep 4 04:37:16 1997 UTC (26 years, 8 months ago) by millert
Branch: MAIN
Changes since 1.13: +17 -6 lines
Diff to previous 1.13 (colored)

Updtaes from NetBSD (lukem)
    bugs fixed:
      * don't interpret '-' or '|' when a local filename is determined from
        the remote name (i.e, in mget, and in get with only one argument).
        This is implemented using an extra argument to recvrequest().
        Fixes a major security hole.
      * clean up memory leak when using globulize()
      * clean up a couple of comments
      * fix wording in TNF copyright

    features added:
      * support for TIS fwtk gate-ftp servers:
        * read defaults from $FTPSERVER && $FTPSERVERPORT
        * start in gate-ftp mode if invoked as 'gate-ftp'
        * toggle or set with 'gate [host [port]]'

Other changes:
    * use symbolic flags in access(2)
    * Use USHRT_MAX, not 0xffff

Revision 1.13 / (download) - annotate - [select for diffs], Fri Jul 25 21:56:21 1997 UTC (26 years, 10 months ago) by millert
Branch: MAIN
Changes since 1.12: +7 -7 lines
Diff to previous 1.12 (colored)

Updates from NetBSD (lukem) include -Wall cleanup.
More -W* cleanup and in_port_t usage by me.

Revision 1.12 / (download) - annotate - [select for diffs], Wed Apr 23 20:33:16 1997 UTC (27 years, 1 month ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_1_BASE, OPENBSD_2_1
Changes since 1.11: +3 -1 lines
Diff to previous 1.11 (colored)

allow "ftp -aV ftp://host/foo.tar.gz | tar xvfpz -" to work

Revision 1.11 / (download) - annotate - [select for diffs], Wed Apr 16 05:02:57 1997 UTC (27 years, 1 month ago) by millert
Branch: MAIN
Changes since 1.10: +3 -3 lines
Diff to previous 1.10 (colored)

Sync with NetBSD (lukem):
 * differentiate between being connected, and being logged in
 * cleanup some text messages
 * support username & password ftp URLs (ftp://user:pass@host/) in non-proxy
   situations; assume proxy supports it for proxy situations.
 * cd to / before performing any autofetch transfers

Revision 1.10 / (download) - annotate - [select for diffs], Fri Mar 21 20:59:30 1997 UTC (27 years, 2 months ago) by millert
Branch: MAIN
Changes since 1.9: +8 -8 lines
Diff to previous 1.9 (colored)

Add in recent NetBSD changes we didn't already have:
    Always compile complete.c but ifdef out the bits if -DSMALL (christos)
    reset interactive mode correctly in auto_fetch() mget mode (lukem)

Revision 1.9 / (download) - annotate - [select for diffs], Fri Mar 14 04:32:16 1997 UTC (27 years, 2 months ago) by millert
Branch: MAIN
Changes since 1.8: +3 -3 lines
Diff to previous 1.8 (colored)

Sync with NetBSD and fix "get foo.txt /dev/tty" wrt progress meter
and setting times.

Revision 1.8 / (download) - annotate - [select for diffs], Tue Feb 18 18:04:30 1997 UTC (27 years, 3 months ago) by kstailey
Branch: MAIN
Changes since 1.7: +2 -1 lines
Diff to previous 1.7 (colored)

add -e command line option to suppress use of editline(3)\
this is useful for Emacs ange-ftp

Revision 1.7 / (download) - annotate - [select for diffs], Mon Feb 3 01:05:41 1997 UTC (27 years, 3 months ago) by millert
Branch: MAIN
Changes since 1.6: +3 -1 lines
Diff to previous 1.6 (colored)

Add back ``-r'' option and fix strncpy() usage and other nits because
I'm anal.  Closer to KNF now.

Revision 1.6 / (download) - annotate - [select for diffs], Mon Feb 3 01:02:40 1997 UTC (27 years, 3 months ago) by millert
Branch: MAIN
Changes since 1.5: +45 -13 lines
Diff to previous 1.5 (colored)

Sync with NetBSD

Revision 1.5 / (download) - annotate - [select for diffs], Sat Nov 9 19:59:35 1996 UTC (27 years, 6 months ago) by kstailey
Branch: MAIN
Changes since 1.4: +2 -1 lines
Diff to previous 1.4 (colored)

optional size argument to hash command

Revision 1.4 / (download) - annotate - [select for diffs], Thu Oct 31 14:36:56 1996 UTC (27 years, 6 months ago) by mickey
Branch: MAIN
Changes since 1.3: +2 -1 lines
Diff to previous 1.3 (colored)

add -r<seconds> option to retry connection.
dunno how to do optional argument.

Revision 1.3 / (download) - annotate - [select for diffs], Wed Jun 26 05:33:37 1996 UTC (27 years, 10 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_0_BASE, OPENBSD_2_0
Changes since 1.2: +1 -0 lines
Diff to previous 1.2 (colored)

rcsid

Revision 1.2 / (download) - annotate - [select for diffs], Mon Jun 3 15:55:47 1996 UTC (27 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.1: +1 -0 lines
Diff to previous 1.1 (colored)

add support for automatic anonftp fetches of host:path
add support for -p portnum
might need todo: -N for silence, better exit status for failures

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Wed Oct 18 08:45:17 1995 UTC (28 years, 7 months ago) by deraadt
CVS Tags: netbsd_1_1
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)

initial import of NetBSD tree

Revision 1.1 / (download) - annotate - [select for diffs], Wed Oct 18 08:45:17 1995 UTC (28 years, 7 months ago) by deraadt
Branch: MAIN

Initial revision

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.