Made --proxy-ntlm check if the underlying library actually supports NTLM

This commit is contained in:
Daniel Stenberg 2004-04-23 08:44:27 +00:00
parent a27072bebb
commit 37e4858cd0
1 changed files with 4 additions and 1 deletions

View File

@ -1389,7 +1389,10 @@ static ParameterError getparameter(char *flag, /* f or -long-flag */
break;
case 't': /* --proxy-ntlm */
config->proxyntlm ^= TRUE;
if(curlinfo->features & CURL_VERSION_NTLM)
config->proxyntlm ^= TRUE;
else
return PARAM_LIBCURL_DOESNT_SUPPORT;
break;
case 'u': /* --crlf */