version 1.14 | | version 1.15 |
---|
| | |
/* | | /* |
* static char *rcsid_main_c = | | * static char *rcsid_main_c = |
* "$Id: main.c,v 1.14 2000/11/23 07:32:47 cvs Exp $"; | | * "$Id: main.c,v 1.15 2000/11/26 01:54:40 cvs Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
The author can be reached via e-mail to mwedel@scruz.net | | The author can be reached via e-mail to mwedel@scruz.net |
*/ | | */ |
| | |
#ifdef HAVE_CRYPT_H | | |
#include <crypt.h> | | |
#endif | | |
| | |
#include <version.h> | | #include <version.h> |
#include <global.h> | | #include <global.h> |
#include <object.h> | | #include <object.h> |
| | |
| | #ifdef HAVE_DES_H |
| | #include <des.h> |
| | #else |
| | # ifdef HAVE_CRYPT_H |
| | # include <crypt.h> |
| | # endif |
| | #endif |
| | |
#ifndef __CEXTRACT__ | | #ifndef __CEXTRACT__ |
#include <sproto.h> | | #include <sproto.h> |
#endif | | #endif |
| | |
else | | else |
s[0]= salt[0], | | s[0]= salt[0], |
s[1]= salt[1]; | | s[1]= salt[1]; |
| | #ifdef HAVE_DES_H |
| | return (char*)des_crypt(str,s); |
| | #else |
return (char*)crypt(str,s); | | return (char*)crypt(str,s); |
| | #endif |
} | | } |
| | |
int check_password(char *typed,char *crypted) { | | int check_password(char *typed,char *crypted) { |