OSDN Git Service

3d26aa2a8309e190f5a09655d74c827e9aad1c9b
[mingw/mingw-org-wsl.git] / include / security.h
1 /**
2  * @file security.h
3  * @copy 2012 MinGW.org project
4  *
5  * Permission is hereby granted, free of charge, to any person obtaining a
6  * copy of this software and associated documentation files (the "Software"),
7  * to deal in the Software without restriction, including without limitation
8  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
9  * and/or sell copies of the Software, and to permit persons to whom the
10  * Software is furnished to do so, subject to the following conditions:
11  * 
12  * The above copyright notice and this permission notice (including the next
13  * paragraph) shall be included in all copies or substantial portions of the
14  * Software.
15  * 
16  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19  * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21  * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
22  * DEALINGS IN THE SOFTWARE.
23  */
24 #ifndef _SECURITY_H
25 #define _SECURITY_H
26 #pragma GCC system_header
27
28
29 #define SEC_E_OK 0
30 #define SEC_E_CERT_EXPIRED (-2146893016)
31 #define SEC_E_INCOMPLETE_MESSAGE (-2146893032)
32 #define SEC_E_INSUFFICIENT_MEMORY (-2146893056)
33 #define SEC_E_INTERNAL_ERROR (-2146893052)
34 #define SEC_E_INVALID_HANDLE (-2146893055)
35 #define SEC_E_INVALID_TOKEN (-2146893048)
36 #define SEC_E_LOGON_DENIED (-2146893044)
37 #define SEC_E_NO_AUTHENTICATING_AUTHORITY (-2146893039)
38 #define SEC_E_NO_CREDENTIALS (-2146893042)
39 #define SEC_E_TARGET_UNKNOWN (-2146893053)
40 #define SEC_E_UNSUPPORTED_FUNCTION (-2146893054)
41 #define SEC_E_UNTRUSTED_ROOT (-2146893019)
42 #define SEC_E_WRONG_PRINCIPAL (-2146893022)
43 #define SEC_E_SECPKG_NOT_FOUND (-2146893051)
44 #define SEC_E_QOP_NOT_SUPPORTED (-2146893046)
45 #define SEC_E_UNKNOWN_CREDENTIALS (-2146893043)
46 #define SEC_E_NOT_OWNER (-2146893050)
47 #define SEC_I_RENEGOTIATE 590625
48 #define SEC_I_COMPLETE_AND_CONTINUE 590612
49 #define SEC_I_COMPLETE_NEEDED 590611
50 #define SEC_I_CONTINUE_NEEDED 590610
51 #define SEC_I_INCOMPLETE_CREDENTIALS 590624
52
53 /* always a char */
54 typedef char SEC_CHAR;
55 typedef wchar_t SEC_WCHAR;
56 typedef long SECURITY_STATUS;
57 #define SEC_FAR
58
59 #include <sspi.h>
60 #include <ntsecpkg.h>
61 #include <secext.h>
62
63 #endif /* _SECURITY_H */