Show
Ignore:
Timestamp:
15/08/08 10:42:02 (5 months ago)
Author:
ono
Message:

Use DES_crypt as a replacement for Posix crypt on Windows.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/storage/authreg_mysql.c

    r647 r670  
    2525#include <unistd.h> 
    2626 
     27/* Windows does not has the crypt function, let's take DES_crypt from OpenSSL instead */ 
     28#if defined(HAVE_OPENSSL_CRYPTO_H) && defined(_WIN32) 
     29#include <openssl/des.h> 
     30#define crypt DES_crypt 
     31#endif 
     32 
    2733#define MYSQL_LU  1024   /* maximum length of username - should correspond to field length */ 
    2834#define MYSQL_LR   256   /* maximum length of realm - should correspond to field length */