aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2002-05-21 22:22:28 +0000
committerDaniel Stenberg <daniel@haxx.se>2002-05-21 22:22:28 +0000
commit0aeb25ff3b7e23b12212fb3d18b70fb75917d87b (patch)
treeed334452bcc8aef1b4da29e6ffb342e94bc25bf9 /include
parenta928f2c4aab41db8f6fdf4ba412e6c455e4ccf96 (diff)
James Cone added the new CURL_NETRC_OPTION enum
Diffstat (limited to 'include')
-rw-r--r--include/curl/curl.h18
1 files changed, 17 insertions, 1 deletions
diff --git a/include/curl/curl.h b/include/curl/curl.h
index 8833ad7e8..ea975c68b 100644
--- a/include/curl/curl.h
+++ b/include/curl/curl.h
@@ -379,7 +379,11 @@ typedef enum {
CINIT(FTPLISTONLY, LONG, 48), /* Use NLST when listing ftp dir */
CINIT(FTPAPPEND, LONG, 50), /* Append instead of overwrite on upload! */
- CINIT(NETRC, LONG, 51), /* read user+password from .netrc */
+
+ /* Specify whether to read the user+password from the .netrc or the URL.
+ * This must be one of the CURL_NETRC_* enums below. */
+ CINIT(NETRC, LONG, 51),
+
CINIT(FOLLOWLOCATION, LONG, 52), /* use Location: Luke! */
/* This FTPASCII name is now obsolete, to be removed, use the TRANSFERTEXT
@@ -560,6 +564,18 @@ enum {
CURL_HTTP_VERSION_LAST /* *ILLEGAL* http version */
};
+ /* These enums are for use with the CURLOPT_NETRC option. */
+enum CURL_NETRC_OPTION {
+ CURL_NETRC_IGNORED, /* The .netrc will never be read.
+ * This is the default. */
+ CURL_NETRC_OPTIONAL, /* A user:password in the URL will be preferred
+ * to one in the .netrc. */
+ CURL_NETRC_REQUIRED, /* A user:password in the URL will be ignored.
+ * Unless one is set programmatically, the .netrc
+ * will be queried. */
+ CURL_NETRC_LAST
+};
+
enum {
CURL_SSLVERSION_DEFAULT,
CURL_SSLVERSION_TLSv1,