aboutsummaryrefslogtreecommitdiff
path: root/lib/netrc.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2019-05-05 17:08:22 +0200
committerDaniel Stenberg <daniel@haxx.se>2019-05-17 23:24:34 +0200
commit1f8a584f6a1387b1d009bb2231025e5b39fb5fda (patch)
treec34a17310a0b91808654af382c2c9b48f129d801 /lib/netrc.h
parentf3e0f071b14fcb46a453f69bdf4e062bcaacf362 (diff)
netrc: CURL_DISABLE_NETRC
Diffstat (limited to 'lib/netrc.h')
-rw-r--r--lib/netrc.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/netrc.h b/lib/netrc.h
index fe3dc357e..7f56c4b4d 100644
--- a/lib/netrc.h
+++ b/lib/netrc.h
@@ -7,7 +7,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2011, 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
@@ -22,6 +22,9 @@
*
***************************************************************************/
+#include "curl_setup.h"
+#ifndef CURL_DISABLE_NETRC
+
/* returns -1 on failure, 0 if the host is found, 1 is the host isn't found */
int Curl_parsenetrc(const char *host,
char **loginp,
@@ -34,5 +37,9 @@ int Curl_parsenetrc(const char *host,
* section in the netrc.
* If (*loginp)[0] != 0, search for password within machine and login.
*/
+#else
+/* disabled */
+#define Curl_parsenetrc(a,b,c,d,e,f) 1
+#endif
#endif /* HEADER_CURL_NETRC_H */