• Martin Kreichgauer's avatar
    fido/win: gate Windows WebAuthn API availability on a minimum version · dfbcc8a5
    Martin Kreichgauer authored
    There are versions of webauthn.dll that ship without BLE support. On
    platforms where that is the case, direct access to FIDO token is not
    blocked by the OS and so we don't want to integrate with webauthn.dll
    there. This changes WinWebAuthnApi to call WebAuthNGetApiVersion on
    initialization and mark the API as unavailable if the version number is
     not at least the current version (1).
    
    The check may be overridden by a flag while we wait for
    WebAuthNGetApiVersion function to ship.
    
    Bug: 898718
    Change-Id: Ic20e55a416d858214b9f444031f4700567933eb4
    Reviewed-on: https://chromium-review.googlesource.com/c/1327885
    Commit-Queue: Martin Kreichgauer <martinkr@chromium.org>
    Reviewed-by: default avatarAdam Langley <agl@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#607005}
    dfbcc8a5
features.cc 1.16 KB