PNG  IHDR* pHYs+ IDATx]n#; cdLb Ǚ[at¤_:uP}>!Usă cag޿ ֵNu`ݼTâabO7uL&y^wFٝA"l[|ŲHLN밪4*sG3|Dv}?+y߉{OuOAt4Jj.u]Gz*҉sP'VQKbA1u\`& Af;HWj hsO;ogTu uj7S3/QzUr&wS`M$X_L7r2;aE+ώ%vikDA:dR+%KzƉo>eOth$z%: :{WwaQ:wz%4foɹE[9<]#ERINƻv溂E%P1i01 |Jvҗ&{b?9g=^wζXn/lK::90KwrюO\!ջ3uzuGv^;騢wq<Iatv09:tt~hEG`v;3@MNZD.1]L:{ծI3`L(÷ba")Y.iljCɄae#I"1 `3*Bdz>j<fU40⨬%O$3cGt]j%Fߠ_twJ;ABU8vP3uEԑwQ V:h%))LfraqX-ۿX]v-\9I gl8tzX ]ecm)-cgʒ#Uw=Wlێn(0hPP/ӨtQ“&J35 $=]r1{tLuǮ*i0_;NƝ8;-vݏr8+U-kruȕYr0RnC]*ެ(M:]gE;{]tg(#ZJ9y>utRDRMdr9㪩̞zֹb<ģ&wzJM"iI( .ꮅX)Qw:9,i좜\Ԛi7&N0:asϓc];=ΗOӣ APqz93 y $)A*kVHZwBƺnWNaby>XMN*45~ղM6Nvm;A=jֲ.~1}(9`KJ/V F9[=`~[;sRuk]rєT!)iQO)Y$V ی ۤmzWz5IM Zb )ˆC`6 rRa}qNmUfDsWuˤV{ Pݝ'=Kֳbg,UҘVz2ﴻnjNgBb{? ߮tcsͻQuxVCIY۠:(V뺕 ٥2;t`@Fo{Z9`;]wMzU~%UA蛚dI vGq\r82iu +St`cR.6U/M9IENDB`/* * ProFTPD - FTP server daemon * Copyright (c) 2006-2014 The ProFTPD Project team * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA. * * As a special exemption, The ProFTPD Project team and other respective * copyright holders give permission to link this program with OpenSSL, and * distribute the resulting executable, without including the source code for * OpenSSL in the source distribution. */ /* UTF8/charset encoding/decoding */ #ifndef PR_ENCODE_H #define PR_ENCODE_H /* Translates the `in' string into the local charset using the configured * encoding and returns the result. NULL is returned if there was an error. */ char *pr_decode_str(pool *p, const char *in, size_t inlen, size_t *outlen); /* Translates the `in' string from the local charset using the configured * encoding and returns the result. NULL is returned if there was an error. */ char *pr_encode_str(pool *p, const char *in, size_t inlen, size_t *outlen); /* Disables runtime use of encoding (assuming NLS is supported). */ void pr_encode_disable_encoding(void); /* Enables runtime use of encoding using the specified character set (assuming * NLS is supported). Zero is returned on success, -1 if there was an * issue either with the provided character set, or with the handling of * that set. */ int pr_encode_enable_encoding(const char *encoding); unsigned long pr_encode_get_policy(void); int pr_encode_set_policy(unsigned long policy); /* Determines whether the Encode API will disconnect the client if the * charset conversion fails, i.e. the client is using an illegal/unsupported * encoding. */ #define PR_ENCODE_POLICY_FL_REQUIRE_VALID_ENCODING 0x001 /* Returns string describing the current charset being used. */ const char *pr_encode_get_charset(void); /* Returns string describing the local charset (as determined by environment * variables and such). */ const char *pr_encode_get_local_charset(void); /* Returns string describing the current character set (or UTF8) encoding * being used. NULL is returned if no encoding is currently in effect. */ const char *pr_encode_get_encoding(void); /* Convenience function which returns TRUE if the given encoding is UTF8, * FALSE otherwise. (There are multiple different strings for denoting * UTF8, and callers should not need to have to know about those different * formulations.) * * Note that -1 will be returned if there was an error (e.g. NULL arguments). */ int pr_encode_is_utf8(const char *codeset); /* Convenience function which returns TRUE if the current encoding * (i.e. from pr_encode_get_encoding()) supports the Telnet IAC (0xFF) * character, FALSE otherwise. * * Some character sets (e.g. CP1251 for Cyrillic character sets) use that * value for a character. This breaks RFC959 compliance, unfortunately. */ int pr_encode_supports_telnet_iac(void); /* Change the local charset AND encoding being used. */ int pr_encode_set_charset_encoding(const char *charset, const char *encoding); /* Internal use only. */ int encode_init(void); int encode_free(void); #endif /* PR_ENCODE_H */