Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions lib/auth/webauthnwin/ctypes.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ type webauthnRPEntityInformation struct {
// "Acme Corporation", "Widgets Inc" or "Awesome Site".
// This field is required.
pwszName *uint16

// RP icon (previously pwszIcon).
// This field is kept just to keep size of struct valid.
_ *uint16
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, if the size of the struct matters, shouldn't we be more explicit? A *uint16 can have different sizes on different platforms, no?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i believe we don't support 32bit tsh at all for windows

}

type webauthnUserEntityInformation struct {
Expand All @@ -46,6 +50,9 @@ type webauthnUserEntityInformation struct {
// "john.p.smith@example.com".
// It holds the Teleport user name.
pwszName *uint16
// User icon (previously pwszIcon).
// This field is kept just to keep size of struct valid.
_ *uint16
// For User: Contains the friendly name associated with the user account by the Relying Party, such as "John P. Smith".
pwszDisplayName *uint16
}
Expand Down