FreeRDP
cred.h
1 
19 #ifndef WINPR_CRED_H_
20 #define WINPR_CRED_H_
21 
22 #include <winpr/winpr.h>
23 
24 #ifdef _WIN32
25 #include <wincred.h>
26 #else
27 
28 #define CERT_HASH_LENGTH 20
29 
30 typedef enum
31 {
32  CertCredential,
33  UsernameTargetCredential,
34  BinaryBlobCredential,
35  UsernameForPackedCredentials,
36  BinaryBlobForSystem
37 } CRED_MARSHAL_TYPE,
38  *PCRED_MARSHAL_TYPE;
39 
40 typedef struct
41 {
42  ULONG cbSize;
43  UCHAR rgbHashOfCert[CERT_HASH_LENGTH];
45 
46 #if 0 /* shall we implement these ? */
47 WINPR_API BOOL CredMarshalCredentialA(CRED_MARSHAL_TYPE CredType, PVOID Credential,
48  LPSTR* MarshaledCredential);
49 WINPR_API BOOL CredMarshalCredentialW(CRED_MARSHAL_TYPE CredType, PVOID Credential,
50  LPWSTR* MarshaledCredential);
51 
52 #ifdef UNICODE
53 #define CredMarshalCredential CredMarshalCredentialW
54 #else
55 #define CredMarshalCredential CredMarshalCredentialA
56 #endif
57 
58 #endif /* 0 */
59 
60 #endif /* _WIN32 */
61 
62 #endif /* WINPR_CRED_H_ */