Lines Matching defs:vrc
254 int vrc = VINF_SUCCESS;
259 vrc = RTStrmOpen(pszFilename, "r", &pStrm);
262 if (RT_SUCCESS(vrc))
264 vrc = RTStrmReadEx(pStrm, szPasswd, sizeof(szPasswd)-1, &cbFile);
265 if (RT_SUCCESS(vrc))
279 rcExit = RTMsgErrorExit(RTEXITCODE_FAILURE, "Cannot read password from file '%s': %Rrc", pszFilename, vrc);
284 rcExit = RTMsgErrorExit(RTEXITCODE_FAILURE, "Cannot open password file '%s' (%Rrc)", pszFilename, vrc);
311 int vrc = RTStrmPrintfV(g_pStdOut, pszPrompt, vaArgs);
312 if (RT_SUCCESS(vrc))
315 vrc = RTStrmInputGetEchoChars(g_pStdIn, &fEchoOld);
316 if (RT_SUCCESS(vrc))
318 vrc = RTStrmInputSetEchoChars(g_pStdIn, false);
319 if (RT_SUCCESS(vrc))
321 vrc = RTStrmGetLine(g_pStdIn, &aszPwdInput[0], sizeof(aszPwdInput));
322 if (RT_SUCCESS(vrc))
325 rcExit = RTMsgErrorExit(RTEXITCODE_FAILURE, "Failed read password from command line (%Rrc)", vrc);
331 rcExit = RTMsgErrorExit(RTEXITCODE_FAILURE, "Failed to disable echoing typed characters (%Rrc)", vrc);
334 rcExit = RTMsgErrorExit(RTEXITCODE_FAILURE, "Failed to retrieve echo setting (%Rrc)", vrc);
339 rcExit = RTMsgErrorExit(RTEXITCODE_FAILURE, "Failed to print prompt (%Rrc)", vrc);