summaryrefslogtreecommitdiff
path: root/lib/getinfo.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2003-09-04 10:55:20 +0000
committerDaniel Stenberg <daniel@haxx.se>2003-09-04 10:55:20 +0000
commit1f9b0e70ab2131315744d0eedf9c5e29f34c8cb4 (patch)
tree9f3b4a05f805b07bc28aca3cdad445f4c97ad51b /lib/getinfo.c
parent8fae12b2f1d110cf805df87c6a5448334f8d8355 (diff)
downloadcurl-1f9b0e70ab2131315744d0eedf9c5e29f34c8cb4.tar.gz
Based on Joerg Mueller-Tolk's patch, this introduces support for
CURLINFO_HTTPAUTH_AVAIL and CURLINFO_PROXYAUTH_AVAIL
Diffstat (limited to 'lib/getinfo.c')
-rw-r--r--lib/getinfo.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/getinfo.c b/lib/getinfo.c
index 29da0dc3c..a505eb1e8 100644
--- a/lib/getinfo.c
+++ b/lib/getinfo.c
@@ -166,6 +166,12 @@ CURLcode Curl_getinfo(struct SessionHandle *data, CURLINFO info, ...)
case CURLINFO_PRIVATE:
*param_charp = data->set.private;
break;
+ case CURLINFO_HTTPAUTH_AVAIL:
+ *param_longp = data->info.httpauthavail;
+ break;
+ case CURLINFO_PROXYAUTH_AVAIL:
+ *param_longp = data->info.proxyauthavail;
+ break;
default:
return CURLE_BAD_FUNCTION_ARGUMENT;
}