--- parser3/src/include/pa_common.h 2019/09/06 10:17:07 1.175 +++ parser3/src/include/pa_common.h 2019/11/22 22:21:44 1.178 @@ -8,7 +8,7 @@ #ifndef PA_COMMON_H #define PA_COMMON_H -#define IDENT_PA_COMMON_H "$Id: pa_common.h,v 1.175 2019/09/06 10:17:07 moko Exp $" +#define IDENT_PA_COMMON_H "$Id: pa_common.h,v 1.178 2019/11/22 22:21:44 moko Exp $" #include "pa_string.h" #include "pa_hash.h" @@ -39,8 +39,6 @@ class Request; #define HTTP_CONTENT_TYPE_MULTIPART_RELATED "multipart/related" #define HTTP_CONTENT_TYPE_MULTIPART_MIXED "multipart/mixed" -#define BASE64_STRICT_OPTION_NAME "strict" - const String content_disposition_filename_name(CONTENT_DISPOSITION_FILENAME_NAME); #define HASH_ORDER @@ -129,11 +127,7 @@ bool file_read_action_under_lock(const S WARNING: charset is used for http header case conversion, it's not a charset of input file! */ -char *file_read_text(Request_charsets& charsets, - const String& file_spec, - bool fail_on_read_problem=true, - HashStringValue* options=0, - bool transcode_result=true); +char *file_read_text(Request_charsets& charsets, const String& file_spec, bool fail_on_read_problem=true); char *file_load_text(Request& r, const String& file_spec, @@ -269,10 +263,6 @@ char *str_upper(const char *s, size_t he const char* hex_string(unsigned char* bytes, size_t size, bool upcase); extern const char* hex_digits; -void pa_base64_decode(const char *in, size_t in_size, char*& result, size_t& result_size, bool strict=false); -char* pa_base64_encode(const char *in, size_t in_size); -char* pa_base64_encode(const String& file_spec); - const char *pa_idna_encode(const char *in, Charset &source); const char *pa_idna_decode(const char *in, Charset &source);