From d0cc92a01a5b373c6730acd84009294da9c29e44 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 10 Jun 2003 12:49:16 +0000 Subject: Set auth type differently, we use one CURLOPT_HTTPAUTH instead as we plan to add more method in the future. --- include/curl/curl.h | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) (limited to 'include') diff --git a/include/curl/curl.h b/include/curl/curl.h index 46e09f429..0d590d6ab 100644 --- a/include/curl/curl.h +++ b/include/curl/curl.h @@ -213,6 +213,14 @@ typedef enum { CURLPROXY_SOCKS5 = 5 } curl_proxytype; +typedef enum { + CURLHTTP_BASIC = 0, /* default */ + CURLHTTP_DIGEST = 1, /* Digest */ + CURLHTTP_NEGOTIATE = 2, /* Negotiate */ + CURLHTTP_NTLM = 3, /* NTLM */ + CURLHTTP_LAST /* never to be used */ +} curl_httpauth; + /* this was the error code 50 in 7.7.3 and a few earlier versions, this is no longer used by libcurl but is instead #defined here only to not make programs break */ @@ -625,13 +633,9 @@ typedef enum { attempted before the good old traditional PORT command. */ CINIT(FTP_USE_EPRT, LONG, 106), - /* Set this to a non-zero value to enable HTTP Digest Authentication. - You should use this in combination with CURLOPT_USERPWD. */ - CINIT(HTTPDIGEST, LONG, 107), - - /* Set this to a non-zero value to enable HTTP Negotiate Authentication. - You should use this in combination with CURLOPT_USERPWD. */ - CINIT(HTTPNEGOTIATE, LONG, 108), + /* Set this to a curl_httpauth value to enable that particular authentication + method. Use this in combination with CURLOPT_USERPWD. */ + CINIT(HTTPAUTH, LONG, 107), CURLOPT_LASTENTRY /* the last unused */ } CURLoption; -- cgit v1.2.3