Skip to content
Snippets Groups Projects
Commit cfff544d authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

only enable NTLM if HTTP and NTLM is not disabled, and if NTLM is disabled

we define an empty macro for the ntlm cleanup function
parent 599d9642
No related branches found
No related tags found
No related merge requests found
......@@ -39,8 +39,7 @@ CURLntlm Curl_input_ntlm(struct connectdata *conn, bool proxy, char *header);
CURLcode Curl_output_ntlm(struct connectdata *conn, bool proxy);
void Curl_ntlm_cleanup(struct connectdata *conn);
#if (!defined(USE_SSLEAY) && !defined(USE_WINDOWS_SSPI)) || \
defined(CURL_DISABLE_HTTP)
#ifndef USE_NTLM
#define Curl_ntlm_cleanup(x)
#endif
......
......@@ -301,9 +301,11 @@ typedef int curl_socket_t;
#define USE_SSL /* Either OpenSSL || GnuTLS */
#endif
#if !defined(CURL_DISABLE_HTTP) && !defined(CURL_DISABLE_NTLM)
#if defined(USE_SSLEAY) || defined(USE_WINDOWS_SSPI)
#define USE_NTLM
#endif
#endif
#ifdef CURLDEBUG
#define DEBUGF(x) x
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment