Fixed premature check of HAVELIBCRYPTO

git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@1267 e3e1d417-86f3-4887-817a-d78f3d33393f
pull/27/merge
stan 2005-01-31 12:07:38 +00:00
parent f2ab91d349
commit 970f0c687c
2 changed files with 5 additions and 2 deletions

View File

@ -21,7 +21,6 @@
#include <stdlib.h>
#include <time.h>
#include <ctype.h>
#include <openssl/md5.h>
#include "zm.h"
#include "zm_db.h"
@ -139,7 +138,7 @@ User *zmLoadUser( const char *username, const char *password )
// Function to validate an authentication string
User *zmLoadAuthUser( const char *auth, bool use_remote_addr )
{
#ifdef HAVE_LIBCRYPTO
#if HAVE_LIBCRYPTO
const char *remote_addr = "";
if ( use_remote_addr )
{

View File

@ -23,6 +23,10 @@
#ifndef ZM_USER_H
#define ZM_USER_H
#if HAVE_LIBCRYPTO
#include <openssl/md5.h>
#endif // HAVE_LIBCRYPTO
class User
{
public: