diff options
author | Yang Tse <yangsita@gmail.com> | 2008-08-17 01:57:10 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2008-08-17 01:57:10 +0000 |
commit | 3e61c90dbec53e06fb30b0dc706768b675e665f4 (patch) | |
tree | af41f57942b7991d903665ced5aa85b3ef6295e5 /lib/http_ntlm.c | |
parent | ac18b471d253f8d5c69d1044a59753f32bcd663f (diff) |
Adjust usage of conditional definition of USE_OPENSSL
Diffstat (limited to 'lib/http_ntlm.c')
-rw-r--r-- | lib/http_ntlm.c | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/lib/http_ntlm.c b/lib/http_ntlm.c index ebc8e73f2..8db10301d 100644 --- a/lib/http_ntlm.c +++ b/lib/http_ntlm.c @@ -70,11 +70,23 @@ #ifndef USE_WINDOWS_SSPI -#include <openssl/des.h> -#include <openssl/md4.h> -#include <openssl/md5.h> -#include <openssl/ssl.h> -#include <openssl/rand.h> +# ifdef USE_SSLEAY +# ifdef USE_OPENSSL +# include <openssl/des.h> +# include <openssl/md4.h> +# include <openssl/md5.h> +# include <openssl/ssl.h> +# include <openssl/rand.h> +# else +# include <des.h> +# include <md4.h> +# include <md5.h> +# include <ssl.h> +# include <rand.h> +# endif +# else +# error "Can't compile NTLM support without OpenSSL." +# endif #if OPENSSL_VERSION_NUMBER < 0x00907001L #define DES_key_schedule des_key_schedule |