Code cleanups

This commit is contained in:
brenosilva 2012-01-02 20:21:29 +00:00
parent 5b82006fee
commit 8642120748
3 changed files with 4 additions and 4 deletions

View File

@ -121,9 +121,9 @@ int parse_boolean(const char *input) {
* \retval 0 On failure * \retval 0 On failure
* \retval string length On Success * \retval string length On Success
*/ */
int decode_base64_ext(char *plain_text, const char *input, int input_len) int decode_base64_ext(char *plain_text, const unsigned char *input, int input_len)
{ {
const char *encoded = input; const unsigned char *encoded = input;
int i = 0, j = 0, k = 0; int i = 0, j = 0, k = 0;
int ch = 0; int ch = 0;

View File

@ -81,7 +81,7 @@ char DSOLOCAL *log_escape_raw(apr_pool_t *mp, const unsigned char *text, unsigne
char DSOLOCAL *log_escape_nul(apr_pool_t *mp, const unsigned char *text, unsigned long int text_length); char DSOLOCAL *log_escape_nul(apr_pool_t *mp, const unsigned char *text, unsigned long int text_length);
int DSOLOCAL decode_base64_ext(char *plain_text, const char *input, int input_len); int DSOLOCAL decode_base64_ext(char *plain_text, const unsigned char *input, int input_len);
int DSOLOCAL convert_to_int(const char c); int DSOLOCAL convert_to_int(const char c);

View File

@ -736,7 +736,7 @@ static int msre_fn_base64DecodeExt_execute(apr_pool_t *mptmp, unsigned char *inp
{ {
*rval_len = input_len; *rval_len = input_len;
*rval = apr_palloc(mptmp, *rval_len); *rval = apr_palloc(mptmp, *rval_len);
*rval_len = decode_base64_ext(*rval, (const char *)input, input_len); *rval_len = decode_base64_ext(*rval, (const unsigned char *)input, input_len);
return *rval_len ? 1 : 0; return *rval_len ? 1 : 0;
} }