version 1.37 | | version 1.38 |
---|
| | |
/* | | /* |
* static char *rcsid_main_c = | | * static char *rcsid_main_c = |
* "$Id: main.c,v 1.37 2001/04/06 00:40:49 michtoen Exp $"; | | * "$Id: main.c,v 1.38 2001/04/06 19:07:16 michtoen Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
} | | } |
| | |
char *crypt_string(char *str, char *salt) { | | char *crypt_string(char *str, char *salt) { |
#ifndef WIN32 // ***win32 crypt_string:: We don't need this anymore since server/client fork | | #ifndef WIN32 /* ***win32 crypt_string:: We don't need this anymore since server/client fork */ |
static char *c= | | static char *c= |
"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789./"; | | "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789./"; |
char s[2]; | | char s[2]; |
| | |
#else | | #else |
return (char*)crypt(str,s); | | return (char*)crypt(str,s); |
#endif | | #endif |
#endif // win32 | | #endif /* win32 */ |
return(str); | | return(str); |
} | | } |
| | |
| | |
int main(int argc,char **argv) | | int main(int argc,char **argv) |
{ | | { |
| | |
#ifdef WIN32 | | #ifdef WIN32 /* ---win32 this sets the win32 from 0d0a to 0a handling */ |
_fmode = _O_BINARY ; | | _fmode = _O_BINARY ; |
#endif | | #endif |
| | |