--- parser3/src/targets/apache/pa_httpd.h 2010/11/14 22:44:23 1.2 +++ parser3/src/targets/apache/pa_httpd.h 2010/11/23 00:00:33 1.4 @@ -8,7 +8,7 @@ #ifndef PA_HTTPD_H #define PA_HTTPD_H -static const char * const IDENT_HTTPD_H="$Date: 2010/11/14 22:44:23 $"; +static const char * const IDENT_HTTPD_H="$Date: 2010/11/23 00:00:33 $"; #ifdef __cplusplus extern "C" { @@ -36,16 +36,14 @@ typedef struct pa_request_rec_tag { char *filename; /* filename if found, otherwise NULL */ char *path_info; char *args; /* QUERY_ARGS, if any */ - int file_not_found; /* ST_MODE set to zero if no such file */ + int file_not_found; /* non-zero if no such file */ } pa_request_rec; /// apache parser module configuration [httpd.conf + .htaccess-es] typedef struct Parser_module_config_tag { const char* parser_config_filespec; ///< filespec of site's config file - int parser_status_allowed; } Parser_module_config; -const char* pa_version(); void pa_setup_module_cells(); void pa_destroy_module_cells(); int pa_parser_handler(pa_request_rec*, Parser_module_config*); @@ -59,14 +57,14 @@ int pa_parser_handler(pa_request_rec*, P #define PA_APLOG_ALERT 1 /* action must be taken immediately */ #define PA_APLOG_CRIT 2 /* critical conditions */ #define PA_APLOG_ERR 3 /* error conditions */ -#define PA_APLOG_WARNING 4 /* warning conditions */ +#define PA_APLOG_WARNING 4 /* warning conditions */ #define PA_APLOG_NOTICE 5 /* normal but significant condition */ #define PA_APLOG_INFO 6 /* informational */ #define PA_APLOG_DEBUG 7 /* debug-level messages */ -#define PA_APLOG_LEVELMASK 7 /* mask off the level value */ +#define PA_APLOG_LEVELMASK 7 /* mask off the level value */ -#define PA_APLOG_NOERRNO (PA_APLOG_LEVELMASK + 1) +#define PA_APLOG_NOERRNO (PA_APLOG_LEVELMASK + 1) #define PA_APLOG_MARK __FILE__,__LINE__ @@ -111,7 +109,7 @@ int pa_ap_rwrite(const void *buf, int nb // http_main.h -void pa_ap_hard_timeout(char *, pa_request_rec *); +void pa_ap_hard_timeout(const char *, pa_request_rec *); void pa_ap_reset_timeout(pa_request_rec *); void pa_ap_kill_timeout(pa_request_rec *); @@ -133,22 +131,6 @@ void pa_ap_add_common_vars(pa_request_re void (*pa_signal (int sig, void (*disp)(int)))(int); -// ap_md5.h - -#define PA_MD5_DIGESTSIZE 16 -typedef void PA_MD5_CTX; - -void pa_MD5Init(PA_MD5_CTX *context); -void pa_MD5Update(PA_MD5_CTX *context, const unsigned char *input, - unsigned int inputLen); -void pa_MD5Final(unsigned char digest[PA_MD5_DIGESTSIZE], - PA_MD5_CTX *context); -void pa_MD5Encode(const unsigned char *password, - const unsigned char *salt, - char *result, size_t nbytes); -void pa_to64(char *s, unsigned long v, int n); - - #ifdef __cplusplus } #endif