@@ -598,18 +598,32 @@ typedef enum {
598598 in 7.18.0 */
599599} curl_proxytype ; /* this enum was added in 7.10 */
600600
601- #define CURLAUTH_NONE 0 /* nothing */
602- #define CURLAUTH_BASIC (1<<0) /* Basic (default) */
603- #define CURLAUTH_DIGEST (1<<1) /* Digest */
604- #define CURLAUTH_GSSNEGOTIATE (1<<2) /* GSS-Negotiate */
605- #define CURLAUTH_NTLM (1<<3) /* NTLM */
606- #define CURLAUTH_DIGEST_IE (1<<4) /* Digest with IE flavour */
607- #define CURLAUTH_NTLM_WB (1<<5) /* NTLM delegating to winbind helper */
608- #define CURLAUTH_ONLY (1<<31) /* used together with a single other
609- type to force no auth or just that
610- single type */
611- #define CURLAUTH_ANY (~CURLAUTH_DIGEST_IE) /* all fine types set */
612- #define CURLAUTH_ANYSAFE (~(CURLAUTH_BASIC|CURLAUTH_DIGEST_IE))
601+ /*
602+ * Bitmasks for CURLOPT_HTTPAUTH and CURLOPT_PROXYAUTH options:
603+ *
604+ * CURLAUTH_NONE - No HTTP authentication
605+ * CURLAUTH_BASIC - HTTP Basic authentication (default)
606+ * CURLAUTH_DIGEST - HTTP Digest authentication
607+ * CURLAUTH_GSSNEGOTIATE - HTTP GSS-Negotiate authentication
608+ * CURLAUTH_NTLM - HTTP NTLM authentication
609+ * CURLAUTH_DIGEST_IE - HTTP Digest authentication with IE flavour
610+ * CURLAUTH_NTLM_WB - HTTP NTLM authentication delegated to winbind helper
611+ * CURLAUTH_ONLY - Use together with a single other type to force no
612+ * authentication or just that single type
613+ * CURLAUTH_ANY - All fine types set
614+ * CURLAUTH_ANYSAFE - All fine types except Basic
615+ */
616+
617+ #define CURLAUTH_NONE ((unsigned long)0)
618+ #define CURLAUTH_BASIC (((unsigned long)1)<<0)
619+ #define CURLAUTH_DIGEST (((unsigned long)1)<<1)
620+ #define CURLAUTH_GSSNEGOTIATE (((unsigned long)1)<<2)
621+ #define CURLAUTH_NTLM (((unsigned long)1)<<3)
622+ #define CURLAUTH_DIGEST_IE (((unsigned long)1)<<4)
623+ #define CURLAUTH_NTLM_WB (((unsigned long)1)<<5)
624+ #define CURLAUTH_ONLY (((unsigned long)1)<<31)
625+ #define CURLAUTH_ANY (~CURLAUTH_DIGEST_IE)
626+ #define CURLAUTH_ANYSAFE (~(CURLAUTH_BASIC|CURLAUTH_DIGEST_IE))
613627
614628#define CURLSSH_AUTH_ANY ~0 /* all types supported by the server */
615629#define CURLSSH_AUTH_NONE 0 /* none allowed, silly but complete */
@@ -1624,13 +1638,16 @@ enum CURL_TLSAUTH {
16241638};
16251639
16261640/* symbols to use with CURLOPT_POSTREDIR.
1627- CURL_REDIR_POST_301 and CURL_REDIR_POST_302 can be bitwise ORed so that
1628- CURL_REDIR_POST_301 | CURL_REDIR_POST_302 == CURL_REDIR_POST_ALL */
1641+ CURL_REDIR_POST_301, CURL_REDIR_POST_302 and CURL_REDIR_POST_303
1642+ can be bitwise ORed so that CURL_REDIR_POST_301 | CURL_REDIR_POST_302
1643+ | CURL_REDIR_POST_303 == CURL_REDIR_POST_ALL */
16291644
16301645#define CURL_REDIR_GET_ALL 0
16311646#define CURL_REDIR_POST_301 1
16321647#define CURL_REDIR_POST_302 2
1633- #define CURL_REDIR_POST_ALL (CURL_REDIR_POST_301|CURL_REDIR_POST_302)
1648+ #define CURL_REDIR_POST_303 4
1649+ #define CURL_REDIR_POST_ALL \
1650+ (CURL_REDIR_POST_301|CURL_REDIR_POST_302|CURL_REDIR_POST_303)
16341651
16351652typedef enum {
16361653 CURL_TIMECOND_NONE ,
0 commit comments