Changes to allow compilation of ActivateCredential.c

This patch provides plumbing necessary to compile
ActivateCredential.c. Most of the new files are currently empty - they
are listed as includes, but no information from them is required for
this particular compilation.

The *_fp.h files provide necessary function prototypes, only few of
these prototypes are required at this time.

TPM_Types.h is a purged copy of

https://github.com/tianocore/edk2.git:MdePkg/Include/IndustryStandard/Tpm20.h

(at e9a1e37), which can not be copied directly due to some definition
collisions with this package. Some more items will be copied later.

BUG=none
TEST=running make now results in the ./build directory created:
  $ make 2>/dev/null > /dev/null  # Suppress other compile errors
  $ ls build
  ActivateCredential.o

Change-Id: Ie3e52923306d33ee697e2b9e739f715cbb8913aa
Signed-off-by: Vadim Bendebury <[email protected]>
40 files changed
tree: beee1db4a13901b29c81461f9eeb3361f6175733
  1. .gitignore
  2. _TPM_Hash_Data.c
  3. _TPM_Hash_Data_fp.h
  4. _TPM_Hash_End.c
  5. _TPM_Hash_End_fp.h
  6. _TPM_Hash_Start.c
  7. _TPM_Hash_Start_fp.h
  8. _TPM_Init.c
  9. ActivateCredential.c
  10. ActivateCredential_fp.h
  11. AlgorithmCap.c
  12. AlgorithmCap_fp.h
  13. Attest_spt.c
  14. BaseTypes.h
  15. Bits.c
  16. bits.h
  17. Bits_fp.h
  18. bool.h
  19. Cancel.c
  20. Capabilities.h
  21. Certify.c
  22. CertifyCreation.c
  23. ChangeEPS.c
  24. ChangePPS.c
  25. Clear.c
  26. ClearControl.c
  27. Clock.c
  28. ClockRateAdjust.c
  29. ClockSet.c
  30. CommandAttributeData.c
  31. CommandAudit.c
  32. CommandAudit_fp.h
  33. CommandCodeAttributes.c
  34. CommandCodeAttributes_fp.h
  35. Commands_fp.h
  36. COMMIT-QUEUE.ini
  37. Commit.c
  38. Context_spt.c
  39. ContextLoad.c
  40. ContextSave.c
  41. CpriCryptPri.c
  42. CpriCryptPri_fp.h
  43. CpriDataEcc.c
  44. CpriDataEcc.h
  45. CpriECC.c
  46. CpriECC_fp.h
  47. CpriHash.c
  48. CpriHash_fp.h
  49. CpriHashData.c
  50. CpriMisc.c
  51. CpriRNG.c
  52. CpriRNG_fp.h
  53. CpriRSA.c
  54. CpriRSA_fp.h
  55. CpriSym.c
  56. CpriSym_fp.h
  57. Create.c
  58. CreatePrimary.c
  59. CryptoEngine.h
  60. CryptSelfTest.c
  61. CryptSelfTest_fp.h
  62. CryptUtil.c
  63. CryptUtil_fp.h
  64. DA.c
  65. DA_fp.h
  66. DictionaryAttackLockReset.c
  67. DictionaryAttackParameters.c
  68. DRTM.c
  69. Duplicate.c
  70. EC_Ephemeral.c
  71. ECC_Parameters.c
  72. ECDH_KeyGen.c
  73. ECDH_ZGen.c
  74. EncryptDecrypt.c
  75. Entity.c
  76. Entity_fp.h
  77. Entropy.c
  78. EventSequenceComplete.c
  79. EvictControl.c
  80. ExecCommand.c
  81. FieldUpgradeData.c
  82. FieldUpgradeStart.c
  83. FirmwareRead.c
  84. FlushContext.c
  85. GetCapability.c
  86. GetCommandAuditDigest.c
  87. GetRandom.c
  88. GetSessionAuditDigest.c
  89. GetTestResult.c
  90. GetTime.c
  91. Global.c
  92. Global.h
  93. Handle.c
  94. Handle_fp.h
  95. Hash.c
  96. HashSequenceStart.c
  97. Hierarchy.c
  98. Hierarchy_fp.h
  99. HierarchyChangeAuth.c
  100. HierarchyControl.c
  101. HMAC.c
  102. HMAC_Start.c
  103. Implementation.h
  104. Import.c
  105. IncrementalSelfTest.c
  106. InternalRoutines.h
  107. LICENSE
  108. Load.c
  109. LoadExternal.c
  110. Locality.c
  111. Locality_fp.h
  112. LocalityPlat.c
  113. MakeCredential.c
  114. Makefile
  115. Manufacture.c
  116. Manufacture_fp.h
  117. Marshal.c
  118. marshal_fp.h
  119. MathFunctions.c
  120. MathFunctions_fp.h
  121. MemoryLib.c
  122. MemoryLib_fp.h
  123. NV.c
  124. NV_Certify.c
  125. NV_ChangeAuth.c
  126. NV_DefineSpace.c
  127. NV_Extend.c
  128. NV_fp.h
  129. NV_GlobalWriteLock.c
  130. NV_Increment.c
  131. NV_Read.c
  132. NV_ReadLock.c
  133. NV_ReadPublic.c
  134. NV_SetBits.c
  135. NV_spt.c
  136. NV_UndefineSpace.c
  137. NV_UndefineSpaceSpecial.c
  138. NV_Write.c
  139. NV_WriteLock.c
  140. NVMem.c
  141. Object.c
  142. Object_fp.h
  143. Object_spt.c
  144. Object_spt_fp.h
  145. ObjectChangeAuth.c
  146. OsslCryptoEngine.h
  147. parsep3
  148. parsep4
  149. part3.txt
  150. part4.txt
  151. PCR.c
  152. PCR_Allocate.c
  153. PCR_Event.c
  154. PCR_Extend.c
  155. PCR_fp.h
  156. PCR_Read.c
  157. PCR_Reset.c
  158. PCR_SetAuthPolicy.c
  159. PCR_SetAuthValue.c
  160. Platform.h
  161. PlatformData.c
  162. PlatformData.h
  163. Policy_spt.c
  164. PolicyAuthorize.c
  165. PolicyAuthValue.c
  166. PolicyCommandCode.c
  167. PolicyCounterTimer.c
  168. PolicyCpHash.c
  169. PolicyDuplicationSelect.c
  170. PolicyGetDigest.c
  171. PolicyLocality.c
  172. PolicyNameHash.c
  173. PolicyNV.c
  174. PolicyNvWritten.c
  175. PolicyOR.c
  176. PolicyPassword.c
  177. PolicyPCR.c
  178. PolicyPhysicalPresence.c
  179. PolicyRestart.c
  180. PolicySecret.c
  181. PolicySigned.c
  182. PolicyTicket.c
  183. Power.c
  184. Power_fp.h
  185. PowerPlat.c
  186. PP.c
  187. PP_Commands.c
  188. PP_fp.h
  189. PPPlat.c
  190. PRESUBMIT.cfg
  191. PropertyCap.c
  192. PropertyCap_fp.h
  193. Quote.c
  194. ReadClock.c
  195. README
  196. ReadPublic.c
  197. Rewrap.c
  198. RSA_Decrypt.c
  199. RSA_Encrypt.c
  200. RSAData.c
  201. RSAKeySieve.c
  202. RSAKeySieve.h
  203. SelfTest.c
  204. SequenceComplete.c
  205. SequenceUpdate.c
  206. Session.c
  207. Session_fp.h
  208. SessionProcess.c
  209. SetAlgorithmSet.c
  210. SetCommandCodeAuditStatus.c
  211. SetPrimaryPolicy.c
  212. Shutdown.c
  213. Sign.c
  214. StartAuthSession.c
  215. Startup.c
  216. StirRandom.c
  217. swap.h
  218. TcpServer.c
  219. TestParms.c
  220. Ticket.c
  221. Ticket_fp.h
  222. Time.c
  223. Time_fp.h
  224. Tpm.h
  225. TPM_Types.h
  226. TPMB.h
  227. TpmBuildSwitches.h
  228. TPMCmdp.c
  229. TPMCmds.c
  230. TpmError.h
  231. TpmFail.c
  232. TpmFail_fp.h
  233. TpmTcpProtocol.h
  234. Unique.c
  235. Unseal.c
  236. VendorString.h
  237. VerifySignature.c
  238. ZGen_2Phase.c