]> git.ipfire.org Git - thirdparty/squid.git/blame - src/ftp/Parsing.h
Bug 5428: Warn if pkg-config is not found (#1902)
[thirdparty/squid.git] / src / ftp / Parsing.h
CommitLineData
bbc27441 1/*
b8ae064d 2 * Copyright (C) 1996-2023 The Squid Software Foundation and contributors
bbc27441
AJ
3 *
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.
7 */
8
ff9d9458
FC
9#ifndef SQUID_SRC_FTP_PARSING_H
10#define SQUID_SRC_FTP_PARSING_H
92ae4c86
AR
11
12#include "ip/forward.h"
13
27c841f6
AR
14namespace Ftp
15{
92ae4c86 16
5517260a 17/// parses and validates "A1,A2,A3,A4,P1,P2" IP,port sequence
92ae4c86 18bool ParseIpPort(const char *buf, const char *forceIp, Ip::Address &addr);
5517260a
AR
19
20/// parses and validates EPRT "<d><net-prt><d><net-addr><d><tcp-port><d>"
21/// proto,IP,port sequence
92ae4c86 22bool ParseProtoIpPort(const char *buf, Ip::Address &addr);
5517260a
AR
23
24/// parses an FTP-quoted quote-escaped path
92ae4c86
AR
25const char *UnescapeDoubleQuoted(const char *quotedPath);
26
27} // namespace Ftp
28
ff9d9458 29#endif /* SQUID_SRC_FTP_PARSING_H */
f53969cc 30