Fixed premature check of HAVELIBCRYPTO
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@1267 e3e1d417-86f3-4887-817a-d78f3d33393fpull/27/merge
parent
f2ab91d349
commit
970f0c687c
|
@ -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 )
|
||||
{
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue