FreeRDP
secapi.h
1 
20 #ifndef WINPR_SECAPI_H_
21 #define WINPR_SECAPI_H_
22 
23 #ifdef _WIN32
24 #define _NTDEF_
25 #include <ntsecapi.h>
26 #else
27 
28 #include <winpr/wtypes.h>
29 
30 typedef enum
31 {
32  KerbInvalidValue = 0,
33  KerbInteractiveLogon = 2,
34  KerbSmartCardLogon = 6,
35  KerbWorkstationUnlockLogon = 7,
36  KerbSmartCardUnlockLogon = 8,
37  KerbProxyLogon = 9,
38  KerbTicketLogon = 10,
39  KerbTicketUnlockLogon = 11,
40  KerbS4ULogon = 12,
41  KerbCertificateLogon = 13,
42  KerbCertificateS4ULogon = 14,
43  KerbCertificateUnlockLogon = 15,
44  KerbNoElevationLogon = 83,
45  KerbLuidLogon = 84
46 } KERB_LOGON_SUBMIT_TYPE,
47  *PKERB_LOGON_SUBMIT_TYPE;
48 
49 typedef struct
50 {
51  KERB_LOGON_SUBMIT_TYPE MessageType;
52  ULONG Flags;
53  ULONG ServiceTicketLength;
54  ULONG TicketGrantingTicketLength;
55  PUCHAR ServiceTicket;
56  PUCHAR TicketGrantingTicket;
58 
59 #define KERB_LOGON_FLAG_ALLOW_EXPIRED_TICKET 0x1
60 
61 #define MSV1_0_OWF_PASSWORD_LENGTH 16
62 
63 typedef struct
64 {
65  ULONG Version;
66  ULONG Flags;
67  UCHAR LmPassword[MSV1_0_OWF_PASSWORD_LENGTH];
68  UCHAR NtPassword[MSV1_0_OWF_PASSWORD_LENGTH];
70 
71 #define MSV1_0_CRED_VERSION_REMOTE 0xffff0002
72 
73 #endif /* _WIN32 */
74 
75 #ifndef KERB_LOGON_FLAG_REDIRECTED
76 #define KERB_LOGON_FLAG_REDIRECTED 0x2
77 #endif
78 
79 #endif /* WINPR_SECAPI_H_ */