|
|
| version 1.75, 2015/06/01 00:02:18 | version 1.77, 2015/09/22 23:53:56 |
|---|---|
| Line 19 | Line 19 |
| #include "pa_random.h" | #include "pa_random.h" |
| #ifdef HAVE_CRYPT | #ifdef HAVE_CRYPT |
| extern "C" char *crypt(const char* , const char* ) throw(); | extern "C" char *crypt(const char* , const char* ); |
| #endif | #endif |
| volatile const char * IDENT_MATH_C="$Id$"; | volatile const char * IDENT_MATH_C="$Id$"; |
| Line 112 static void math2(Request& r, MethodPara | Line 112 static void math2(Request& r, MethodPara |
| MATH2(pow) | MATH2(pow) |
| inline bool is_salt_body_char(int c) { | inline bool is_salt_body_char(unsigned char c) { |
| return pa_isalnum(c) || c == '.' || c=='/'; | return pa_isalnum(c) || c == '.' || c=='/'; |
| } | } |
| static size_t calc_prefix_size(const char* salt) { | static size_t calc_prefix_size(const char* salt) { |
| if(strlen(salt)) { | if(strlen(salt)) { |
| if(!is_salt_body_char((unsigned char)salt[0])) { // $... {... | if(!is_salt_body_char((unsigned char)salt[0])) { // $... {... |