910e62b5创建于 1月15日历史提交
// Copyright 2025 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef REMOTING_HOST_MAC_TRUST_UTIL_H_
#define REMOTING_HOST_MAC_TRUST_UTIL_H_

#include <Security/Security.h>

#include <string_view>

#include "base/containers/span.h"

namespace remoting {

// Validates the signature for the provided `audit_token` and returns true if
// the process is trusted. Note that this always returns true on non-official
// builds.
// `identifiers`: A list of bundle identifiers to check against. Examples are
//     "com.google.chromeremotedesktop.me2me-host" and "com.google.Chrome".
bool IsProcessTrusted(audit_token_t audit_token,
                      base::span<const std::string_view> identifiers);

}  // namespace remoting

#endif  // REMOTING_HOST_MAC_TRUST_UTIL_H_