Commit c6918431 authored by Yves Arrouye's avatar Yves Arrouye Committed by Commit Bot

Add Zero-Touch to the options for initial enrollment

When the management server sends this new option, wire it to an
unescapable Zero-Touch flow.

Bug: chromium:891281
Test: N/A for now as the server doesn't return this option
Change-Id: Iaaa3dd531ccb8f8a5fb2788ca61171ad8abc487e
Reviewed-on: https://chromium-review.googlesource.com/1256906Reviewed-by: default avatarMaksim Ivanov <emaxx@chromium.org>
Commit-Queue: Yves Arrouye <drcrash@chromium.org>
Cr-Commit-Position: refs/heads/master@{#595878}
parent 5802234e
......@@ -111,6 +111,9 @@ std::string ConvertInitialEnrollmentMode(
case em::DeviceInitialEnrollmentStateResponse::
INITIAL_ENROLLMENT_MODE_ENROLLMENT_ENFORCED:
return kDeviceStateRestoreModeReEnrollmentEnforced;
case em::DeviceInitialEnrollmentStateResponse::
INITIAL_ENROLLMENT_MODE_ZERO_TOUCH_ENFORCED:
return kDeviceStateRestoreModeReEnrollmentZeroTouch;
}
}
......
......@@ -1271,6 +1271,9 @@ message DeviceInitialEnrollmentStateResponse {
INITIAL_ENROLLMENT_MODE_NONE = 0;
// Enterprise enrollment is enforced and cannot be skipped.
INITIAL_ENROLLMENT_MODE_ENROLLMENT_ENFORCED = 1;
// Zero-Touch (attestation-based) enrollment is enforced and cannot be
// skipped.
INITIAL_ENROLLMENT_MODE_ZERO_TOUCH_ENFORCED = 2;
};
// The server-indicated initial enrollment mode.
optional InitialEnrollmentMode initial_enrollment_mode = 1
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment