--- parser3/src/classes/math.C 2003/05/26 09:44:01 1.24.2.12.2.14 +++ parser3/src/classes/math.C 2004/02/11 15:33:12 1.38 @@ -1,14 +1,14 @@ /** @file Parser: @b math parser class. - Copyright(c) 2001-2003 ArtLebedev Group(http://www.artlebedev.com) + Copyright(c) 2001-2004 ArtLebedev Group(http://www.artlebedev.com) Author: Alexandr Petrosian (http://paf.design.ru) portions from gen_uuid.c, Copyright (C) 1996, 1997, 1998, 1999 Theodore Ts'o. */ -static const char* IDENT_MATH_C="$Date: 2003/05/26 09:44:01 $"; +static const char * const IDENT_MATH_C="$Date: 2004/02/11 15:33:12 $"; #include "pa_vmethod_frame.h" #include "pa_common.h" @@ -227,7 +227,7 @@ inline bool is_salt_body_char(int c) { return isalnum(c) || c == '.' || c=='/'; } static size_t calc_prefix_size(const char* salt) { - if(size_t salt_size=strlen(salt)) { + if(strlen(salt)) { if(!is_salt_body_char(salt[0])) { // $... {... const char* cur=salt+1; // skip while(is_salt_body_char(*cur++)) // ...$ ...} @@ -263,7 +263,7 @@ static void _crypt(Request& r, MethodPar if(strncmp(normal_salt, PA_MD5PW_ID, PA_MD5PW_IDLEN) == 0) { const size_t sample_size=120; char *sample_buf=new(PointerFreeGC) char[sample_size]; - PA_MD5Encode((const unsigned char *)password, + pa_MD5Encode((const unsigned char *)password, (const unsigned char *)normal_salt, sample_buf, sample_size); String sample(sample_buf); r.write_pass_lang(sample); @@ -294,7 +294,6 @@ static const char* hex_string(unsigned c static const char *hex=upcase?"0123456789ABCDEF":"0123456789abcdef"; - const char *format=upcase?"%02X":"%02x"; for(; src