diff options
author | Marcel Roelofs <Marcel.Roelofs@aimms.com> | 2011-01-05 17:01:07 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2011-01-07 23:48:40 +0100 |
commit | 1d28efb9d1759bcbc81d28e462c2e3a5d60a17e4 (patch) | |
tree | 415e7ca19589d7f8e4ef6532f2bab5e1236d9ce6 /lib/http_negotiate.h | |
parent | 9ba42a023d6df26ac7ad2dde992f212ed3b05f8f (diff) | |
download | curl-1d28efb9d1759bcbc81d28e462c2e3a5d60a17e4.tar.gz |
HTTP: HTTP Negotiate authentication using SSPI
Only under Windows
Diffstat (limited to 'lib/http_negotiate.h')
-rw-r--r-- | lib/http_negotiate.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/http_negotiate.h b/lib/http_negotiate.h index 35501f044..e584d76fc 100644 --- a/lib/http_negotiate.h +++ b/lib/http_negotiate.h @@ -7,7 +7,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * - * Copyright (C) 1998 - 2010, Daniel Stenberg, <daniel@haxx.se>, et al. + * Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms @@ -22,7 +22,7 @@ * ***************************************************************************/ -#ifdef HAVE_GSSAPI +#ifdef USE_HTTP_NEGOTIATE /* this is for Negotiate header input */ int Curl_input_negotiate(struct connectdata *conn, bool proxy, @@ -33,6 +33,10 @@ CURLcode Curl_output_negotiate(struct connectdata *conn, bool proxy); void Curl_cleanup_negotiate(struct SessionHandle *data); -#endif /* HAVE_GSSAPI */ +#ifdef USE_WINDOWS_SSPI +#define GSS_ERROR(status) (status & 0x80000000) +#endif + +#endif /* USE_HTTP_NEGOTIATE */ #endif /* HEADER_CURL_HTTP_NEGOTIATE_H */ |