summaryrefslogtreecommitdiffstats
path: root/libexec/ftpd/extern.h
diff options
context:
space:
mode:
authorpst <pst@FreeBSD.org>1996-08-04 22:40:35 +0000
committerpst <pst@FreeBSD.org>1996-08-04 22:40:35 +0000
commit3782e8c3140bc2d6c5eda6eb914031cc34a10aac (patch)
treebde4d9e34ad3fdece4e0e3d55f3c74a42b3711fa /libexec/ftpd/extern.h
parent41c12ade3ba2741d066abbbff26fc6a274335b21 (diff)
downloadFreeBSD-src-3782e8c3140bc2d6c5eda6eb914031cc34a10aac.zip
FreeBSD-src-3782e8c3140bc2d6c5eda6eb914031cc34a10aac.tar.gz
If PARANOID is set, do not allow PORT commands to remote ports less than 1024
or addresses other than the requestor's address. This violates the FTP protocol (hmm...as I write this, I'm going to change this to a run-time var.) Require login before PASV and RNTO commands. Close unused PASV ports so they don't hang around forever. Do not allow file overwrites via rename or STOR when anonymous (suspenders). Clean up buffer utilization. My code, but heavily inspired by Hobbit's changes to wu-ftpd as pointed out by Mike Prettejohn and Kit Knox.
Diffstat (limited to 'libexec/ftpd/extern.h')
-rw-r--r--libexec/ftpd/extern.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libexec/ftpd/extern.h b/libexec/ftpd/extern.h
index fe784c8..9805cab 100644
--- a/libexec/ftpd/extern.h
+++ b/libexec/ftpd/extern.h
@@ -65,3 +65,7 @@ void store __P((char *, char *, int));
void upper __P((char *));
void user __P((char *));
void yyerror __P((char *));
+int yyparse __P((void));
+#if defined(SKEY) && defined(_PWD_H_) /* XXX evil */
+char *skey_challenge __P((char *, struct passwd *, int));
+#endif
OpenPOWER on IntegriCloud