• Jun Choi's avatar
    Stop request when device errors out on GetInfo · 8e2860a5
    Jun Choi authored
    Currently when FidoDevice fails on AuthenticatorGetInfo command, we
    assume that the device supports U2F protocol and initiate U2F request.
    Prior to initiating request, check whether AuthenticatorGetInfo command
    failed due to any device communication error. If the failure was caused
    by device error, drop remaining requests on the device. Also, to prevent
    similar failures, always check for device state before dispatching
    consecutive requests to authenticators.
    
    Bug: 872293
    Change-Id: I82d83975eec8177adb447e5e94711126884f5b5f
    Reviewed-on: https://chromium-review.googlesource.com/1168505
    Commit-Queue: Jun Choi <hongjunchoi@chromium.org>
    Reviewed-by: default avatarJan Wilken Dörrie <jdoerrie@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#585744}
    8e2860a5
fido_hid_device.cc 13.5 KB