2009-01-30 04:32:27 +08:00
|
|
|
#ifndef HEADER_CURL_SSPI_H
|
|
|
|
#define HEADER_CURL_SSPI_H
|
|
|
|
/***************************************************************************
|
|
|
|
* _ _ ____ _
|
|
|
|
* Project ___| | | | _ \| |
|
|
|
|
* / __| | | | |_) | |
|
|
|
|
* | (__| |_| | _ <| |___
|
|
|
|
* \___|\___/|_| \_\_____|
|
|
|
|
*
|
2012-06-10 19:07:45 +08:00
|
|
|
* Copyright (C) 1998 - 2012, Daniel Stenberg, <daniel@haxx.se>, et al.
|
2009-01-30 04:32:27 +08:00
|
|
|
*
|
|
|
|
* This software is licensed as described in the file COPYING, which
|
|
|
|
* you should have received as part of this distribution. The terms
|
|
|
|
* are also available at http://curl.haxx.se/docs/copyright.html.
|
|
|
|
*
|
|
|
|
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
|
|
|
* copies of the Software, and permit persons to whom the Software is
|
|
|
|
* furnished to do so, under the terms of the COPYING file.
|
|
|
|
*
|
|
|
|
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
|
|
|
* KIND, either express or implied.
|
|
|
|
*
|
|
|
|
***************************************************************************/
|
|
|
|
|
2013-01-07 02:06:49 +08:00
|
|
|
#include "curl_setup.h"
|
2009-01-30 04:32:27 +08:00
|
|
|
|
|
|
|
#ifdef USE_WINDOWS_SSPI
|
|
|
|
|
|
|
|
#include <curl/curl.h>
|
|
|
|
|
2010-02-15 03:40:18 +08:00
|
|
|
/*
|
2011-04-19 21:54:13 +08:00
|
|
|
* When including the following three headers, it is mandatory to define either
|
2009-01-30 04:32:27 +08:00
|
|
|
* SECURITY_WIN32 or SECURITY_KERNEL, indicating who is compiling the code.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#undef SECURITY_WIN32
|
|
|
|
#undef SECURITY_KERNEL
|
|
|
|
#define SECURITY_WIN32 1
|
|
|
|
#include <security.h>
|
|
|
|
#include <sspi.h>
|
|
|
|
#include <rpc.h>
|
|
|
|
|
2012-06-12 09:56:24 +08:00
|
|
|
CURLcode Curl_sspi_global_init(void);
|
|
|
|
void Curl_sspi_global_cleanup(void);
|
2009-01-30 05:44:36 +08:00
|
|
|
|
2014-04-03 05:04:13 +08:00
|
|
|
/* This is used to generate an SSPI identity structure */
|
|
|
|
CURLcode Curl_create_sspi_identity(const char *userp, const char *passwdp,
|
|
|
|
SEC_WINNT_AUTH_IDENTITY *identity);
|
|
|
|
|
|
|
|
/* This is used to free an SSPI identity structure */
|
|
|
|
void Curl_sspi_free_identity(SEC_WINNT_AUTH_IDENTITY *identity);
|
|
|
|
|
2012-06-12 09:56:24 +08:00
|
|
|
/* Forward-declaration of global variables defined in curl_sspi.c */
|
|
|
|
|
|
|
|
extern HMODULE s_hSecDll;
|
2012-06-16 00:05:11 +08:00
|
|
|
extern PSecurityFunctionTable s_pSecFn;
|
2012-06-12 09:56:24 +08:00
|
|
|
|
|
|
|
/* Provide some definitions missing in old headers */
|
|
|
|
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_E_INSUFFICIENT_MEMORY
|
2012-06-12 09:56:24 +08:00
|
|
|
# define SEC_E_INSUFFICIENT_MEMORY ((HRESULT)0x80090300L)
|
2009-01-30 05:44:36 +08:00
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_E_INVALID_HANDLE
|
2012-06-12 09:56:24 +08:00
|
|
|
# define SEC_E_INVALID_HANDLE ((HRESULT)0x80090301L)
|
2009-01-30 05:44:36 +08:00
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_E_UNSUPPORTED_FUNCTION
|
2012-06-12 09:56:24 +08:00
|
|
|
# define SEC_E_UNSUPPORTED_FUNCTION ((HRESULT)0x80090302L)
|
2009-01-30 09:37:37 +08:00
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_E_TARGET_UNKNOWN
|
2012-06-12 09:56:24 +08:00
|
|
|
# define SEC_E_TARGET_UNKNOWN ((HRESULT)0x80090303L)
|
2009-01-30 05:44:36 +08:00
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_E_INTERNAL_ERROR
|
2012-06-12 09:56:24 +08:00
|
|
|
# define SEC_E_INTERNAL_ERROR ((HRESULT)0x80090304L)
|
2009-01-30 05:44:36 +08:00
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_E_SECPKG_NOT_FOUND
|
2012-06-12 09:56:24 +08:00
|
|
|
# define SEC_E_SECPKG_NOT_FOUND ((HRESULT)0x80090305L)
|
2009-01-30 05:44:36 +08:00
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_E_NOT_OWNER
|
2012-06-12 09:56:24 +08:00
|
|
|
# define SEC_E_NOT_OWNER ((HRESULT)0x80090306L)
|
2012-06-12 07:06:48 +08:00
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_E_CANNOT_INSTALL
|
2012-06-12 09:56:24 +08:00
|
|
|
# define SEC_E_CANNOT_INSTALL ((HRESULT)0x80090307L)
|
2012-06-12 07:06:48 +08:00
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_E_INVALID_TOKEN
|
2012-06-12 09:56:24 +08:00
|
|
|
# define SEC_E_INVALID_TOKEN ((HRESULT)0x80090308L)
|
2012-06-12 07:06:48 +08:00
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_E_CANNOT_PACK
|
2012-06-12 09:56:24 +08:00
|
|
|
# define SEC_E_CANNOT_PACK ((HRESULT)0x80090309L)
|
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_E_QOP_NOT_SUPPORTED
|
2012-06-12 09:56:24 +08:00
|
|
|
# define SEC_E_QOP_NOT_SUPPORTED ((HRESULT)0x8009030AL)
|
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_E_NO_IMPERSONATION
|
2012-06-12 09:56:24 +08:00
|
|
|
# define SEC_E_NO_IMPERSONATION ((HRESULT)0x8009030BL)
|
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_E_LOGON_DENIED
|
2012-06-12 09:56:24 +08:00
|
|
|
# define SEC_E_LOGON_DENIED ((HRESULT)0x8009030CL)
|
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_E_UNKNOWN_CREDENTIALS
|
2012-06-12 09:56:24 +08:00
|
|
|
# define SEC_E_UNKNOWN_CREDENTIALS ((HRESULT)0x8009030DL)
|
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_E_NO_CREDENTIALS
|
2012-06-12 09:56:24 +08:00
|
|
|
# define SEC_E_NO_CREDENTIALS ((HRESULT)0x8009030EL)
|
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_E_MESSAGE_ALTERED
|
2012-06-12 09:56:24 +08:00
|
|
|
# define SEC_E_MESSAGE_ALTERED ((HRESULT)0x8009030FL)
|
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_E_OUT_OF_SEQUENCE
|
2012-06-12 09:56:24 +08:00
|
|
|
# define SEC_E_OUT_OF_SEQUENCE ((HRESULT)0x80090310L)
|
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_E_NO_AUTHENTICATING_AUTHORITY
|
2012-06-12 09:56:24 +08:00
|
|
|
# define SEC_E_NO_AUTHENTICATING_AUTHORITY ((HRESULT)0x80090311L)
|
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_E_BAD_PKGID
|
2012-06-12 09:56:24 +08:00
|
|
|
# define SEC_E_BAD_PKGID ((HRESULT)0x80090316L)
|
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_E_CONTEXT_EXPIRED
|
2012-06-12 09:56:24 +08:00
|
|
|
# define SEC_E_CONTEXT_EXPIRED ((HRESULT)0x80090317L)
|
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_E_INCOMPLETE_MESSAGE
|
2012-06-12 09:56:24 +08:00
|
|
|
# define SEC_E_INCOMPLETE_MESSAGE ((HRESULT)0x80090318L)
|
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_E_INCOMPLETE_CREDENTIALS
|
2012-06-12 09:56:24 +08:00
|
|
|
# define SEC_E_INCOMPLETE_CREDENTIALS ((HRESULT)0x80090320L)
|
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_E_BUFFER_TOO_SMALL
|
2012-06-12 09:56:24 +08:00
|
|
|
# define SEC_E_BUFFER_TOO_SMALL ((HRESULT)0x80090321L)
|
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_E_WRONG_PRINCIPAL
|
2012-06-12 09:56:24 +08:00
|
|
|
# define SEC_E_WRONG_PRINCIPAL ((HRESULT)0x80090322L)
|
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_E_TIME_SKEW
|
2012-06-12 09:56:24 +08:00
|
|
|
# define SEC_E_TIME_SKEW ((HRESULT)0x80090324L)
|
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_E_UNTRUSTED_ROOT
|
2012-06-12 09:56:24 +08:00
|
|
|
# define SEC_E_UNTRUSTED_ROOT ((HRESULT)0x80090325L)
|
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_E_ILLEGAL_MESSAGE
|
2012-06-12 09:56:24 +08:00
|
|
|
# define SEC_E_ILLEGAL_MESSAGE ((HRESULT)0x80090326L)
|
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_E_CERT_UNKNOWN
|
2012-06-12 09:56:24 +08:00
|
|
|
# define SEC_E_CERT_UNKNOWN ((HRESULT)0x80090327L)
|
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_E_CERT_EXPIRED
|
2012-06-12 09:56:24 +08:00
|
|
|
# define SEC_E_CERT_EXPIRED ((HRESULT)0x80090328L)
|
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_E_ENCRYPT_FAILURE
|
2012-06-12 09:56:24 +08:00
|
|
|
# define SEC_E_ENCRYPT_FAILURE ((HRESULT)0x80090329L)
|
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_E_DECRYPT_FAILURE
|
2012-06-12 09:56:24 +08:00
|
|
|
# define SEC_E_DECRYPT_FAILURE ((HRESULT)0x80090330L)
|
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_E_ALGORITHM_MISMATCH
|
2012-06-12 09:56:24 +08:00
|
|
|
# define SEC_E_ALGORITHM_MISMATCH ((HRESULT)0x80090331L)
|
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_E_SECURITY_QOS_FAILED
|
2012-06-12 09:56:24 +08:00
|
|
|
# define SEC_E_SECURITY_QOS_FAILED ((HRESULT)0x80090332L)
|
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_E_UNFINISHED_CONTEXT_DELETED
|
2012-06-12 09:56:24 +08:00
|
|
|
# define SEC_E_UNFINISHED_CONTEXT_DELETED ((HRESULT)0x80090333L)
|
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_E_NO_TGT_REPLY
|
2012-06-12 09:56:24 +08:00
|
|
|
# define SEC_E_NO_TGT_REPLY ((HRESULT)0x80090334L)
|
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_E_NO_IP_ADDRESSES
|
2012-06-12 09:56:24 +08:00
|
|
|
# define SEC_E_NO_IP_ADDRESSES ((HRESULT)0x80090335L)
|
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_E_WRONG_CREDENTIAL_HANDLE
|
2012-06-12 09:56:24 +08:00
|
|
|
# define SEC_E_WRONG_CREDENTIAL_HANDLE ((HRESULT)0x80090336L)
|
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_E_CRYPTO_SYSTEM_INVALID
|
2012-06-12 09:56:24 +08:00
|
|
|
# define SEC_E_CRYPTO_SYSTEM_INVALID ((HRESULT)0x80090337L)
|
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_E_MAX_REFERRALS_EXCEEDED
|
2012-06-12 09:56:24 +08:00
|
|
|
# define SEC_E_MAX_REFERRALS_EXCEEDED ((HRESULT)0x80090338L)
|
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_E_MUST_BE_KDC
|
2012-06-12 09:56:24 +08:00
|
|
|
# define SEC_E_MUST_BE_KDC ((HRESULT)0x80090339L)
|
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_E_STRONG_CRYPTO_NOT_SUPPORTED
|
2012-06-12 09:56:24 +08:00
|
|
|
# define SEC_E_STRONG_CRYPTO_NOT_SUPPORTED ((HRESULT)0x8009033AL)
|
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_E_TOO_MANY_PRINCIPALS
|
2012-06-12 09:56:24 +08:00
|
|
|
# define SEC_E_TOO_MANY_PRINCIPALS ((HRESULT)0x8009033BL)
|
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_E_NO_PA_DATA
|
2012-06-12 09:56:24 +08:00
|
|
|
# define SEC_E_NO_PA_DATA ((HRESULT)0x8009033CL)
|
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_E_PKINIT_NAME_MISMATCH
|
2012-06-12 09:56:24 +08:00
|
|
|
# define SEC_E_PKINIT_NAME_MISMATCH ((HRESULT)0x8009033DL)
|
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_E_SMARTCARD_LOGON_REQUIRED
|
2012-06-12 09:56:24 +08:00
|
|
|
# define SEC_E_SMARTCARD_LOGON_REQUIRED ((HRESULT)0x8009033EL)
|
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_E_SHUTDOWN_IN_PROGRESS
|
2012-06-12 09:56:24 +08:00
|
|
|
# define SEC_E_SHUTDOWN_IN_PROGRESS ((HRESULT)0x8009033FL)
|
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_E_KDC_INVALID_REQUEST
|
2012-06-12 09:56:24 +08:00
|
|
|
# define SEC_E_KDC_INVALID_REQUEST ((HRESULT)0x80090340L)
|
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_E_KDC_UNABLE_TO_REFER
|
2012-06-12 09:56:24 +08:00
|
|
|
# define SEC_E_KDC_UNABLE_TO_REFER ((HRESULT)0x80090341L)
|
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_E_KDC_UNKNOWN_ETYPE
|
2012-06-12 09:56:24 +08:00
|
|
|
# define SEC_E_KDC_UNKNOWN_ETYPE ((HRESULT)0x80090342L)
|
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_E_UNSUPPORTED_PREAUTH
|
2012-06-12 09:56:24 +08:00
|
|
|
# define SEC_E_UNSUPPORTED_PREAUTH ((HRESULT)0x80090343L)
|
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_E_DELEGATION_REQUIRED
|
2012-06-12 09:56:24 +08:00
|
|
|
# define SEC_E_DELEGATION_REQUIRED ((HRESULT)0x80090345L)
|
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_E_BAD_BINDINGS
|
2012-06-12 09:56:24 +08:00
|
|
|
# define SEC_E_BAD_BINDINGS ((HRESULT)0x80090346L)
|
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_E_MULTIPLE_ACCOUNTS
|
2012-06-12 09:56:24 +08:00
|
|
|
# define SEC_E_MULTIPLE_ACCOUNTS ((HRESULT)0x80090347L)
|
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_E_NO_KERB_KEY
|
2012-06-12 09:56:24 +08:00
|
|
|
# define SEC_E_NO_KERB_KEY ((HRESULT)0x80090348L)
|
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_E_CERT_WRONG_USAGE
|
2012-06-12 09:56:24 +08:00
|
|
|
# define SEC_E_CERT_WRONG_USAGE ((HRESULT)0x80090349L)
|
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_E_DOWNGRADE_DETECTED
|
2012-06-12 09:56:24 +08:00
|
|
|
# define SEC_E_DOWNGRADE_DETECTED ((HRESULT)0x80090350L)
|
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_E_SMARTCARD_CERT_REVOKED
|
2012-06-12 09:56:24 +08:00
|
|
|
# define SEC_E_SMARTCARD_CERT_REVOKED ((HRESULT)0x80090351L)
|
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_E_ISSUING_CA_UNTRUSTED
|
2012-06-12 09:56:24 +08:00
|
|
|
# define SEC_E_ISSUING_CA_UNTRUSTED ((HRESULT)0x80090352L)
|
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_E_REVOCATION_OFFLINE_C
|
2012-06-12 09:56:24 +08:00
|
|
|
# define SEC_E_REVOCATION_OFFLINE_C ((HRESULT)0x80090353L)
|
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_E_PKINIT_CLIENT_FAILURE
|
2012-06-12 09:56:24 +08:00
|
|
|
# define SEC_E_PKINIT_CLIENT_FAILURE ((HRESULT)0x80090354L)
|
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_E_SMARTCARD_CERT_EXPIRED
|
2012-06-12 09:56:24 +08:00
|
|
|
# define SEC_E_SMARTCARD_CERT_EXPIRED ((HRESULT)0x80090355L)
|
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_E_NO_S4U_PROT_SUPPORT
|
2012-06-12 09:56:24 +08:00
|
|
|
# define SEC_E_NO_S4U_PROT_SUPPORT ((HRESULT)0x80090356L)
|
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_E_CROSSREALM_DELEGATION_FAILURE
|
2012-06-12 09:56:24 +08:00
|
|
|
# define SEC_E_CROSSREALM_DELEGATION_FAILURE ((HRESULT)0x80090357L)
|
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_E_REVOCATION_OFFLINE_KDC
|
2012-06-12 09:56:24 +08:00
|
|
|
# define SEC_E_REVOCATION_OFFLINE_KDC ((HRESULT)0x80090358L)
|
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_E_ISSUING_CA_UNTRUSTED_KDC
|
2012-06-12 09:56:24 +08:00
|
|
|
# define SEC_E_ISSUING_CA_UNTRUSTED_KDC ((HRESULT)0x80090359L)
|
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_E_KDC_CERT_EXPIRED
|
2012-06-12 09:56:24 +08:00
|
|
|
# define SEC_E_KDC_CERT_EXPIRED ((HRESULT)0x8009035AL)
|
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_E_KDC_CERT_REVOKED
|
2012-06-12 09:56:24 +08:00
|
|
|
# define SEC_E_KDC_CERT_REVOKED ((HRESULT)0x8009035BL)
|
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_E_INVALID_PARAMETER
|
2012-06-12 09:56:24 +08:00
|
|
|
# define SEC_E_INVALID_PARAMETER ((HRESULT)0x8009035DL)
|
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_E_DELEGATION_POLICY
|
2012-06-12 09:56:24 +08:00
|
|
|
# define SEC_E_DELEGATION_POLICY ((HRESULT)0x8009035EL)
|
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_E_POLICY_NLTM_ONLY
|
2012-06-12 09:56:24 +08:00
|
|
|
# define SEC_E_POLICY_NLTM_ONLY ((HRESULT)0x8009035FL)
|
2012-06-12 07:06:48 +08:00
|
|
|
#endif
|
2009-01-30 05:44:36 +08:00
|
|
|
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_I_CONTINUE_NEEDED
|
2012-06-12 09:56:24 +08:00
|
|
|
# define SEC_I_CONTINUE_NEEDED ((HRESULT)0x00090312L)
|
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_I_COMPLETE_NEEDED
|
2012-06-12 09:56:24 +08:00
|
|
|
# define SEC_I_COMPLETE_NEEDED ((HRESULT)0x00090313L)
|
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_I_COMPLETE_AND_CONTINUE
|
2012-06-12 09:56:24 +08:00
|
|
|
# define SEC_I_COMPLETE_AND_CONTINUE ((HRESULT)0x00090314L)
|
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_I_LOCAL_LOGON
|
2012-06-12 09:56:24 +08:00
|
|
|
# define SEC_I_LOCAL_LOGON ((HRESULT)0x00090315L)
|
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_I_CONTEXT_EXPIRED
|
2012-06-12 09:56:24 +08:00
|
|
|
# define SEC_I_CONTEXT_EXPIRED ((HRESULT)0x00090317L)
|
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_I_INCOMPLETE_CREDENTIALS
|
2012-06-12 09:56:24 +08:00
|
|
|
# define SEC_I_INCOMPLETE_CREDENTIALS ((HRESULT)0x00090320L)
|
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_I_RENEGOTIATE
|
2012-06-12 09:56:24 +08:00
|
|
|
# define SEC_I_RENEGOTIATE ((HRESULT)0x00090321L)
|
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_I_NO_LSA_CONTEXT
|
2012-06-12 09:56:24 +08:00
|
|
|
# define SEC_I_NO_LSA_CONTEXT ((HRESULT)0x00090323L)
|
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_I_SIGNATURE_NEEDED
|
2012-06-12 09:56:24 +08:00
|
|
|
# define SEC_I_SIGNATURE_NEEDED ((HRESULT)0x0009035CL)
|
|
|
|
#endif
|
2009-01-30 04:32:27 +08:00
|
|
|
|
2014-04-03 05:04:13 +08:00
|
|
|
#ifdef UNICODE
|
|
|
|
# define SECFLAG_WINNT_AUTH_IDENTITY \
|
|
|
|
(unsigned long)SEC_WINNT_AUTH_IDENTITY_UNICODE
|
|
|
|
#else
|
|
|
|
# define SECFLAG_WINNT_AUTH_IDENTITY \
|
|
|
|
(unsigned long)SEC_WINNT_AUTH_IDENTITY_ANSI
|
|
|
|
#endif
|
|
|
|
|
2009-01-30 04:32:27 +08:00
|
|
|
#endif /* USE_WINDOWS_SSPI */
|
|
|
|
#endif /* HEADER_CURL_SSPI_H */
|