schannel.h revision 554f00fe75489f3f3ce7fbb6d126ce1d2c5c922c
/*
* Copyright (C) 2005 Juan Lang
*
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
/*
* Sun LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
* other than GPL or LGPL is available it will apply instead, Sun elects to use only
* the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
* a choice of LGPL license versions is made available with the language indicating
* that LGPLv2 or any later version may be used, or where a choice of which version
* of the LGPL is applied is otherwise unspecified.
*/
#ifndef __WINE_SCHANNEL_H__
#define __WINE_SCHANNEL_H__
#include <wincrypt.h>
/* Package names */
#define UNISP_NAME_A "Microsoft Unified Security Protocol Provider"
#if defined(__GNUC__)
' ','U','n','i','f','i','e','d',' ','S','e','c','u','r','i','t','y',' ',\
'P','r','o','t','o','c','o','l',' ','P','r','o','v','i','d','e','r',0 }
#define UNISP_NAME_W L"Microsoft Unified Security Protocol Provider"
#else
' ','U','n','i','f','i','e','d',' ','S','e','c','u','r','i','t','y',' ',
'P','r','o','t','o','c','o','l',' ','P','r','o','v','i','d','e','r',0 };
#endif
#define SSL2SP_NAME_A "Microsoft SSL 2.0"
#if defined(__GNUC__)
' ','S','S','L',' ','2','.','0',0 }
#define SSL2SP_NAME_W L"Microsoft SSL 2.0"
#else
' ','S','S','L',' ','2','.','0',0 };
#endif
#define SSL3SP_NAME_A "Microsoft SSL 3.0"
#if defined(__GNUC__)
' ','S','S','L',' ','3','.','0',0 }
#define SSL3SP_NAME_W L"Microsoft SSL 3.0"
#else
' ','S','S','L',' ','3','.','0',0 };
#endif
#define TLS1SP_NAME_A "Microsoft TLS 1.0"
#if defined(__GNUC__)
' ','T','L','S',' ','1','.','0',0 }
#define TLS1SP_NAME_W L"Microsoft TLS 1.0"
#else
' ','T','L','S',' ','1','.','0',0 };
#endif
#define PCT1SP_NAME_A "Microsoft PCT 1.0"
#if defined(__GNUC__)
' ','P','C','T',' ','1','.','0',0 }
#define PCT1SP_NAME_W L"Microsoft PCT 1.0"
#else
' ','P','C','T',' ','1','.','0',0 };
#endif
#define SCHANNEL_NAME_A "Schannel"
#if defined(__GNUC__)
#define SCHANNEL_NAME_W L"Schannel"
#else
#endif
#define SCH_CRED_V1 1
#define SCH_CRED_V2 2
#define SCH_CRED_VERSION 2
#define SCH_CRED_V3 3
#define SCHANNEL_CRED_VERSION 4
#define SCHANNEL_RENEGOTIATE 0
#define SCHANNEL_SHUTDOWN 1
#define SCHANNEL_ALERT 2
#define SCHANNEL_SESSION 3
#define SP_PROT_TLS1_CLIENT 128
#define SP_PROT_TLS1_SERVER 64
#define SP_PROT_SSL3_CLIENT 32
#define SP_PROT_SSL3_SERVER 16
#define SP_PROT_SSL2_CLIENT 8
#define SP_PROT_SSL2_SERVER 4
#define SP_PROT_PCT1_CLIENT 2
#define SP_PROT_PCT1_SERVER 1
#define SCH_CRED_NO_SYSTEM_MAPPER 2
#define SCH_CRED_NO_SERVERNAME_CHECK 4
#define SCH_CRED_MANUAL_CRED_VALIDATION 8
#define SCH_CRED_NO_DEFAULT_CREDS 16
#define SCH_CRED_AUTO_CRED_VALIDATION 32
#define SCH_CRED_USE_DEFAULT_CREDS 64
#define SCH_CRED_REVOCATION_CHECK_CHAIN_END_CERT 256
#define SCH_CRED_REVOCATION_CHECK_CHAIN 512
#define SCH_CRED_REVOCATION_CHECK_CHAIN_EXCLUDE_ROOT 1024
#define SCH_CRED_IGNORE_NO_REVOCATION_CHECK 2048
#define SCH_CRED_IGNORE_REVOCATION_OFFLINE 4096
#define SECPKG_ATTR_ISSUER_LIST 0x50
#define SECPKG_ATTR_REMOTE_CRED 0x51
#define SECPKG_ATTR_LOCAL_CRED 0x52
#define SECPKG_ATTR_REMOTE_CERT_CONTEXT 0x53
#define SECPKG_ATTR_LOCAL_CERT_CONTEXT 0x54
#define SECPKG_ATTR_ROOT_STORE 0x55
#define SECPKG_ATTR_SUPPORTED_ALGS 0x56
#define SECPKG_ATTR_CIPHER_STRENGTHS 0x57
#define SECPKG_ATTR_SUPPORTED_PROTOCOLS 0x58
#define SECPKG_ATTR_ISSUER_LIST_EX 0x59
#define SECPKG_ATTR_CONNECTION_INFO 0x5a
#define SECPKG_ATTR_EAP_KEY_BLOCK 0x5b
#define SECPKG_ATTR_MAPPED_CRED_ATTR 0x5c
#define SECPKG_ATTR_SESSION_INFO 0x5d
#define SECPKG_ATTR_APP_DATA 0x5e
#define UNISP_RPC_ID 14
struct _HMAPPER;
typedef struct _SCHANNEL_CRED
{
struct _HMAPPER **aphMappers;
typedef struct _SecPkgCred_SupportedAlgs
{
typedef struct _SecPkgCred_CipherStrengths
{
typedef struct _SecPkgCred_SupportedProtocols
{
typedef struct _SecPkgContext_IssuerListInfoEx
{
typedef struct _SecPkgContext_ConnectionInfo
{
#endif /* __WINE_SCHANNEL_H__ */