feat: add secure host based config (sbhc) helpers to create response messages, use 16993 instead of 16992 if secure host configuration set.

This commit is contained in:
Mudit Vats
2021-02-24 14:42:48 -07:00
parent 13975eaf2d
commit 6eecea264e
6 changed files with 160 additions and 5 deletions

19
shbc.h Normal file
View File

@@ -0,0 +1,19 @@
/*********************************************************************
* Copyright (c) Intel Corporation 2019 - 2020
* SPDX-License-Identifier: Apache-2.0
**********************************************************************/
#ifndef __SHBC_H__
#define __SHBC_H__
#include <string>
#ifdef _WIN32
#define convertstring to_utf16string
#else
#define convertstring to_utf8string
#endif
bool shbc_create_response(std::string cert_algo, std::string cert_hash, std::string& response);
#endif