aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2000-11-06 22:53:50 +0000
committerDaniel Stenberg <daniel@haxx.se>2000-11-06 22:53:50 +0000
commit9f4f16b55d7df262774aee227933347e0ae3846e (patch)
tree26ebae60a02e272ec1fb8d2ead8dfc7559372fd5 /include
parente05922c4285bf72b2246c9909703c7411f98163b (diff)
new getpass proto and function pointer usage
Diffstat (limited to 'include')
-rw-r--r--include/curl/curl.h16
1 files changed, 15 insertions, 1 deletions
diff --git a/include/curl/curl.h b/include/curl/curl.h
index 4a1245e58..f0a17011a 100644
--- a/include/curl/curl.h
+++ b/include/curl/curl.h
@@ -99,7 +99,12 @@ typedef size_t (*curl_read_callback)(char *buffer,
size_t nitems,
FILE *instream);
-/* All possible error codes from this version of urlget(). Future versions
+typedef int (*curl_passwd_callback)(void *clientp,
+ char *prompt,
+ char *buffer,
+ int buflen);
+
+/* All possible error codes from all sorts of curl functions. Future versions
may return other values, stay prepared.
Always add new return codes last. Never *EVER* remove any. The return
@@ -166,6 +171,8 @@ typedef enum {
CURLE_HTTP_PORT_FAILED, /* HTTP Interface operation failed */
+ CURLE_BAD_PASSWORD_ENTERED, /* when the my_getpass() returns fail */
+
CURL_LAST
} CURLcode;
@@ -404,6 +411,13 @@ typedef enum {
this option is used only if SSL_VERIFYPEER is true */
CINIT(CAINFO, OBJECTPOINT, 65),
+ /* Function pointer to replace the internal password prompt */
+ CINIT(PASSWDFUNCTION, FUNCTIONPOINT, 66),
+
+ /* Custom pointer that gets passed as first argument to the password
+ function */
+ CINIT(PASSWDDATA, OBJECTPOINT, 67),
+
CURLOPT_LASTENTRY /* the last unusued */
} CURLoption;