summaryrefslogtreecommitdiffstats
path: root/usr.bin/ftp/extern.h
diff options
context:
space:
mode:
authorrobert <robert@openbsd.org>2021-02-02 12:58:42 +0000
committerrobert <robert@openbsd.org>2021-02-02 12:58:42 +0000
commit49dd5d56f6defd80a07dbcd0295b36eb2c07ab52 (patch)
treeb9152d61a1fe8adbc9ec9c0afb7c0fe54fbc4464 /usr.bin/ftp/extern.h
parentFix use-after-free in dev_abort() (diff)
downloadwireguard-openbsd-49dd5d56f6defd80a07dbcd0295b36eb2c07ab52.tar.xz
wireguard-openbsd-49dd5d56f6defd80a07dbcd0295b36eb2c07ab52.zip
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@
Diffstat (limited to 'usr.bin/ftp/extern.h')
-rw-r--r--usr.bin/ftp/extern.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/ftp/extern.h b/usr.bin/ftp/extern.h
index 53908981b4e..85136eff7fa 100644
--- a/usr.bin/ftp/extern.h
+++ b/usr.bin/ftp/extern.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: extern.h,v 1.51 2019/05/16 12:44:17 florian Exp $ */
+/* $OpenBSD: extern.h,v 1.52 2021/02/02 12:58:42 robert Exp $ */
/* $NetBSD: extern.h,v 1.17 1997/08/18 10:20:19 lukem Exp $ */
/*
@@ -125,6 +125,7 @@ void parse_list(char **, char *);
char *remglob2(char **, int, char **, FILE **ftemp, char *type);
int ruserpass(const char *, char **, char **, char **);
void sendrequest(const char *, const char *, const char *, int);
+ssize_t http_time(time_t, char *, size_t);
#endif /* !SMALL */
extern jmp_buf abortprox;
@@ -144,6 +145,7 @@ extern char *action;
#ifndef SMALL
extern int NCMDS;
+extern int server_timestamps;
#endif /* !SMALL */
extern char *__progname; /* from crt0.o */