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\"`*"]
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);
12 impl ::core
::marker
::Copy
for CertificateChainPolicy {}
13 impl ::core
::clone
::Clone
for CertificateChainPolicy
{
14 fn clone(&self) -> Self {
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\"`*"]
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);
44 impl ::core
::marker
::Copy
for ChainValidationResult {}
45 impl ::core
::clone
::Clone
for ChainValidationResult
{
46 fn clone(&self) -> Self {
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\"`*"]
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);
64 impl ::core
::marker
::Copy
for EnrollKeyUsages {}
65 impl ::core
::clone
::Clone
for EnrollKeyUsages
{
66 fn clone(&self) -> Self {
70 #[doc = "*Required features: `\"Security_Cryptography_Certificates\"`*"]
72 pub struct ExportOption(pub i32);
74 pub const NotExportable
: Self = Self(0i32);
75 pub const Exportable
: Self = Self(1i32);
77 impl ::core
::marker
::Copy
for ExportOption {}
78 impl ::core
::clone
::Clone
for ExportOption
{
79 fn clone(&self) -> Self {
83 #[doc = "*Required features: `\"Security_Cryptography_Certificates\"`*"]
85 pub struct InstallOptions(pub u32);
87 pub const None
: Self = Self(0u32);
88 pub const DeleteExpired
: Self = Self(1u32);
90 impl ::core
::marker
::Copy
for InstallOptions {}
91 impl ::core
::clone
::Clone
for InstallOptions
{
92 fn clone(&self) -> Self {
96 #[doc = "*Required features: `\"Security_Cryptography_Certificates\"`*"]
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);
105 impl ::core
::marker
::Copy
for KeyProtectionLevel {}
106 impl ::core
::clone
::Clone
for KeyProtectionLevel
{
107 fn clone(&self) -> Self {
111 #[doc = "*Required features: `\"Security_Cryptography_Certificates\"`*"]
113 pub struct KeySize(pub i32);
115 pub const Invalid
: Self = Self(0i32);
116 pub const Rsa2048
: Self = Self(2048i32);
117 pub const Rsa4096
: Self = Self(4096i32);
119 impl ::core
::marker
::Copy
for KeySize {}
120 impl ::core
::clone
::Clone
for KeySize
{
121 fn clone(&self) -> Self {
125 pub type PfxImportParameters
= *mut ::core
::ffi
::c_void
;
126 #[doc = "*Required features: `\"Security_Cryptography_Certificates\"`*"]
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);
136 impl ::core
::marker
::Copy
for SignatureValidationResult {}
137 impl ::core
::clone
::Clone
for SignatureValidationResult
{
138 fn clone(&self) -> Self {
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
;