blob: 165dd2c475b6fb6ebdf34bc1c977a091c1fcafc5 [file] [log] [blame]
// Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
module crosapi.mojom;
// Status codes for KeystoreService methods.
// Mostly mirrors platform_keys::Status enum.
[Stable, Extensible, Default=kUnknown]
enum KeystoreError {
// platform_keys errors.
kUnknown,
kAlgorithmNotSupported,
kAlgorithmNotPermittedByCertificate,
kCertificateNotFound,
kCertificateInvalid,
kInputTooLong,
kGrantKeyPermissionForExtension,
kInternal,
kKeyAttributeRetrievalFailed,
kKeyAttributeSettingFailed,
kKeyNotAllowedForSigning,
kKeyNotFound,
// An operation was interrupted by shut down.
kShutDown,
// kNet* are for errors occurred during net::* operations.
kNetAddUserCertFailed,
kNetCertificateDateInvalid,
kNetCertificateInvalid,
// Keystore errors.
kUnsupportedKeystoreType,
[MinVersion=1]
kUnsupportedAlgorithmType,
[MinVersion=2]
kUnsupportedKeyTag,
};