aboutsummaryrefslogtreecommitdiff
path: root/components/app/platform-inspect/attest_report_fetcher.h
blob: 75d171b9e1dc734d5460ecd6033f2f74c0858383 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/*
 * Copyright (c) 2021, Arm Limited and Contributors. All rights reserved.
 *
 * SPDX-License-Identifier: BSD-3-Clause
 */

#ifndef ATTEST_REPORT_FETCHER_H
#define ATTEST_REPORT_FETCHER_H

#include <string>
#include <vector>
#include <cstdint>

/** \brief Fetch and verify an attestaton report
 *
 * \param[out] report       The CBOR encoded report
 * \param[out] error_msg    Error message on failure
 *
 * \return Returns true if fetch successful
 */
bool fetch_attest_report(std::vector<uint8_t> &report, std::string &error_msg);


#endif /* ATTEST_REPORT_FETCHER_H */