aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2008-10-08 10:39:43 +0000
committerDaniel Stenberg <daniel@haxx.se>2008-10-08 10:39:43 +0000
commit08cf6780ba8ea242cb451f07e14bb572079e22cf (patch)
tree84ff8b08fde25d6d5334d62bdd9c2dbc713ccac1 /include
parent6814907a2c3ce7b90cdd509f0dfca009e1ca228f (diff)
- Igor Novoseltsev brought a patch that introduced two new options to
curl_easy_setopt: CURLOPT_USERNAME and CURLOPT_PASSWORD that sort of deprecates the good old CURLOPT_USERPWD since they allow applications to set the user name and password independently and perhaps more importantly allow both to contain colon(s) which CURLOPT_USERPWD doesn't fully support.
Diffstat (limited to 'include')
-rw-r--r--include/curl/curl.h4
-rw-r--r--include/curl/typecheck-gcc.h2
2 files changed, 6 insertions, 0 deletions
diff --git a/include/curl/curl.h b/include/curl/curl.h
index d93fd6764..d6db92fb7 100644
--- a/include/curl/curl.h
+++ b/include/curl/curl.h
@@ -1141,6 +1141,10 @@ typedef enum {
working with OpenSSL-powered builds. */
CINIT(CERTINFO, LONG, 172),
+ /* "name" and "pwd" to use when fetching. */
+ CINIT(USERNAME, OBJECTPOINT, 173),
+ CINIT(PASSWORD, OBJECTPOINT, 174),
+
CURLOPT_LASTENTRY /* the last unused */
} CURLoption;
diff --git a/include/curl/typecheck-gcc.h b/include/curl/typecheck-gcc.h
index bd0b0b7bb..33e264771 100644
--- a/include/curl/typecheck-gcc.h
+++ b/include/curl/typecheck-gcc.h
@@ -196,6 +196,8 @@ _CURL_WARNING(_curl_easy_getinfo_err_curl_slist,
(option) == CURLOPT_INTERFACE || \
(option) == CURLOPT_NETRC_FILE || \
(option) == CURLOPT_USERPWD || \
+ (option) == CURLOPT_USERNAME || \
+ (option) == CURLOPT_PASSWORD || \
(option) == CURLOPT_PROXYUSERPWD || \
(option) == CURLOPT_ENCODING || \
(option) == CURLOPT_REFERER || \