]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/mime_header.h
2 * Copyright (C) 1996-2019 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 /* DEBUG: section 25 MiME Header Parsing */
11 #ifndef SQUID_MIME_HEADER_H_
12 #define SQUID_MIME_HEADER_H_
15 * Scan for the end of mime header block.
17 * Which is one of the following octet patterns:
22 * if mime header block is empty:
26 * Also detects whether a obf-fold pattern exists within the mime block
29 * \param containsObsFold will be set to true if obs-fold pattern is found.
31 size_t headersEnd(const char *, size_t, bool &containsObsFold
);
34 headersEnd(const SBuf
&buf
, bool &containsObsFold
)
36 return headersEnd(buf
.rawContent(), buf
.length(), containsObsFold
);
39 /// \deprecated caller needs to be fixed to handle obs-fold
41 headersEnd(const char *buf
, size_t sz
)
44 return headersEnd(buf
, sz
, ignored
);
47 #endif /* SQUID_MIME_HEADER_H_ */