1 // Copyright © 2015, Peter Atashian
2 // Licensed under the MIT License <LICENSE.md>
3 //! Public Definitions for MIN SCHANNEL Security Provider
4 
5 pub const SECPKG_ATTR_ISSUER_LIST: ::DWORD = 0x50;
6 pub const SECPKG_ATTR_REMOTE_CRED: ::DWORD = 0x51;
7 pub const SECPKG_ATTR_LOCAL_CRED: ::DWORD = 0x52;
8 pub const SECPKG_ATTR_REMOTE_CERT_CONTEXT: ::DWORD = 0x53;
9 pub const SECPKG_ATTR_LOCAL_CERT_CONTEXT: ::DWORD = 0x54;
10 pub const SECPKG_ATTR_ROOT_STORE: ::DWORD = 0x55;
11 pub const SECPKG_ATTR_SUPPORTED_ALGS: ::DWORD = 0x56;
12 pub const SECPKG_ATTR_CIPHER_STRENGTHS: ::DWORD = 0x57;
13 pub const SECPKG_ATTR_SUPPORTED_PROTOCOLS: ::DWORD = 0x58;
14 pub const SECPKG_ATTR_ISSUER_LIST_EX: ::DWORD = 0x59;
15 pub const SECPKG_ATTR_CONNECTION_INFO: ::DWORD = 0x5a;
16 pub const SECPKG_ATTR_EAP_KEY_BLOCK: ::DWORD = 0x5b;
17 pub const SECPKG_ATTR_MAPPED_CRED_ATTR: ::DWORD = 0x5c;
18 pub const SECPKG_ATTR_SESSION_INFO: ::DWORD = 0x5d;
19 pub const SECPKG_ATTR_APP_DATA: ::DWORD = 0x5e;
20 pub const SECPKG_ATTR_REMOTE_CERTIFICATES: ::DWORD = 0x5F;
21 pub const SECPKG_ATTR_CLIENT_CERT_POLICY: ::DWORD = 0x60;
22 pub const SECPKG_ATTR_CC_POLICY_RESULT: ::DWORD = 0x61;
23 pub const SECPKG_ATTR_USE_NCRYPT: ::DWORD = 0x62;
24 pub const SECPKG_ATTR_LOCAL_CERT_INFO: ::DWORD = 0x63;
25 pub const SECPKG_ATTR_CIPHER_INFO: ::DWORD = 0x64;
26 pub const SECPKG_ATTR_EAP_PRF_INFO: ::DWORD = 0x65;
27 pub const SECPKG_ATTR_SUPPORTED_SIGNATURES: ::DWORD = 0x66;
28 pub const SECPKG_ATTR_REMOTE_CERT_CHAIN: ::DWORD = 0x67;
29 pub const SECPKG_ATTR_UI_INFO: ::DWORD = 0x68;
30 pub const SECPKG_ATTR_EARLY_START: ::DWORD = 0x69;
31 
32 STRUCT!{struct SecPkgCred_SupportedAlgs {
33 	cSupportedAlgs: ::DWORD,
34 	palgSupportedAlgs: ::ALG_ID,
35 }}
36 
37 STRUCT!{struct SecPkgCred_CipherStrengths {
38 	dwMinimumCipherStrength: ::DWORD,
39 	dwMaximumCipherStrength: ::DWORD,
40 }}
41 
42 STRUCT!{struct SecPkgCred_SupportedProtocols {
43 	grbitProtocol: ::DWORD,
44 }}
45 
46 STRUCT!{struct SecPkgCred_ClientCertPolicy {
47 	dwFlags: ::DWORD,
48 	guidPolicyId: ::GUID,
49 	dwCertFlags: ::DWORD,
50 	dwUrlRetrievalTimeout: ::DWORD,
51 	fCheckRevocationFreshnessTime: ::BOOL,
52 	dwRevocationFreshnessTime: ::DWORD,
53 	fOmitUsageCheck: ::BOOL,
54 	pwszSslCtlStoreName: ::LPWSTR,
55 	pwszSslCtlIdentifier: ::LPWSTR,
56 }}