From 970f0c687ccd7d62c3676dea0a1a00fd922988be Mon Sep 17 00:00:00 2001 From: stan Date: Mon, 31 Jan 2005 12:07:38 +0000 Subject: [PATCH] Fixed premature check of HAVELIBCRYPTO git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@1267 e3e1d417-86f3-4887-817a-d78f3d33393f --- src/zm_user.cpp | 3 +-- src/zm_user.h | 4 ++++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/zm_user.cpp b/src/zm_user.cpp index 5d3afa2cf..d29659fa0 100644 --- a/src/zm_user.cpp +++ b/src/zm_user.cpp @@ -21,7 +21,6 @@ #include #include #include -#include #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 ) { diff --git a/src/zm_user.h b/src/zm_user.h index 42c18941c..c8d871804 100644 --- a/src/zm_user.h +++ b/src/zm_user.h @@ -23,6 +23,10 @@ #ifndef ZM_USER_H #define ZM_USER_H +#if HAVE_LIBCRYPTO +#include +#endif // HAVE_LIBCRYPTO + class User { public: