Based on Joerg Mueller-Tolk's patch, this introduces support for

CURLINFO_HTTPAUTH_AVAIL and CURLINFO_PROXYAUTH_AVAIL
This commit is contained in:
Daniel Stenberg 2003-09-04 10:55:20 +00:00
parent 8fae12b2f1
commit 1f9b0e70ab
3 changed files with 24 additions and 3 deletions

View file

@ -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;
}