diff options
author | Daniel Stenberg <daniel@haxx.se> | 2011-05-05 17:07:21 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2011-05-05 17:07:21 +0200 |
commit | 32001ac4149b2062402b5914d756d405ab45c212 (patch) | |
tree | 446d0c52870ce3faa9a39eba730d091b0bc45bf3 /lib/urldata.h | |
parent | 9c629e534866169b1445bd6614233ded73ff0460 (diff) |
set_userpass: convert from protocol-specific to generic
The protocol handler's flags field now can set that the protocol
requires a password, so that the set_userpass function doesn't have to
have the specific knowledge of which protocols that do.
Diffstat (limited to 'lib/urldata.h')
-rw-r--r-- | lib/urldata.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/urldata.h b/lib/urldata.h index e78dbbf3c..f4b4bcc6c 100644 --- a/lib/urldata.h +++ b/lib/urldata.h @@ -703,7 +703,9 @@ struct Curl_handler { the send function might need to be called while uploading, or vice versa. */ #define PROTOPT_DIRLOCK (1<<3) -#define PROTOPT_NONETWORK (1<<4) /* protocol doesn't use the network! */ +#define PROTOPT_NONETWORK (1<<4) /* protocol doesn't use the network! */ +#define PROTOPT_NEEDSPWD (1<<5) /* needs a password, and if none is set it + gets a default */ /* return the count of bytes sent, or -1 on error */ |