Changes to allow compilation of GetRandom.c

BUG=none
TEST=compilation succeeds:
   cc -Wall -Werror -c -o /dev/null GetRandom.c

Change-Id: I16fcfb0149f07225746a9a25745fac5a40f89d39
Signed-off-by: Vadim Bendebury <vbendeb@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/274187
Reviewed-by: Utkarsh Sanghi <usanghi@chromium.org>
1 file changed
tree: 4d767594fa988b5564d411ab0f3347ec320dd3f2
  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. Attest_spt_fp.h
  15. BaseTypes.h
  16. Bits.c
  17. bits.h
  18. Bits_fp.h
  19. bool.h
  20. Cancel.c
  21. Capabilities.h
  22. Certify.c
  23. Certify_fp.h
  24. CertifyCreation.c
  25. CertifyCreation_fp.h
  26. ChangeEPS.c
  27. ChangeEPS_fp.h
  28. ChangePPS.c
  29. ChangePPS_fp.h
  30. Clear.c
  31. Clear_fp.h
  32. ClearControl.c
  33. ClearControl_fp.h
  34. Clock.c
  35. ClockRateAdjust.c
  36. ClockRateAdjust_fp.h
  37. ClockSet.c
  38. ClockSet_fp.h
  39. CommandAttributeData.c
  40. CommandAudit.c
  41. CommandAudit_fp.h
  42. CommandCodeAttributes.c
  43. CommandCodeAttributes_fp.h
  44. CommandDispatcher_fp.h
  45. Commands_fp.h
  46. COMMIT-QUEUE.ini
  47. Commit.c
  48. Commit_fp.h
  49. Context_spt.c
  50. Context_spt_fp.h
  51. ContextLoad.c
  52. ContextLoad_fp.h
  53. ContextSave.c
  54. ContextSave_fp.h
  55. CpriCryptPri.c
  56. CpriCryptPri_fp.h
  57. CpriDataEcc.c
  58. CpriDataEcc.h
  59. CpriECC.c
  60. CpriECC_fp.h
  61. CpriHash.c
  62. CpriHash_fp.h
  63. CpriHashData.c
  64. CpriMisc.c
  65. CpriMisc_fp.h
  66. CpriRNG.c
  67. CpriRNG_fp.h
  68. CpriRSA.c
  69. CpriRSA_fp.h
  70. CpriSym.c
  71. CpriSym_fp.h
  72. Create.c
  73. Create_fp.h
  74. CreatePrimary.c
  75. CreatePrimary_fp.h
  76. CryptoEngine.h
  77. CryptSelfTest.c
  78. CryptSelfTest_fp.h
  79. CryptUtil.c
  80. CryptUtil_fp.h
  81. DA.c
  82. DA_fp.h
  83. DictionaryAttackLockReset.c
  84. DictionaryAttackLockReset_fp.h
  85. DictionaryAttackParameters.c
  86. DictionaryAttackParameters_fp.h
  87. DRTM.c
  88. Duplicate.c
  89. Duplicate_fp.h
  90. EC_Ephemeral.c
  91. EC_Ephemeral_fp.h
  92. ECC_Parameters.c
  93. ECC_Parameters_fp.h
  94. ECDH_KeyGen.c
  95. ECDH_KeyGen_fp.h
  96. ECDH_ZGen.c
  97. ECDH_ZGen_fp.h
  98. EncryptDecrypt.c
  99. EncryptDecrypt_fp.h
  100. Entity.c
  101. Entity_fp.h
  102. Entropy.c
  103. EventSequenceComplete.c
  104. EventSequenceComplete_fp.h
  105. EvictControl.c
  106. EvictControl_fp.h
  107. ExecCommand.c
  108. FieldUpgradeData.c
  109. FieldUpgradeData_fp.h
  110. FieldUpgradeStart.c
  111. FieldUpgradeStart_fp.h
  112. FirmwareRead.c
  113. FirmwareRead_fp.h
  114. FlushContext.c
  115. FlushContext_fp.h
  116. GetCapability.c
  117. GetCapability_fp.h
  118. GetCommandAuditDigest.c
  119. GetCommandAuditDigest_fp.h
  120. GetRandom.c
  121. GetRandom_fp.h
  122. GetSessionAuditDigest.c
  123. GetTestResult.c
  124. GetTime.c
  125. Global.c
  126. Global.h
  127. Handle.c
  128. Handle_fp.h
  129. HandleProcess_fp.h
  130. Hash.c
  131. HashSequenceStart.c
  132. Hierarchy.c
  133. Hierarchy_fp.h
  134. HierarchyChangeAuth.c
  135. HierarchyControl.c
  136. HMAC.c
  137. HMAC_Start.c
  138. Implementation.h
  139. Import.c
  140. IncrementalSelfTest.c
  141. InternalRoutines.h
  142. LICENSE
  143. Load.c
  144. LoadExternal.c
  145. Locality.c
  146. Locality_fp.h
  147. LocalityPlat.c
  148. MakeCredential.c
  149. Makefile
  150. Manufacture.c
  151. Manufacture_fp.h
  152. Marshal.c
  153. marshal_fp.h
  154. MathFunctions.c
  155. MathFunctions_fp.h
  156. MemoryLib.c
  157. MemoryLib_fp.h
  158. NV.c
  159. NV_Certify.c
  160. NV_ChangeAuth.c
  161. NV_DefineSpace.c
  162. NV_Extend.c
  163. NV_fp.h
  164. NV_GlobalWriteLock.c
  165. NV_Increment.c
  166. NV_Read.c
  167. NV_ReadLock.c
  168. NV_ReadPublic.c
  169. NV_SetBits.c
  170. NV_spt.c
  171. NV_UndefineSpace.c
  172. NV_UndefineSpaceSpecial.c
  173. NV_Write.c
  174. NV_WriteLock.c
  175. NVMem.c
  176. Object.c
  177. Object_fp.h
  178. Object_spt.c
  179. Object_spt_fp.h
  180. ObjectChangeAuth.c
  181. OsslCryptoEngine.h
  182. parsep3
  183. parsep4
  184. part3.txt
  185. part4.txt
  186. PCR.c
  187. PCR_Allocate.c
  188. PCR_Event.c
  189. PCR_Extend.c
  190. PCR_fp.h
  191. PCR_Read.c
  192. PCR_Reset.c
  193. PCR_SetAuthPolicy.c
  194. PCR_SetAuthValue.c
  195. Platform.h
  196. PlatformData.c
  197. PlatformData.h
  198. Policy_spt.c
  199. PolicyAuthorize.c
  200. PolicyAuthValue.c
  201. PolicyCommandCode.c
  202. PolicyCounterTimer.c
  203. PolicyCpHash.c
  204. PolicyDuplicationSelect.c
  205. PolicyGetDigest.c
  206. PolicyLocality.c
  207. PolicyNameHash.c
  208. PolicyNV.c
  209. PolicyNvWritten.c
  210. PolicyOR.c
  211. PolicyPassword.c
  212. PolicyPCR.c
  213. PolicyPhysicalPresence.c
  214. PolicyRestart.c
  215. PolicySecret.c
  216. PolicySigned.c
  217. PolicyTicket.c
  218. Power.c
  219. Power_fp.h
  220. PowerPlat.c
  221. PP.c
  222. PP_Commands.c
  223. PP_fp.h
  224. PPPlat.c
  225. PRESUBMIT.cfg
  226. PropertyCap.c
  227. PropertyCap_fp.h
  228. Quote.c
  229. ReadClock.c
  230. README
  231. ReadPublic.c
  232. Rewrap.c
  233. RSA_Decrypt.c
  234. RSA_Encrypt.c
  235. RSAData.c
  236. RSAKeySieve.c
  237. RSAKeySieve.h
  238. RSAKeySieve_fp.h
  239. SelfTest.c
  240. SequenceComplete.c
  241. SequenceUpdate.c
  242. Session.c
  243. Session_fp.h
  244. SessionProcess.c
  245. SessionProcess_fp.h
  246. SetAlgorithmSet.c
  247. SetCommandCodeAuditStatus.c
  248. SetPrimaryPolicy.c
  249. Shutdown.c
  250. Sign.c
  251. StartAuthSession.c
  252. Startup.c
  253. StirRandom.c
  254. swap.h
  255. TcpServer.c
  256. TestParms.c
  257. Ticket.c
  258. Ticket_fp.h
  259. Time.c
  260. Time_fp.h
  261. Tpm.h
  262. TPM_Types.h
  263. TPMB.h
  264. TpmBuildSwitches.h
  265. TPMCmdp.c
  266. TPMCmds.c
  267. TpmError.h
  268. TpmFail.c
  269. TpmFail_fp.h
  270. TpmTcpProtocol.h
  271. Unique.c
  272. Unseal.c
  273. VendorString.h
  274. VerifySignature.c
  275. ZGen_2Phase.c