]> granicus.if.org Git - curl/commitdiff
ntlm: move NTLM_NEEDS_NSS_INIT define into core NTLM header
authorJay Satiro <raysatiro@yahoo.com>
Fri, 22 Sep 2017 19:47:14 +0000 (15:47 -0400)
committerJay Satiro <raysatiro@yahoo.com>
Sat, 23 Sep 2017 17:58:14 +0000 (13:58 -0400)
.. and include the core NTLM header in all NTLM-related source files.

Follow up to 6f86022. Since then http_ntlm checks NTLM_NEEDS_NSS_INIT
but did not include vtls.h where it was defined.

Closes https://github.com/curl/curl/pull/1911

lib/curl_ntlm_core.h
lib/curl_ntlm_wb.c
lib/http_ntlm.c
lib/vauth/ntlm_sspi.c
lib/vtls/vtls.h

index 21d09b78e0702c1427a74f73995db876c1e75f15..07ef5deae9b1e4044dff88cf60e3fc36a62590af 100644 (file)
 
 #if defined(USE_NTLM)
 
+/* If NSS is the first available SSL backend (see order in curl_ntlm_core.c)
+   then it must be initialized to be used by NTLM. */
+#if !defined(USE_OPENSSL) && \
+    !defined(USE_GNUTLS_NETTLE) && \
+    !defined(USE_GNUTLS) && \
+    defined(USE_NSS)
+#define NTLM_NEEDS_NSS_INIT
+#endif
+
 #if !defined(USE_WINDOWS_SSPI) || defined(USE_WIN32_CRYPTO)
 
 #ifdef USE_OPENSSL
index ac0e12456232f1bc8e18038f0b7051ab40e384a2..03f47a3a52e384792ea98d9576e9a821e0b0d159 100644 (file)
@@ -48,6 +48,7 @@
 #include "sendf.h"
 #include "select.h"
 #include "vauth/ntlm.h"
+#include "curl_ntlm_core.h"
 #include "curl_ntlm_wb.h"
 #include "url.h"
 #include "strerror.h"
index 28e638e693ee4aee277951a3fb4af685d572d399..0f1edcf65dc38d1ec94231c65710ea3d8b042224 100644 (file)
@@ -37,6 +37,7 @@
 #include "sendf.h"
 #include "strcase.h"
 #include "http_ntlm.h"
+#include "curl_ntlm_core.h"
 #include "curl_ntlm_wb.h"
 #include "vauth/vauth.h"
 #include "url.h"
index f99325710b32ed79d5c89a27b805918740de4f4f..e748ce3b677f43dc38a7efc4a7de3413159c96cd 100644 (file)
@@ -29,6 +29,7 @@
 #include "vauth/vauth.h"
 #include "urldata.h"
 #include "curl_base64.h"
+#include "curl_ntlm_core.h"
 #include "warnless.h"
 #include "curl_multibyte.h"
 #include "sendf.h"
index b85b365e57813c5b1552b2d0f495f0e3f1376a19..f1a11ea58d73d51395d93d47239b2f22da07ee76 100644 (file)
@@ -124,15 +124,6 @@ CURLcode Curl_none_md5sum(unsigned char *input, size_t inputlen,
 #define ALPN_HTTP_1_1_LENGTH 8
 #define ALPN_HTTP_1_1 "http/1.1"
 
-/* If NTLM is the first available SSL backend (see order in curl_ntlm_core)
-   then it must be initialized to be used by NTLM. */
-#if !defined(USE_OPENSSL) && \
-    !defined(USE_GNUTLS_NETTLE) && \
-    !defined(USE_GNUTLS) && \
-    defined(USE_NSS)
-#define NTLM_NEEDS_NSS_INIT
-#endif
-
 /* set of helper macros for the backends to access the correct fields. For the
    proxy or for the remote host - to properly support HTTPS proxy */