2009-01-30 04:32:27 +08:00
|
|
|
#ifndef HEADER_CURL_SSPI_H
|
|
|
|
#define HEADER_CURL_SSPI_H
|
|
|
|
/***************************************************************************
|
|
|
|
* _ _ ____ _
|
|
|
|
* Project ___| | | | _ \| |
|
|
|
|
* / __| | | | |_) | |
|
|
|
|
* | (__| |_| | _ <| |___
|
|
|
|
* \___|\___/|_| \_\_____|
|
|
|
|
*
|
2023-01-02 20:51:48 +08:00
|
|
|
* Copyright (C) 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
|
2020-11-04 21:02:01 +08:00
|
|
|
* are also available at https://curl.se/docs/copyright.html.
|
2009-01-30 04:32:27 +08:00
|
|
|
*
|
|
|
|
* 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.
|
|
|
|
*
|
2014-04-03 05:04:13 +08:00
|
|
|
* SPDX-License-Identifier: curl
|
2022-05-17 17:16:50 +08:00
|
|
|
*
|
2009-01-30 04:32:27 +08:00
|
|
|
***************************************************************************/
|
|
|
|
|
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
|
|
|
|
2015-04-26 22:12:23 +08:00
|
|
|
/* This is used to populate the domain in a SSPI identity structure */
|
|
|
|
CURLcode Curl_override_sspi_http_realm(const char *chlg,
|
|
|
|
SEC_WINNT_AUTH_IDENTITY *identity);
|
|
|
|
|
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 */
|
2014-11-05 19:43:22 +08:00
|
|
|
#define SP_NAME_DIGEST "WDigest"
|
|
|
|
#define SP_NAME_NTLM "NTLM"
|
|
|
|
#define SP_NAME_NEGOTIATE "Negotiate"
|
|
|
|
#define SP_NAME_KERBEROS "Kerberos"
|
2012-06-12 09:56:24 +08:00
|
|
|
|
2014-11-06 20:59:57 +08:00
|
|
|
#ifndef ISC_REQ_USE_HTTP_STYLE
|
|
|
|
#define ISC_REQ_USE_HTTP_STYLE 0x01000000
|
|
|
|
#endif
|
|
|
|
|
2014-12-30 08:11:27 +08:00
|
|
|
#ifndef ISC_RET_REPLAY_DETECT
|
|
|
|
#define ISC_RET_REPLAY_DETECT 0x00000004
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef ISC_RET_SEQUENCE_DETECT
|
|
|
|
#define ISC_RET_SEQUENCE_DETECT 0x00000008
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef ISC_RET_CONFIDENTIALITY
|
|
|
|
#define ISC_RET_CONFIDENTIALITY 0x00000010
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef ISC_RET_ALLOCATED_MEMORY
|
|
|
|
#define ISC_RET_ALLOCATED_MEMORY 0x00000100
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef ISC_RET_STREAM
|
|
|
|
#define ISC_RET_STREAM 0x00008000
|
|
|
|
#endif
|
|
|
|
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_E_INSUFFICIENT_MEMORY
|
2014-11-06 21:09:48 +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
|
2014-11-06 21:09:48 +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
|
2014-11-06 21:09:48 +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
|
2014-11-06 21:09:48 +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
|
2014-11-06 21:09:48 +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
|
2014-11-06 21:09:48 +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
|
2014-11-06 21:09:48 +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
|
2014-11-06 21:09:48 +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
|
2014-11-06 21:09:48 +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
|
2014-11-06 21:09:48 +08:00
|
|
|
# define SEC_E_CANNOT_PACK ((HRESULT)0x80090309L)
|
2012-06-12 09:56:24 +08:00
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_E_QOP_NOT_SUPPORTED
|
2014-11-06 21:09:48 +08:00
|
|
|
# define SEC_E_QOP_NOT_SUPPORTED ((HRESULT)0x8009030AL)
|
2012-06-12 09:56:24 +08:00
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_E_NO_IMPERSONATION
|
2014-11-06 21:09:48 +08:00
|
|
|
# define SEC_E_NO_IMPERSONATION ((HRESULT)0x8009030BL)
|
2012-06-12 09:56:24 +08:00
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_E_LOGON_DENIED
|
2014-11-06 21:09:48 +08:00
|
|
|
# define SEC_E_LOGON_DENIED ((HRESULT)0x8009030CL)
|
2012-06-12 09:56:24 +08:00
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_E_UNKNOWN_CREDENTIALS
|
2014-11-06 21:09:48 +08:00
|
|
|
# define SEC_E_UNKNOWN_CREDENTIALS ((HRESULT)0x8009030DL)
|
2012-06-12 09:56:24 +08:00
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_E_NO_CREDENTIALS
|
2014-11-06 21:09:48 +08:00
|
|
|
# define SEC_E_NO_CREDENTIALS ((HRESULT)0x8009030EL)
|
2012-06-12 09:56:24 +08:00
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_E_MESSAGE_ALTERED
|
2014-11-06 21:09:48 +08:00
|
|
|
# define SEC_E_MESSAGE_ALTERED ((HRESULT)0x8009030FL)
|
2012-06-12 09:56:24 +08:00
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_E_OUT_OF_SEQUENCE
|
2014-11-06 21:09:48 +08:00
|
|
|
# define SEC_E_OUT_OF_SEQUENCE ((HRESULT)0x80090310L)
|
2012-06-12 09:56:24 +08:00
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_E_NO_AUTHENTICATING_AUTHORITY
|
2014-11-06 21:09:48 +08:00
|
|
|
# define SEC_E_NO_AUTHENTICATING_AUTHORITY ((HRESULT)0x80090311L)
|
2012-06-12 09:56:24 +08:00
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_E_BAD_PKGID
|
2014-11-06 21:09:48 +08:00
|
|
|
# define SEC_E_BAD_PKGID ((HRESULT)0x80090316L)
|
2012-06-12 09:56:24 +08:00
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_E_CONTEXT_EXPIRED
|
2014-11-06 21:09:48 +08:00
|
|
|
# define SEC_E_CONTEXT_EXPIRED ((HRESULT)0x80090317L)
|
2012-06-12 09:56:24 +08:00
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_E_INCOMPLETE_MESSAGE
|
2014-11-06 21:09:48 +08:00
|
|
|
# define SEC_E_INCOMPLETE_MESSAGE ((HRESULT)0x80090318L)
|
2012-06-12 09:56:24 +08:00
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_E_INCOMPLETE_CREDENTIALS
|
2014-11-06 21:09:48 +08:00
|
|
|
# define SEC_E_INCOMPLETE_CREDENTIALS ((HRESULT)0x80090320L)
|
2012-06-12 09:56:24 +08:00
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_E_BUFFER_TOO_SMALL
|
2014-11-06 21:09:48 +08:00
|
|
|
# define SEC_E_BUFFER_TOO_SMALL ((HRESULT)0x80090321L)
|
2012-06-12 09:56:24 +08:00
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_E_WRONG_PRINCIPAL
|
2014-11-06 21:09:48 +08:00
|
|
|
# define SEC_E_WRONG_PRINCIPAL ((HRESULT)0x80090322L)
|
2012-06-12 09:56:24 +08:00
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_E_TIME_SKEW
|
2014-11-06 21:09:48 +08:00
|
|
|
# define SEC_E_TIME_SKEW ((HRESULT)0x80090324L)
|
2012-06-12 09:56:24 +08:00
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_E_UNTRUSTED_ROOT
|
2014-11-06 21:09:48 +08:00
|
|
|
# define SEC_E_UNTRUSTED_ROOT ((HRESULT)0x80090325L)
|
2012-06-12 09:56:24 +08:00
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_E_ILLEGAL_MESSAGE
|
2014-11-06 21:09:48 +08:00
|
|
|
# define SEC_E_ILLEGAL_MESSAGE ((HRESULT)0x80090326L)
|
2012-06-12 09:56:24 +08:00
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_E_CERT_UNKNOWN
|
2014-11-06 21:09:48 +08:00
|
|
|
# define SEC_E_CERT_UNKNOWN ((HRESULT)0x80090327L)
|
2012-06-12 09:56:24 +08:00
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_E_CERT_EXPIRED
|
2014-11-06 21:09:48 +08:00
|
|
|
# define SEC_E_CERT_EXPIRED ((HRESULT)0x80090328L)
|
2012-06-12 09:56:24 +08:00
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_E_ENCRYPT_FAILURE
|
2014-11-06 21:09:48 +08:00
|
|
|
# define SEC_E_ENCRYPT_FAILURE ((HRESULT)0x80090329L)
|
2012-06-12 09:56:24 +08:00
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_E_DECRYPT_FAILURE
|
2014-11-06 21:09:48 +08:00
|
|
|
# define SEC_E_DECRYPT_FAILURE ((HRESULT)0x80090330L)
|
2012-06-12 09:56:24 +08:00
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_E_ALGORITHM_MISMATCH
|
2014-11-06 21:09:48 +08:00
|
|
|
# define SEC_E_ALGORITHM_MISMATCH ((HRESULT)0x80090331L)
|
2012-06-12 09:56:24 +08:00
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_E_SECURITY_QOS_FAILED
|
2014-11-06 21:09:48 +08:00
|
|
|
# define SEC_E_SECURITY_QOS_FAILED ((HRESULT)0x80090332L)
|
2012-06-12 09:56:24 +08:00
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_E_UNFINISHED_CONTEXT_DELETED
|
2014-11-06 21:09:48 +08:00
|
|
|
# define SEC_E_UNFINISHED_CONTEXT_DELETED ((HRESULT)0x80090333L)
|
2012-06-12 09:56:24 +08:00
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_E_NO_TGT_REPLY
|
2014-11-06 21:09:48 +08:00
|
|
|
# define SEC_E_NO_TGT_REPLY ((HRESULT)0x80090334L)
|
2012-06-12 09:56:24 +08:00
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_E_NO_IP_ADDRESSES
|
2014-11-06 21:09:48 +08:00
|
|
|
# define SEC_E_NO_IP_ADDRESSES ((HRESULT)0x80090335L)
|
2012-06-12 09:56:24 +08:00
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_E_WRONG_CREDENTIAL_HANDLE
|
2014-11-06 21:09:48 +08:00
|
|
|
# define SEC_E_WRONG_CREDENTIAL_HANDLE ((HRESULT)0x80090336L)
|
2012-06-12 09:56:24 +08:00
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_E_CRYPTO_SYSTEM_INVALID
|
2014-11-06 21:09:48 +08:00
|
|
|
# define SEC_E_CRYPTO_SYSTEM_INVALID ((HRESULT)0x80090337L)
|
2012-06-12 09:56:24 +08:00
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_E_MAX_REFERRALS_EXCEEDED
|
2014-11-06 21:09:48 +08:00
|
|
|
# define SEC_E_MAX_REFERRALS_EXCEEDED ((HRESULT)0x80090338L)
|
2012-06-12 09:56:24 +08:00
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_E_MUST_BE_KDC
|
2014-11-06 21:09:48 +08:00
|
|
|
# define SEC_E_MUST_BE_KDC ((HRESULT)0x80090339L)
|
2012-06-12 09:56:24 +08:00
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_E_STRONG_CRYPTO_NOT_SUPPORTED
|
2014-11-06 21:09:48 +08:00
|
|
|
# define SEC_E_STRONG_CRYPTO_NOT_SUPPORTED ((HRESULT)0x8009033AL)
|
2012-06-12 09:56:24 +08:00
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_E_TOO_MANY_PRINCIPALS
|
2014-11-06 21:09:48 +08:00
|
|
|
# define SEC_E_TOO_MANY_PRINCIPALS ((HRESULT)0x8009033BL)
|
2012-06-12 09:56:24 +08:00
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_E_NO_PA_DATA
|
2014-11-06 21:09:48 +08:00
|
|
|
# define SEC_E_NO_PA_DATA ((HRESULT)0x8009033CL)
|
2012-06-12 09:56:24 +08:00
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_E_PKINIT_NAME_MISMATCH
|
2014-11-06 21:09:48 +08:00
|
|
|
# define SEC_E_PKINIT_NAME_MISMATCH ((HRESULT)0x8009033DL)
|
2012-06-12 09:56:24 +08:00
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_E_SMARTCARD_LOGON_REQUIRED
|
2014-11-06 21:09:48 +08:00
|
|
|
# define SEC_E_SMARTCARD_LOGON_REQUIRED ((HRESULT)0x8009033EL)
|
2012-06-12 09:56:24 +08:00
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_E_SHUTDOWN_IN_PROGRESS
|
2014-11-06 21:09:48 +08:00
|
|
|
# define SEC_E_SHUTDOWN_IN_PROGRESS ((HRESULT)0x8009033FL)
|
2012-06-12 09:56:24 +08:00
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_E_KDC_INVALID_REQUEST
|
2014-11-06 21:09:48 +08:00
|
|
|
# define SEC_E_KDC_INVALID_REQUEST ((HRESULT)0x80090340L)
|
2012-06-12 09:56:24 +08:00
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_E_KDC_UNABLE_TO_REFER
|
2014-11-06 21:09:48 +08:00
|
|
|
# define SEC_E_KDC_UNABLE_TO_REFER ((HRESULT)0x80090341L)
|
2012-06-12 09:56:24 +08:00
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_E_KDC_UNKNOWN_ETYPE
|
2014-11-06 21:09:48 +08:00
|
|
|
# define SEC_E_KDC_UNKNOWN_ETYPE ((HRESULT)0x80090342L)
|
2012-06-12 09:56:24 +08:00
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_E_UNSUPPORTED_PREAUTH
|
2014-11-06 21:09:48 +08:00
|
|
|
# define SEC_E_UNSUPPORTED_PREAUTH ((HRESULT)0x80090343L)
|
2012-06-12 09:56:24 +08:00
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_E_DELEGATION_REQUIRED
|
2014-11-06 21:09:48 +08:00
|
|
|
# define SEC_E_DELEGATION_REQUIRED ((HRESULT)0x80090345L)
|
2012-06-12 09:56:24 +08:00
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_E_BAD_BINDINGS
|
2014-11-06 21:09:48 +08:00
|
|
|
# define SEC_E_BAD_BINDINGS ((HRESULT)0x80090346L)
|
2012-06-12 09:56:24 +08:00
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_E_MULTIPLE_ACCOUNTS
|
2014-11-06 21:09:48 +08:00
|
|
|
# define SEC_E_MULTIPLE_ACCOUNTS ((HRESULT)0x80090347L)
|
2012-06-12 09:56:24 +08:00
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_E_NO_KERB_KEY
|
2014-11-06 21:09:48 +08:00
|
|
|
# define SEC_E_NO_KERB_KEY ((HRESULT)0x80090348L)
|
2012-06-12 09:56:24 +08:00
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_E_CERT_WRONG_USAGE
|
2014-11-06 21:09:48 +08:00
|
|
|
# define SEC_E_CERT_WRONG_USAGE ((HRESULT)0x80090349L)
|
2012-06-12 09:56:24 +08:00
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_E_DOWNGRADE_DETECTED
|
2014-11-06 21:09:48 +08:00
|
|
|
# define SEC_E_DOWNGRADE_DETECTED ((HRESULT)0x80090350L)
|
2012-06-12 09:56:24 +08:00
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_E_SMARTCARD_CERT_REVOKED
|
2014-11-06 21:09:48 +08:00
|
|
|
# define SEC_E_SMARTCARD_CERT_REVOKED ((HRESULT)0x80090351L)
|
2012-06-12 09:56:24 +08:00
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_E_ISSUING_CA_UNTRUSTED
|
2014-11-06 21:09:48 +08:00
|
|
|
# define SEC_E_ISSUING_CA_UNTRUSTED ((HRESULT)0x80090352L)
|
2012-06-12 09:56:24 +08:00
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_E_REVOCATION_OFFLINE_C
|
2014-11-06 21:09:48 +08:00
|
|
|
# define SEC_E_REVOCATION_OFFLINE_C ((HRESULT)0x80090353L)
|
2012-06-12 09:56:24 +08:00
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_E_PKINIT_CLIENT_FAILURE
|
2014-11-06 21:09:48 +08:00
|
|
|
# define SEC_E_PKINIT_CLIENT_FAILURE ((HRESULT)0x80090354L)
|
2012-06-12 09:56:24 +08:00
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_E_SMARTCARD_CERT_EXPIRED
|
2014-11-06 21:09:48 +08:00
|
|
|
# define SEC_E_SMARTCARD_CERT_EXPIRED ((HRESULT)0x80090355L)
|
2012-06-12 09:56:24 +08:00
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_E_NO_S4U_PROT_SUPPORT
|
2014-11-06 21:09:48 +08:00
|
|
|
# define SEC_E_NO_S4U_PROT_SUPPORT ((HRESULT)0x80090356L)
|
2012-06-12 09:56:24 +08:00
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_E_CROSSREALM_DELEGATION_FAILURE
|
2014-11-06 21:09:48 +08:00
|
|
|
# define SEC_E_CROSSREALM_DELEGATION_FAILURE ((HRESULT)0x80090357L)
|
2012-06-12 09:56:24 +08:00
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_E_REVOCATION_OFFLINE_KDC
|
2014-11-06 21:09:48 +08:00
|
|
|
# define SEC_E_REVOCATION_OFFLINE_KDC ((HRESULT)0x80090358L)
|
2012-06-12 09:56:24 +08:00
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_E_ISSUING_CA_UNTRUSTED_KDC
|
2014-11-06 21:09:48 +08:00
|
|
|
# define SEC_E_ISSUING_CA_UNTRUSTED_KDC ((HRESULT)0x80090359L)
|
2012-06-12 09:56:24 +08:00
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_E_KDC_CERT_EXPIRED
|
2014-11-06 21:09:48 +08:00
|
|
|
# define SEC_E_KDC_CERT_EXPIRED ((HRESULT)0x8009035AL)
|
2012-06-12 09:56:24 +08:00
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_E_KDC_CERT_REVOKED
|
2014-11-06 21:09:48 +08:00
|
|
|
# define SEC_E_KDC_CERT_REVOKED ((HRESULT)0x8009035BL)
|
2012-06-12 09:56:24 +08:00
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_E_INVALID_PARAMETER
|
2014-11-06 21:09:48 +08:00
|
|
|
# define SEC_E_INVALID_PARAMETER ((HRESULT)0x8009035DL)
|
2012-06-12 09:56:24 +08:00
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_E_DELEGATION_POLICY
|
2014-11-06 21:09:48 +08:00
|
|
|
# define SEC_E_DELEGATION_POLICY ((HRESULT)0x8009035EL)
|
2012-06-12 09:56:24 +08:00
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_E_POLICY_NLTM_ONLY
|
2014-11-06 21:09:48 +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
|
2014-11-06 21:09:48 +08:00
|
|
|
# define SEC_I_CONTINUE_NEEDED ((HRESULT)0x00090312L)
|
2012-06-12 09:56:24 +08:00
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_I_COMPLETE_NEEDED
|
2014-11-06 21:09:48 +08:00
|
|
|
# define SEC_I_COMPLETE_NEEDED ((HRESULT)0x00090313L)
|
2012-06-12 09:56:24 +08:00
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_I_COMPLETE_AND_CONTINUE
|
2014-11-06 21:09:48 +08:00
|
|
|
# define SEC_I_COMPLETE_AND_CONTINUE ((HRESULT)0x00090314L)
|
2012-06-12 09:56:24 +08:00
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_I_LOCAL_LOGON
|
2014-11-06 21:09:48 +08:00
|
|
|
# define SEC_I_LOCAL_LOGON ((HRESULT)0x00090315L)
|
2012-06-12 09:56:24 +08:00
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_I_CONTEXT_EXPIRED
|
2014-11-06 21:09:48 +08:00
|
|
|
# define SEC_I_CONTEXT_EXPIRED ((HRESULT)0x00090317L)
|
2012-06-12 09:56:24 +08:00
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_I_INCOMPLETE_CREDENTIALS
|
2014-11-06 21:09:48 +08:00
|
|
|
# define SEC_I_INCOMPLETE_CREDENTIALS ((HRESULT)0x00090320L)
|
2012-06-12 09:56:24 +08:00
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_I_RENEGOTIATE
|
2014-11-06 21:09:48 +08:00
|
|
|
# define SEC_I_RENEGOTIATE ((HRESULT)0x00090321L)
|
2012-06-12 09:56:24 +08:00
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_I_NO_LSA_CONTEXT
|
2014-11-06 21:09:48 +08:00
|
|
|
# define SEC_I_NO_LSA_CONTEXT ((HRESULT)0x00090323L)
|
2012-06-12 09:56:24 +08:00
|
|
|
#endif
|
2012-06-12 11:36:08 +08:00
|
|
|
#ifndef SEC_I_SIGNATURE_NEEDED
|
2014-11-06 21:09:48 +08:00
|
|
|
# define SEC_I_SIGNATURE_NEEDED ((HRESULT)0x0009035CL)
|
2012-06-12 09:56:24 +08:00
|
|
|
#endif
|
2009-01-30 04:32:27 +08:00
|
|
|
|
2015-09-10 14:17:33 +08:00
|
|
|
#ifndef CRYPT_E_REVOKED
|
|
|
|
# define CRYPT_E_REVOKED ((HRESULT)0x80092010L)
|
|
|
|
#endif
|
|
|
|
|
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
|
|
|
|
|
2014-08-14 05:59:28 +08:00
|
|
|
/*
|
|
|
|
* Definitions required from ntsecapi.h are directly provided below this point
|
|
|
|
* to avoid including ntsecapi.h due to a conflict with OpenSSL's safestack.h
|
|
|
|
*/
|
|
|
|
#define KERB_WRAP_NO_ENCRYPT 0x80000001
|
|
|
|
|
2009-01-30 04:32:27 +08:00
|
|
|
#endif /* USE_WINDOWS_SSPI */
|
2014-08-14 05:59:28 +08:00
|
|
|
|
2009-01-30 04:32:27 +08:00
|
|
|
#endif /* HEADER_CURL_SSPI_H */
|