Skip to content

Commit c7a9103

Browse files
author
vlad
committed
Added Machine-ID (as interpreted by Phala)
1 parent 9c70bec commit c7a9103

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

App/App.cpp

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,18 @@ void CheckQuote(const uint8_t* pQuote, uint32_t nQuote)
534534
printf("PPID: ");
535535
PrintHex(ms.m_p, ms.m_n);
536536
printf("\n");
537+
538+
static const uint8_t ppid_inner_oid[] = {
539+
0x06, 0x0A, 0x2A, 0x86, 0x48, 0x86, 0xF8, 0x4D, 0x01, 0x0D, 0x01, 0x01
540+
};
537541

542+
ms = FindAsn1Value(ms, ppid_inner_oid, sizeof(ppid_inner_oid));
543+
if (ms.m_p)
544+
{
545+
printf("Machine-ID: ");
546+
PrintHex(ms.m_p, ms.m_n);
547+
printf("\n");
548+
}
538549
}
539550

540551
int SGX_CDECL main(int argc, char *argv[])

0 commit comments

Comments
 (0)