21 RCSID(
"$Id: 0bef21d5c094f076a93308ac98486b76d6c3fa24 $")
23 #include <freeradius-devel/libradius.h>
35 static bool fr_crypt_init =
false;
36 static pthread_mutex_t fr_crypt_mutex;
41 # define PTHREAD_MUTEX_LOCK pthread_mutex_lock
42 # define PTHREAD_MUTEX_UNLOCK pthread_mutex_unlock
44 # define PTHREAD_MUTEX_LOCK(_x)
45 # define PTHREAD_MUTEX_UNLOCK(_x)
64 if (fr_crypt_init ==
false) {
72 passwd =
crypt(key, crypted);
80 cmp = strcmp(crypted, passwd);
int fr_crypt_check(char const *key, char const *crypted)
#define pthread_mutex_init(_x, _y)
#define PTHREAD_MUTEX_UNLOCK(_x)
char * crypt(UNUSED char *key, char *salt)
#define PTHREAD_MUTEX_LOCK(_x)