From 65955f553b3742f433d4d8d6e94f93bc8c6ee0fb Mon Sep 17 00:00:00 2001 From: Yu Shan Date: Mon, 9 Apr 2018 12:28:10 +0800 Subject: [iot] Support reading ATAP certificate UUID from keymaster Add API and IPC calls to read the ATAP certificate UUID from keymaster. Also rename const local variables to the standard convention. This cherry-picked the CL 649562 from trusty/external/trusty. Bug: 76211194 Change-Id: I98ab68180c3855e07884994dc20b879f0b59965d Signed-off-by: Haoran.Wang --- include/trusty/keymaster.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'include/trusty/keymaster.h') diff --git a/include/trusty/keymaster.h b/include/trusty/keymaster.h index e69527e0fa..beb2ff9578 100644 --- a/include/trusty/keymaster.h +++ b/include/trusty/keymaster.h @@ -108,4 +108,13 @@ int trusty_atap_get_ca_request(const uint8_t *operation_start, int trusty_atap_set_ca_response(const uint8_t *ca_response, uint32_t ca_response_size); +/* +* Reads the UUID from the certificate of the last provisioned attestation +* credentials as a c-string into |*uuid_p|. Caller takes ownership of +* |*uuid_p|. Returns one of trusty_err. +* +* @uuid_p: location of newly allocated UUID c-string +*/ +int trusty_atap_read_uuid_str(char **uuid_p); + #endif /* TRUSTY_KEYMASTER_H_ */ -- cgit v1.2.3