tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit b4f44dfecb7947da0308ee1d8b3de64a674d9870
parent b892fb0096ffd322c8b7c3d8e99cc098d05da4fc
Author: John M. Schanck <jschanck@mozilla.com>
Date:   Sat, 20 Dec 2025 00:07:47 +0000

Bug 2006405 - fix PRF extension handling in passkey creation on windows. r=keeler

Differential Revision: https://phabricator.services.mozilla.com/D277263

Diffstat:
Mdom/webauthn/WinWebAuthnService.cpp | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/dom/webauthn/WinWebAuthnService.cpp b/dom/webauthn/WinWebAuthnService.cpp @@ -529,7 +529,9 @@ WinWebAuthnService::MakeCredential(uint64_t aTransactionId, nsTArray<uint8_t> prfEvalFirst; nsTArray<uint8_t> prfEvalSecond; WEBAUTHN_HMAC_SECRET_SALT prfGlobalEval = {0}; + PWEBAUTHN_HMAC_SECRET_SALT pPrfGlobalEval = NULL; if (requestedPrf) { + pPrfGlobalEval = &prfGlobalEval; rv = aArgs->GetPrfEvalFirst(prfEvalFirst); if (rv == NS_OK) { prfGlobalEval.cbFirst = prfEvalFirst.Length(); @@ -652,7 +654,7 @@ WinWebAuthnService::MakeCredential(uint64_t aTransactionId, NULL, // LinkedDevice 0, // size of JsonExt NULL, // JsonExt - &prfGlobalEval, // PRFGlobalEval + pPrfGlobalEval, // PRFGlobalEval (DWORD)hints.Length(), // Size of CredentialHints hints.Elements(), // CredentialHints };