blob: bfe28e92ae13e67d2a3ab614b2f1ca3a7001c2e5 [file] [log] [blame] [edit]
// Copyright 2021 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
library fuchsia.identity.credential;
/// Specific error codes returned by the Reset protocol.
type ResetError = flexible enum : uint32 {
// Failed to clear the disk state when wiping hardware backed credentials.
DISK_STATE_FAILED_TO_CLEAR = 1;
// Failed to clear the chip state when wiping hardware backed credentials.
CHIP_STATE_FAILED_TO_CLEAR = 2;
};
/// Reset is a small protocol intended to be used exclusively on factory reset
/// to reset any hardware backed credentials.
@discoverable
protocol Resetter {
/// Resets the sytem credential state. This is used when performing
/// a factory reset.
Reset() -> (struct {}) error ResetError;
};