Fapi_GetInfo.3 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. .TH "Fapi_GetInfo" 3 "Fri Oct 7 2022" "Version 3.2.0" "tpm2-tss" \" -*- nroff -*-
  2. .ad l
  3. .nh
  4. .SH NAME
  5. Fapi_GetInfo
  6. .SH SYNOPSIS
  7. .br
  8. .PP
  9. .SS "Functions"
  10. .in +1c
  11. .ti -1c
  12. .RI "TSS2_RC \fBFapi_GetInfo\fP (\fBFAPI_CONTEXT\fP *context, char **info)"
  13. .br
  14. .ti -1c
  15. .RI "TSS2_RC \fBFapi_GetInfo_Async\fP (\fBFAPI_CONTEXT\fP *context)"
  16. .br
  17. .ti -1c
  18. .RI "TSS2_RC \fBFapi_GetInfo_Finish\fP (\fBFAPI_CONTEXT\fP *context, char **info)"
  19. .br
  20. .in -1c
  21. .SH "Detailed Description"
  22. .PP
  23. FAPI functions to invoke GetInfo either as one-call or in an asynchronous manner\&.
  24. .SH "Function Documentation"
  25. .PP
  26. .SS "Fapi_GetInfo (\fBFAPI_CONTEXT\fP * context, char ** info)"
  27. One-Call function for Fapi_GetInfo
  28. .PP
  29. Returns a UTF-8 encoded string that identifies the versions of FAPI, TPM, configurations and other relevant information\&.
  30. .PP
  31. \fBParameters:\fP
  32. .RS 4
  33. \fIcontext\fP The \fBFAPI_CONTEXT\fP
  34. .br
  35. \fIinfo\fP The byte buffer for the information string
  36. .RE
  37. .PP
  38. \fBReturn values:\fP
  39. .RS 4
  40. \fITSS2_RC_SUCCESS\fP if the function call was a success\&.
  41. .br
  42. \fITSS2_FAPI_RC_BAD_REFERENCE\fP if context or info is NULL\&.
  43. .br
  44. \fITSS2_FAPI_RC_BAD_CONTEXT\fP if context corruption is detected\&.
  45. .br
  46. \fITSS2_FAPI_RC_BAD_SEQUENCE\fP if the context has an asynchronous operation already pending\&.
  47. .br
  48. \fITSS2_FAPI_RC_IO_ERROR\fP if the data cannot be saved\&.
  49. .br
  50. \fITSS2_FAPI_RC_MEMORY\fP if the FAPI cannot allocate enough memory for internal operations or return parameters\&.
  51. .br
  52. \fITSS2_FAPI_RC_NO_TPM\fP if FAPI was initialized in no-TPM-mode via its config file\&.
  53. .br
  54. \fITSS2_FAPI_RC_TRY_AGAIN\fP if an I/O operation is not finished yet and this function needs to be called again\&.
  55. .br
  56. \fITSS2_FAPI_RC_GENERAL_FAILURE\fP if an internal error occurred\&.
  57. .br
  58. \fITSS2_FAPI_RC_BAD_VALUE\fP if an invalid value was passed into the function\&.
  59. .br
  60. \fITSS2_ESYS_RC_*\fP possible error codes of ESAPI\&.
  61. .RE
  62. .PP
  63. .SS "Fapi_GetInfo_Async (\fBFAPI_CONTEXT\fP * context)"
  64. Asynchronous function for Fapi_GetInfo
  65. .PP
  66. Returns a UTF-8 encoded string that identifies the versions of FAPI, TPM, configurations and other relevant information\&.
  67. .PP
  68. Call Fapi_GetInfo_Finish to finish the execution of this command\&.
  69. .PP
  70. \fBParameters:\fP
  71. .RS 4
  72. \fIcontext\fP The \fBFAPI_CONTEXT\fP
  73. .RE
  74. .PP
  75. \fBReturn values:\fP
  76. .RS 4
  77. \fITSS2_RC_SUCCESS\fP if the function call was a success\&.
  78. .br
  79. \fITSS2_FAPI_RC_BAD_REFERENCE\fP if context is NULL\&.
  80. .br
  81. \fITSS2_FAPI_RC_BAD_CONTEXT\fP if context corruption is detected\&.
  82. .br
  83. \fITSS2_FAPI_RC_BAD_SEQUENCE\fP if the context has an asynchronous operation already pending\&.
  84. .br
  85. \fITSS2_FAPI_RC_IO_ERROR\fP if the data cannot be saved\&.
  86. .br
  87. \fITSS2_FAPI_RC_MEMORY\fP if the FAPI cannot allocate enough memory for internal operations or return parameters\&.
  88. .br
  89. \fITSS2_FAPI_RC_NO_TPM\fP if FAPI was initialized in no-TPM-mode via its config file\&.
  90. .RE
  91. .PP
  92. .SS "Fapi_GetInfo_Finish (\fBFAPI_CONTEXT\fP * context, char ** info)"
  93. Asynchronous finish function for Fapi_GetInfo
  94. .PP
  95. This function should be called after a previous Fapi_GetInfo_Async\&.
  96. .PP
  97. \fBParameters:\fP
  98. .RS 4
  99. \fIcontext\fP The \fBFAPI_CONTEXT\fP
  100. .br
  101. \fIinfo\fP The byte buffer for the information string
  102. .RE
  103. .PP
  104. \fBReturn values:\fP
  105. .RS 4
  106. \fITSS2_RC_SUCCESS\fP if the function call was a success\&.
  107. .br
  108. \fITSS2_FAPI_RC_BAD_REFERENCE\fP if context or info is NULL\&.
  109. .br
  110. \fITSS2_FAPI_RC_BAD_CONTEXT\fP if context corruption is detected\&.
  111. .br
  112. \fITSS2_FAPI_RC_BAD_SEQUENCE\fP if the context has an asynchronous operation already pending\&.
  113. .br
  114. \fITSS2_FAPI_RC_IO_ERROR\fP if the data cannot be saved\&.
  115. .br
  116. \fITSS2_FAPI_RC_MEMORY\fP if the FAPI cannot allocate enough memory for internal operations or return parameters\&.
  117. .br
  118. \fITSS2_FAPI_RC_TRY_AGAIN\fP if the asynchronous operation is not yet complete\&. Call this function again later\&.
  119. .br
  120. \fITSS2_FAPI_RC_GENERAL_FAILURE\fP if an internal error occurred\&.
  121. .br
  122. \fITSS2_FAPI_RC_BAD_VALUE\fP if an invalid value was passed into the function\&.
  123. .br
  124. \fITSS2_ESYS_RC_*\fP possible error codes of ESAPI\&.
  125. .RE
  126. .PP
  127. .SH "Author"
  128. .PP
  129. Generated automatically by Doxygen for tpm2-tss from the source code\&.