From 37e4858cd01b461cb3a155826acc6c7c21a200e4 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 23 Apr 2004 08:44:27 +0000 Subject: Made --proxy-ntlm check if the underlying library actually supports NTLM --- src/main.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index 95cb5f92e..727c8c2c2 100644 --- a/src/main.c +++ b/src/main.c @@ -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 */ -- cgit v1.2.3