]> granicus.if.org Git - curl/commitdiff
pingpong: disable more when no pingpong enabled
authorDaniel Stenberg <daniel@haxx.se>
Sun, 5 May 2019 15:08:22 +0000 (17:08 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 13 May 2019 06:17:10 +0000 (08:17 +0200)
lib/vauth/cleartext.c
lib/vauth/oauth2.c

index 8f972e31cca8dffa800bdbd8eadbc948d5f00b70..6f452c16942242359c3d1ed538cfd9b911bc9fd2 100644 (file)
@@ -25,6 +25,9 @@
 
 #include "curl_setup.h"
 
+#if !defined(CURL_DISABLE_IMAP) || !defined(CURL_DISABLE_SMTP) ||       \
+  !defined(CURL_DISABLE_POP3)
+
 #include <curl/curl.h>
 #include "urldata.h"
 
@@ -162,3 +165,5 @@ CURLcode Curl_auth_create_external_message(struct Curl_easy *data,
   /* This is the same formatting as the login message */
   return Curl_auth_create_login_message(data, user, outptr, outlen);
 }
+
+#endif /* if no users */
index bedc6e3e6a9e71c03bd809ba3f2f5e180bc1cde4..b4e9f8e7040d3de9f1056d83c4861a035bac0cd7 100644 (file)
@@ -5,7 +5,7 @@
  *                            | (__| |_| |  _ <| |___
  *                             \___|\___/|_| \_\_____|
  *
- * Copyright (C) 1998 - 2018, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2019, Daniel Stenberg, <daniel@haxx.se>, et al.
  *
  * This software is licensed as described in the file COPYING, which
  * you should have received as part of this distribution. The terms
@@ -24,6 +24,9 @@
 
 #include "curl_setup.h"
 
+#if !defined(CURL_DISABLE_IMAP) || !defined(CURL_DISABLE_SMTP) || \
+  !defined(CURL_DISABLE_POP3)
+
 #include <curl/curl.h>
 #include "urldata.h"
 
@@ -119,3 +122,5 @@ CURLcode Curl_auth_create_xoauth_bearer_message(struct Curl_easy *data,
 
   return result;
 }
+#endif /* disabled, no users */
+