blob: aca1e2e046491090378d26a0d5bcf2b0ad94ed71 [file] [log] [blame]
// Copyright 2022 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CRYPTOHOME_AUTH_INPUT_UTILS_H_
#define CRYPTOHOME_AUTH_INPUT_UTILS_H_
#include <optional>
#include <string>
#include <cryptohome/proto_bindings/auth_factor.pb.h>
#include "cryptohome/key_objects.h"
namespace cryptohome {
// Converts the AuthInput D-Bus proto into the cryptohome struct.
std::optional<AuthInput> FromProto(
const user_data_auth::AuthInput& auth_input_proto,
const std::string& obfuscated_username,
bool locked_to_single_user);
} // namespace cryptohome
#endif // CRYPTOHOME_AUTH_INPUT_UTILS_H_