-
Notifications
You must be signed in to change notification settings - Fork 0
/
CredentialEx.go
30 lines (25 loc) · 981 Bytes
/
CredentialEx.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
package share
// RawCredentialEX is the information about credential with extra information, such as, dwTransports
//
// _WEBAUTHN_CREDENTIAL_EX
type RawCredentialEX struct {
// Version of this structure, to allow for modifications in the future.
Version uint32 // DWORD dwVersion;
// Size of pbID.
IDLen uint32 // DWORD cbId;
// Unique ID for this particular credential.
// _Field_size_bytes_(cbId)
InPtr *byte // PBYTE pbId;
// Well-known credential type specifying what this particular credential is.
CredentialType *uint16 // LPCWSTR pwszCredentialType;
// Transports. 0 implies no transport restrictions.
Transports uint32 // DWORD dwTransports;
}
// RawCredentialList is the information about credential list with extra information
//
// _WEBAUTHN_CREDENTIAL_LIST
type RawCredentialList struct {
Credentials uint32 // DWORD cCredentials;
// _Field_size_ (cCredentials)
CredentialsPtr *RawCredentialEX // PWEBAUTHN_CREDENTIAL_EX *ppCredentials
}