Lines Matching refs:ret
61 int ret;
94 ret = fptr(hContext, hTPM, argc, argv);
97 return (ret);
125 print_error(TSS_RESULT ret, char *msg)
130 err_string = Trspi_Error_String(ret);
131 (void) fprintf(stderr, "%s: %s (0x%0x)\n", msg, err_string, ret);
134 switch (ret) {
152 TSS_RESULT ret;
156 ret = Tspi_TPM_GetCapability(hTPM, cap, sizeof (subcap),
158 if (ret) {
159 print_error(ret, gettext("Get TPM capability"));
171 ret = Tspi_Context_FreeMemory(hContext, data);
172 if (ret) {
173 print_error(ret, gettext("Free capability buffer"));
184 TSS_RESULT ret;
188 ret = Tspi_Policy_SetSecret(hPolicy, mode, secret_len, secret);
189 if (ret) {
190 print_error(ret, gettext("Set policy secret"));
195 ret = Tspi_SetAttribData(hPolicy,
198 if (ret) {
199 print_error(ret, gettext("Set policy prompt"));
212 TSS_RESULT ret;
214 ret = Tspi_GetPolicyObject(handle, TSS_POLICY_USAGE, &hPolicy);
215 if (ret) {
216 print_error(ret, gettext("Get object policy"));
226 TSS_RESULT ret;
228 ret = Tspi_Context_Create(hContext);
229 if (ret) {
230 print_error(ret, gettext("Create context"));
234 ret = Tspi_Context_Connect(*hContext, NULL);
235 if (ret) {
236 print_error(ret, gettext("Connect context"));
241 ret = Tspi_Context_GetTpmObject(*hContext, hTPM);
242 if (ret) {
243 print_error(ret, gettext("Get TPM object"));
253 TSS_RESULT ret;
255 ret = Tspi_Context_Close(hContext);
256 if (ret) {
257 print_error(ret, gettext("Close context"));