Skip to content

chore: Use mkwinsyscall in lib/auth/webauthnwin#34737

Merged
codingllama merged 10 commits intomasterfrom
codingllama/dt-win-mkwinsyscall
Nov 21, 2023
Merged

chore: Use mkwinsyscall in lib/auth/webauthnwin#34737
codingllama merged 10 commits intomasterfrom
codingllama/dt-win-mkwinsyscall

Conversation

@codingllama
Copy link
Copy Markdown
Contributor

Use mkwinsyscall to generate the Windows boilerplate in lib/auth/webauthnwin.

Closes #31559.

@codingllama codingllama added backport/branch/v12 no-changelog Indicates that a PR does not require a changelog entry labels Nov 17, 2023
@codingllama
Copy link
Copy Markdown
Contributor Author

CC Zac and Noah as the resident Windows experts.

@codingllama
Copy link
Copy Markdown
Contributor Author

This took a lot more effort than it looks :/

Tested on Windows using tsh webauthnwin diag, which does a register+assert combo. Signatures match and generated code seems to be almost identical to what we had before.

Comment thread lib/auth/webauthnwin/syscall_windows.go Outdated
Copy link
Copy Markdown
Contributor

@strideynet strideynet left a comment

Choose a reason for hiding this comment

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

Much tidier !

@codingllama codingllama force-pushed the codingllama/dt-win-mkwinsyscall branch from 7283214 to b7697a4 Compare November 21, 2023 13:17
Copy link
Copy Markdown
Member

@ravicious ravicious left a comment

Choose a reason for hiding this comment

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

I compiled it on my Windows VM and ran tsh webauthnwin diag as well, using my regular key through Parallels.

@codingllama
Copy link
Copy Markdown
Contributor Author

Thanks for trying it out, Rafał!

@codingllama codingllama added this pull request to the merge queue Nov 21, 2023
Merged via the queue into master with commit 81bb289 Nov 21, 2023
@codingllama codingllama deleted the codingllama/dt-win-mkwinsyscall branch November 21, 2023 14:31
@public-teleport-github-review-bot
Copy link
Copy Markdown

@codingllama See the table below for backport results.

Branch Result
branch/v12 Create PR
branch/v13 Create PR
branch/v14 Create PR

Comment on lines -231 to -233
if err := modWebAuthn.Load(); err != nil {
return 0, err
}
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.

Note: removing the explicit load was the cause of #36851.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-changelog Indicates that a PR does not require a changelog entry size/sm

Projects

None yet

Development

Successfully merging this pull request may close these issues.

webauthnwin: generate types from windows webauthn header

4 participants