FreeRDP
Loading...
Searching...
No Matches
libwinpr/sspi/CredSSP/credssp.h
1
19
20
#ifndef WINPR_SSPI_CREDSSP_PRIVATE_H
21
#define WINPR_SSPI_CREDSSP_PRIVATE_H
22
23
#include <winpr/sspi.h>
24
25
#include "../sspi.h"
26
27
typedef
enum
28
{
29
CREDSSP_STATE_NEGO = 0,
/* exchanging the inner Negotiate (Kerberos/NTLM) tokens */
30
CREDSSP_STATE_PUBKEY,
/* sent pubKeyAuth, waiting for the server's response */
31
CREDSSP_STATE_DONE
/* sent the encrypted TSCredentials */
32
} CREDSSP_STATE;
33
34
typedef
struct
35
{
36
PSecurityFunctionTableW nego;
/* the WinPR Negotiate package */
37
CredHandle negoCred;
38
BOOL haveNegoCred;
39
DWORD flags;
/* CREDSSP_FLAG_REDIRECT for Remote Credential Guard */
40
SEC_WINNT_AUTH_IDENTITY_W
identity;
41
BOOL haveIdentity;
42
}
CREDSSP_CREDENTIALS
;
43
44
typedef
struct
45
{
46
BOOL server;
47
PSecurityFunctionTableW nego;
48
CtxtHandle negoCtx;
49
BOOL haveNegoCtx;
50
SecPkgContext_Sizes
sizes;
51
BOOL haveSizes;
52
SEC_WCHAR* targetName;
53
CREDSSP_STATE state;
54
DWORD flags;
55
UINT32 version;
/* CredSSP version we negotiate (6) */
56
UINT32 peerVersion;
/* 0 until the first server TSRequest */
57
ULONG sendSeqNum;
58
ULONG recvSeqNum;
59
SecBuffer
publicKey;
/* the server SubjectPublicKey, from the input READONLY|TOKEN buffer */
60
SecBuffer
clientNonce;
/* 32 random bytes, sent in clientNonce[5] */
61
SEC_WINNT_AUTH_IDENTITY_W
identity;
62
BOOL haveIdentity;
63
}
CREDSSP_CONTEXT
;
64
65
CREDSSP_CONTEXT
* credssp_ContextNew(
void
);
66
void
credssp_ContextFree(
CREDSSP_CONTEXT
* context);
67
68
extern
const
SecPkgInfoA
CREDSSP_SecPkgInfoA;
69
extern
const
SecPkgInfoW
CREDSSP_SecPkgInfoW;
70
extern
const
SecurityFunctionTableA
CREDSSP_SecurityFunctionTableA;
71
extern
const
SecurityFunctionTableW
CREDSSP_SecurityFunctionTableW;
72
73
BOOL CREDSSP_init(
void
);
74
75
#endif
/* WINPR_SSPI_CREDSSP_PRIVATE_H */
CREDSSP_CONTEXT
Definition
libwinpr/sspi/CredSSP/credssp.h:45
CREDSSP_CREDENTIALS
Definition
libwinpr/sspi/CredSSP/credssp.h:35
SEC_WINNT_AUTH_IDENTITY_W
Definition
include/winpr/sspi.h:713
SecBuffer
Definition
include/winpr/sspi.h:871
SecPkgContext_Sizes
Definition
include/winpr/sspi.h:451
SecPkgInfoA
Definition
include/winpr/sspi.h:71
SecPkgInfoW
Definition
include/winpr/sspi.h:82
SecurityFunctionTableA
Definition
include/winpr/sspi.h:1236
SecurityFunctionTableW
Definition
include/winpr/sspi.h:1270
winpr
libwinpr
sspi
CredSSP
credssp.h
Generated by
1.15.0