]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/ftp/Elements.h
2 * Copyright (C) 1996-2017 The Squid Software Foundation and contributors
4 * Squid software is distributed under GPLv2+ license and includes
5 * contributions from numerous individuals and organizations.
6 * Please see the COPYING and CONTRIBUTORS files for details.
9 #ifndef SQUID_FTP_ELEMENTS_H
10 #define SQUID_FTP_ELEMENTS_H
12 #include "http/StatusCode.h"
13 #include "sbuf/forward.h"
19 class ProtocolVersion
;
25 /// Protocol version to use in HttpMsg structures wrapping FTP messages.
26 AnyP::ProtocolVersion
ProtocolVersion();
28 /// Create an internal HttpReply structure to house FTP control response info.
29 HttpReply
*HttpReplyWrapper(const int ftpStatus
, const char *ftpReason
, const Http::StatusCode httpStatus
, const int64_t clen
);
31 /* FTP Commands used by Squid. ALLCAPS case. Safe for static initializaton. */
32 const SBuf
&cmdAppe();
33 const SBuf
&cmdAuth();
35 const SBuf
&cmdDele();
36 const SBuf
&cmdEprt();
37 const SBuf
&cmdEpsv();
38 const SBuf
&cmdList();
40 const SBuf
&cmdMlsd();
41 const SBuf
&cmdMlst();
42 const SBuf
&cmdNlst();
43 const SBuf
&cmdRetr();
45 const SBuf
&cmdRnfr();
46 const SBuf
&cmdRnto();
47 const SBuf
&cmdSmnt();
48 const SBuf
&cmdStat();
49 const SBuf
&cmdStor();
50 const SBuf
&cmdStou();
51 const SBuf
&cmdUser();
55 #endif /* SQUID_FTP_ELEMENTS_H */