]> git.proxmox.com Git - rustc.git/blob - vendor/windows-sys/src/Windows/Security/Cryptography/Certificates/mod.rs
New upstream version 1.63.0+dfsg1
[rustc.git] / vendor / windows-sys / src / Windows / Security / Cryptography / Certificates / mod.rs
1 pub type Certificate = *mut ::core::ffi::c_void;
2 pub type CertificateChain = *mut ::core::ffi::c_void;
3 #[doc = "*Required features: `\"Security_Cryptography_Certificates\"`*"]
4 #[repr(transparent)]
5 pub struct CertificateChainPolicy(pub i32);
6 impl CertificateChainPolicy {
7 pub const Base: Self = Self(0i32);
8 pub const Ssl: Self = Self(1i32);
9 pub const NTAuthentication: Self = Self(2i32);
10 pub const MicrosoftRoot: Self = Self(3i32);
11 }
12 impl ::core::marker::Copy for CertificateChainPolicy {}
13 impl ::core::clone::Clone for CertificateChainPolicy {
14 fn clone(&self) -> Self {
15 *self
16 }
17 }
18 pub type CertificateExtension = *mut ::core::ffi::c_void;
19 pub type CertificateKeyUsages = *mut ::core::ffi::c_void;
20 pub type CertificateQuery = *mut ::core::ffi::c_void;
21 pub type CertificateRequestProperties = *mut ::core::ffi::c_void;
22 pub type CertificateStore = *mut ::core::ffi::c_void;
23 pub type ChainBuildingParameters = *mut ::core::ffi::c_void;
24 pub type ChainValidationParameters = *mut ::core::ffi::c_void;
25 #[doc = "*Required features: `\"Security_Cryptography_Certificates\"`*"]
26 #[repr(transparent)]
27 pub struct ChainValidationResult(pub i32);
28 impl ChainValidationResult {
29 pub const Success: Self = Self(0i32);
30 pub const Untrusted: Self = Self(1i32);
31 pub const Revoked: Self = Self(2i32);
32 pub const Expired: Self = Self(3i32);
33 pub const IncompleteChain: Self = Self(4i32);
34 pub const InvalidSignature: Self = Self(5i32);
35 pub const WrongUsage: Self = Self(6i32);
36 pub const InvalidName: Self = Self(7i32);
37 pub const InvalidCertificateAuthorityPolicy: Self = Self(8i32);
38 pub const BasicConstraintsError: Self = Self(9i32);
39 pub const UnknownCriticalExtension: Self = Self(10i32);
40 pub const RevocationInformationMissing: Self = Self(11i32);
41 pub const RevocationFailure: Self = Self(12i32);
42 pub const OtherErrors: Self = Self(13i32);
43 }
44 impl ::core::marker::Copy for ChainValidationResult {}
45 impl ::core::clone::Clone for ChainValidationResult {
46 fn clone(&self) -> Self {
47 *self
48 }
49 }
50 pub type CmsAttachedSignature = *mut ::core::ffi::c_void;
51 pub type CmsDetachedSignature = *mut ::core::ffi::c_void;
52 pub type CmsSignerInfo = *mut ::core::ffi::c_void;
53 pub type CmsTimestampInfo = *mut ::core::ffi::c_void;
54 #[doc = "*Required features: `\"Security_Cryptography_Certificates\"`*"]
55 #[repr(transparent)]
56 pub struct EnrollKeyUsages(pub u32);
57 impl EnrollKeyUsages {
58 pub const None: Self = Self(0u32);
59 pub const Decryption: Self = Self(1u32);
60 pub const Signing: Self = Self(2u32);
61 pub const KeyAgreement: Self = Self(4u32);
62 pub const All: Self = Self(16777215u32);
63 }
64 impl ::core::marker::Copy for EnrollKeyUsages {}
65 impl ::core::clone::Clone for EnrollKeyUsages {
66 fn clone(&self) -> Self {
67 *self
68 }
69 }
70 #[doc = "*Required features: `\"Security_Cryptography_Certificates\"`*"]
71 #[repr(transparent)]
72 pub struct ExportOption(pub i32);
73 impl ExportOption {
74 pub const NotExportable: Self = Self(0i32);
75 pub const Exportable: Self = Self(1i32);
76 }
77 impl ::core::marker::Copy for ExportOption {}
78 impl ::core::clone::Clone for ExportOption {
79 fn clone(&self) -> Self {
80 *self
81 }
82 }
83 #[doc = "*Required features: `\"Security_Cryptography_Certificates\"`*"]
84 #[repr(transparent)]
85 pub struct InstallOptions(pub u32);
86 impl InstallOptions {
87 pub const None: Self = Self(0u32);
88 pub const DeleteExpired: Self = Self(1u32);
89 }
90 impl ::core::marker::Copy for InstallOptions {}
91 impl ::core::clone::Clone for InstallOptions {
92 fn clone(&self) -> Self {
93 *self
94 }
95 }
96 #[doc = "*Required features: `\"Security_Cryptography_Certificates\"`*"]
97 #[repr(transparent)]
98 pub struct KeyProtectionLevel(pub i32);
99 impl KeyProtectionLevel {
100 pub const NoConsent: Self = Self(0i32);
101 pub const ConsentOnly: Self = Self(1i32);
102 pub const ConsentWithPassword: Self = Self(2i32);
103 pub const ConsentWithFingerprint: Self = Self(3i32);
104 }
105 impl ::core::marker::Copy for KeyProtectionLevel {}
106 impl ::core::clone::Clone for KeyProtectionLevel {
107 fn clone(&self) -> Self {
108 *self
109 }
110 }
111 #[doc = "*Required features: `\"Security_Cryptography_Certificates\"`*"]
112 #[repr(transparent)]
113 pub struct KeySize(pub i32);
114 impl KeySize {
115 pub const Invalid: Self = Self(0i32);
116 pub const Rsa2048: Self = Self(2048i32);
117 pub const Rsa4096: Self = Self(4096i32);
118 }
119 impl ::core::marker::Copy for KeySize {}
120 impl ::core::clone::Clone for KeySize {
121 fn clone(&self) -> Self {
122 *self
123 }
124 }
125 pub type PfxImportParameters = *mut ::core::ffi::c_void;
126 #[doc = "*Required features: `\"Security_Cryptography_Certificates\"`*"]
127 #[repr(transparent)]
128 pub struct SignatureValidationResult(pub i32);
129 impl SignatureValidationResult {
130 pub const Success: Self = Self(0i32);
131 pub const InvalidParameter: Self = Self(1i32);
132 pub const BadMessage: Self = Self(2i32);
133 pub const InvalidSignature: Self = Self(3i32);
134 pub const OtherErrors: Self = Self(4i32);
135 }
136 impl ::core::marker::Copy for SignatureValidationResult {}
137 impl ::core::clone::Clone for SignatureValidationResult {
138 fn clone(&self) -> Self {
139 *self
140 }
141 }
142 pub type SubjectAlternativeNameInfo = *mut ::core::ffi::c_void;
143 pub type UserCertificateEnrollmentManager = *mut ::core::ffi::c_void;
144 pub type UserCertificateStore = *mut ::core::ffi::c_void;