Changeset 55923 in vbox
- Timestamp:
- May 19, 2015 8:35:24 AM (10 years ago)
- Location:
- trunk/src/VBox/Frontends/VBoxManage
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManageControlVM.cpp
r55214 r55923 1699 1699 BOOL fRemoveOnSuspend = FALSE; 1700 1700 Bstr bstrPwId(a->argv[2]); 1701 Bstr bstrPw(a->argv[3]); 1701 Utf8Str strPassword; 1702 1703 if (!RTStrCmp(a->argv[3], "-")) 1704 { 1705 /* Get password from console. */ 1706 RTEXITCODE rcExit = readPasswordFromConsole(&strPassword, "Enter password:"); 1707 if (rcExit == RTEXITCODE_FAILURE) 1708 break; 1709 } 1710 else 1711 { 1712 RTEXITCODE rcExit = readPasswordFile(a->argv[3], &strPassword); 1713 if (rcExit == RTEXITCODE_FAILURE) 1714 { 1715 RTMsgError("Failed to read new password from file"); 1716 break; 1717 } 1718 } 1719 1702 1720 if ( a->argc == 6 1703 1721 && !strcmp(a->argv[5], "yes")) 1704 1722 fRemoveOnSuspend = TRUE; 1705 1723 1706 CHECK_ERROR_BREAK(console, AddDiskEncryptionPassword(bstrPwId.raw(), bstrPw.raw(), fRemoveOnSuspend));1724 CHECK_ERROR_BREAK(console, AddDiskEncryptionPassword(bstrPwId.raw(), Bstr(strPassword).raw(), fRemoveOnSuspend)); 1707 1725 } 1708 1726 else if (!strcmp(a->argv[1], "removeencpassword")) -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageHelp.cpp
r55843 r55923 499 499 " webcam <attach [path [settings]]> | <detach [path]> | <list>\n" 500 500 " addencpassword <id>\n" 501 " <password >\n"501 " <password file>|-\n" 502 502 " [--removeonsuspend <yes|no>]\n" 503 503 " removeencpassword <id>\n"
Note:
See TracChangeset
for help on using the changeset viewer.