• Pavol Marko's avatar
    Add support for forced initial enrollment check · 055e83c3
    Pavol Marko authored
    Add support for the forced initial enrollment check in
    AutoEnrollmentClient. This check uses a different identifier set, 8 byte
    hashes and a different message for the state download.
    The differences are abstracted by using two virtual classes with
    different implementations for FRE/initial enrollment checks:
    DeviceIdentifierProvider specifies the identifier set and hashes, and
    StateDownloadMessageProcessor understands fills state download requests
    and parses state download responses.
    
    Bug: 839353
    Test: unit_tests --gtest_filter=*AutoEnrollmentClientTest*
    Change-Id: I83d041f568d84c42b9b8cf00a1e44955f9d5abe3
    Reviewed-on: https://chromium-review.googlesource.com/1049929
    Commit-Queue: Pavol Marko <pmarko@chromium.org>
    Reviewed-by: default avatarMaksim Ivanov <emaxx@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#557627}
    055e83c3
auto_enrollment_client.cc 26.1 KB