Changeset 670

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.

Location:
trunk
Files:
2 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 */ 
  • trunk/win32/modules/authreg_mysql/authreg_mysql.vcproj

    r664 r670  
    6262                        <Tool 
    6363                                Name="VCLinkerTool" 
    64                                 AdditionalDependencies="libmysql.lib c2s.lib jabberd2.lib libexpat.lib" 
     64                                AdditionalDependencies="libmysql.lib c2s.lib jabberd2.lib libexpat.lib libeay32MT.lib" 
    6565                                OutputFile="../../bin/debug/modules/$(ProjectName).dll" 
    6666                                LinkIncremental="2" 
     
    140140                        <Tool 
    141141                                Name="VCLinkerTool" 
    142                                 AdditionalDependencies="libmysql.lib c2s.lib jabberd2.lib libexpat.lib" 
     142                                AdditionalDependencies="libmysql.lib c2s.lib jabberd2.lib libexpat.lib libeay32MT.lib" 
    143143                                OutputFile="../../bin/modules/$(ProjectName).dll" 
    144144                                LinkIncremental="1"