]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/ftp/Parsing.h
2 * Copyright (C) 1996-2015 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_PARSING_H
10 #define SQUID_FTP_PARSING_H
12 #include "ip/forward.h"
17 /// parses and validates "A1,A2,A3,A4,P1,P2" IP,port sequence
18 bool ParseIpPort(const char *buf
, const char *forceIp
, Ip::Address
&addr
);
20 /// parses and validates EPRT "<d><net-prt><d><net-addr><d><tcp-port><d>"
21 /// proto,IP,port sequence
22 bool ParseProtoIpPort(const char *buf
, Ip::Address
&addr
);
24 /// parses an FTP-quoted quote-escaped path
25 const char *UnescapeDoubleQuoted(const char *quotedPath
);
29 #endif /* SQUID_FTP_PARSING_H */