]> git.proxmox.com Git - rustc.git/blob - vendor/windows-sys-0.28.0/src/Windows/Security/Authentication/Web/mod.rs
New upstream version 1.66.0+dfsg1
[rustc.git] / vendor / windows-sys-0.28.0 / src / Windows / Security / Authentication / Web / mod.rs
1 #![allow(non_snake_case, non_camel_case_types, non_upper_case_globals, clashing_extern_declarations, clippy::all)]
2 #[cfg(feature = "Security_Authentication_Web_Core")]
3 pub mod Core;
4 #[cfg(feature = "Security_Authentication_Web_Provider")]
5 pub mod Provider;
6 #[link(name = "windows")]
7 extern "system" {}
8 #[repr(transparent)]
9 pub struct TokenBindingKeyType(pub i32);
10 impl TokenBindingKeyType {
11 pub const Rsa2048: Self = Self(0i32);
12 pub const EcdsaP256: Self = Self(1i32);
13 pub const AnyExisting: Self = Self(2i32);
14 }
15 impl ::core::marker::Copy for TokenBindingKeyType {}
16 impl ::core::clone::Clone for TokenBindingKeyType {
17 fn clone(&self) -> Self {
18 *self
19 }
20 }
21 #[repr(transparent)]
22 pub struct WebAuthenticationOptions(pub u32);
23 impl WebAuthenticationOptions {
24 pub const None: Self = Self(0u32);
25 pub const SilentMode: Self = Self(1u32);
26 pub const UseTitle: Self = Self(2u32);
27 pub const UseHttpPost: Self = Self(4u32);
28 pub const UseCorporateNetwork: Self = Self(8u32);
29 }
30 impl ::core::marker::Copy for WebAuthenticationOptions {}
31 impl ::core::clone::Clone for WebAuthenticationOptions {
32 fn clone(&self) -> Self {
33 *self
34 }
35 }
36 pub type WebAuthenticationResult = *mut ::core::ffi::c_void;
37 #[repr(transparent)]
38 pub struct WebAuthenticationStatus(pub i32);
39 impl WebAuthenticationStatus {
40 pub const Success: Self = Self(0i32);
41 pub const UserCancel: Self = Self(1i32);
42 pub const ErrorHttp: Self = Self(2i32);
43 }
44 impl ::core::marker::Copy for WebAuthenticationStatus {}
45 impl ::core::clone::Clone for WebAuthenticationStatus {
46 fn clone(&self) -> Self {
47 *self
48 }
49 }