Changeset 94201 in vbox
- Timestamp:
- Mar 12, 2022 7:29:49 PM (3 years ago)
- svn:sync-xref-src-repo-rev:
- 150457
- Location:
- trunk
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/doc/manual/Config.kmk
r94200 r94201 70 70 man_VBoxManage-createmedium.xml \ 71 71 man_VBoxManage-clonemedium.xml \ 72 man_VBoxManage-mediumproperty.xml 72 man_VBoxManage-mediumproperty.xml \ 73 man_VBoxManage-encryptmedium.xml 73 74 74 75 ## List of user manual XML files. -
trunk/doc/manual/en_US/man_VBoxManage-encryptmedium.xml
r87075 r94201 20 20 <refentry id="vboxmanage-encryptmedium" lang="en"> 21 21 <refentryinfo> 22 <pubdate> August 2019</pubdate>22 <pubdate>$Date$</pubdate> 23 23 <title>VBoxManage encryptmedium</title> 24 24 </refentryinfo> … … 32 32 <refname>VBoxManage-encryptmedium</refname> 33 33 <refpurpose>manage a DEK-encrypted medium or image</refpurpose> 34 <refclass> Oracle VM VirtualBox</refclass>34 <refclass>&product-name;</refclass> 35 35 </refnamediv> 36 36 -
trunk/doc/manual/en_US/user_VBoxManage.xml
r94200 r94201 1093 1093 <xi:include href="user_man_VBoxManage-mediumproperty.xml" xpointer="element(/1)" xmlns:xi="http://www.w3.org/2001/XInclude" /> 1094 1094 1095 <sect1 id="vboxmanage-encryptmedium"> 1096 1097 <title>VBoxManage encryptmedium</title> 1098 1099 <para> 1100 This command is used to create a DEK encrypted medium or image. 1101 See <xref linkend="diskencryption-encryption" />. 1102 </para> 1103 1104 <para> 1105 The syntax is as follows: 1106 </para> 1107 1108 <screen>VBoxManage encryptmedium <uuid|filename> 1109 [--newpassword <file|->] 1110 [--oldpassword <file|->] 1111 [--cipher <cipher id>] 1112 [--newpasswordid <password id>]</screen> 1113 1114 <itemizedlist> 1115 1116 <listitem> 1117 <para> 1118 Use <computeroutput><uuid|filename></computeroutput> to 1119 supply the UUID or absolute path of the medium or image to be 1120 encrypted. 1121 </para> 1122 </listitem> 1123 1124 <listitem> 1125 <para> 1126 Use <computeroutput>--newpassword 1127 <file|-></computeroutput> to supply a new encryption 1128 password. Either specify the absolute pathname of a password 1129 file on the host operating system, or 1130 <computeroutput>-</computeroutput> to prompt you for the 1131 password on the command line. Always use the 1132 <computeroutput>--newpasswordid</computeroutput> option with 1133 this option. 1134 </para> 1135 </listitem> 1136 1137 <listitem> 1138 <para> 1139 Use <computeroutput>--oldpassword 1140 <file|-></computeroutput> to supply any old encryption 1141 password. Either specify the absolute pathname of a password 1142 file on the host operating system, or 1143 <computeroutput>-</computeroutput> to prompt you for the old 1144 password on the command line. 1145 </para> 1146 1147 <para> 1148 Use this option to gain access to an encrypted medium or image 1149 to either change its password using 1150 <computeroutput>--newpassword</computeroutput> or change its 1151 encryption using <computeroutput>--cipher</computeroutput>. 1152 </para> 1153 </listitem> 1154 1155 <listitem> 1156 <para> 1157 Use <computeroutput>--cipher <cipher></computeroutput> 1158 to specify the cipher to use for encryption. This can be 1159 either <computeroutput>AES-XTS128-PLAIN64</computeroutput> or 1160 <computeroutput>AES-XTS256-PLAIN64</computeroutput>. 1161 </para> 1162 1163 <para> 1164 Use this option to change any existing encryption on the 1165 medium or image, or to set up new encryption on it for the 1166 first time. 1167 </para> 1168 </listitem> 1169 1170 <listitem> 1171 <para> 1172 Use <computeroutput>--newpasswordid <password 1173 id></computeroutput> to supply the new password identifier. 1174 This can be chosen by the user, and is used for correct 1175 identification when supplying multiple passwords during VM 1176 startup. 1177 </para> 1178 1179 <para> 1180 If the user uses the same password when encrypting multiple 1181 images and also the same password identifier, the user needs 1182 to supply the password only once during VM startup. 1183 </para> 1184 </listitem> 1185 1186 </itemizedlist> 1187 1188 </sect1> 1095 <xi:include href="user_man_VBoxManage-encryptmedium.xml" xpointer="element(/1)" xmlns:xi="http://www.w3.org/2001/XInclude" /> 1189 1096 1190 1097 <sect1 id="vboxmanage-checkmediumpwd"> -
trunk/src/VBox/Frontends/VBoxManage/VBoxManage.cpp
r94200 r94201 209 209 { "clonehd", USAGE_S_NEWCMD, HELP_CMD_CLONEMEDIUM, handleCloneMedium, 0 }, /* backward compatibility */ 210 210 { "clonevdi", USAGE_S_NEWCMD, HELP_CMD_CLONEMEDIUM, handleCloneMedium, 0 }, /* backward compatibility */ 211 { "encryptmedium", USAGE_ ENCRYPTMEDIUM, VBMG_CMD_TODO, handleEncryptMedium, 0 },211 { "encryptmedium", USAGE_S_NEWCMD,HELP_CMD_ENCRYPTMEDIUM, handleEncryptMedium, 0 }, 212 212 { "checkmediumpwd", USAGE_MEDIUMENCCHKPWD, VBMG_CMD_TODO, handleCheckMediumPassword, 0 }, 213 213 { "createvm", USAGE_S_NEWCMD, HELP_CMD_CREATEVM, handleCreateVM, 0 }, -
trunk/src/VBox/Frontends/VBoxManage/VBoxManage.h
r94200 r94201 132 132 USAGE_I_REPAIRHD, 133 133 USAGE_NATNETWORK, 134 USAGE_ENCRYPTMEDIUM,135 134 USAGE_MEDIUMENCCHKPWD, 136 135 USAGE_USBDEVSOURCE, -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageDisk.cpp
r94200 r94201 2008 2008 pszFilenameOrUuid = ValueUnion.psz; 2009 2009 else 2010 return errorSyntax( USAGE_ENCRYPTMEDIUM,Disk::tr("Invalid parameter '%s'"), ValueUnion.psz);2010 return errorSyntax(Disk::tr("Invalid parameter '%s'"), ValueUnion.psz); 2011 2011 break; 2012 2012 … … 2015 2015 { 2016 2016 if (RT_C_IS_PRINT(c)) 2017 return errorSyntax( USAGE_ENCRYPTMEDIUM,Disk::tr("Invalid option -%c"), c);2017 return errorSyntax(Disk::tr("Invalid option -%c"), c); 2018 2018 else 2019 return errorSyntax( USAGE_ENCRYPTMEDIUM,Disk::tr("Invalid option case %i"), c);2019 return errorSyntax(Disk::tr("Invalid option case %i"), c); 2020 2020 } 2021 2021 else if (c == VERR_GETOPT_UNKNOWN_OPTION) 2022 return errorSyntax( USAGE_ENCRYPTMEDIUM,Disk::tr("unknown option: %s\n"), ValueUnion.psz);2022 return errorSyntax(Disk::tr("unknown option: %s\n"), ValueUnion.psz); 2023 2023 else if (ValueUnion.pDef) 2024 return errorSyntax( USAGE_ENCRYPTMEDIUM,"%s: %Rrs", ValueUnion.pDef->pszLong, c);2024 return errorSyntax("%s: %Rrs", ValueUnion.pDef->pszLong, c); 2025 2025 else 2026 return errorSyntax( USAGE_ENCRYPTMEDIUM,Disk::tr("error: %Rrs"), c);2026 return errorSyntax(Disk::tr("error: %Rrs"), c); 2027 2027 } 2028 2028 } 2029 2029 2030 2030 if (!pszFilenameOrUuid) 2031 return errorSyntax( USAGE_ENCRYPTMEDIUM,Disk::tr("Disk name or UUID required"));2031 return errorSyntax(Disk::tr("Disk name or UUID required")); 2032 2032 2033 2033 if (!pszPasswordNew && !pszPasswordOld) 2034 return errorSyntax( USAGE_ENCRYPTMEDIUM,Disk::tr("No password specified"));2034 return errorSyntax(Disk::tr("No password specified")); 2035 2035 2036 2036 if ( (pszPasswordNew && !pszNewPasswordId) 2037 2037 || (!pszPasswordNew && pszNewPasswordId)) 2038 return errorSyntax(USAGE_ENCRYPTMEDIUM, 2039 Disk::tr("A new password must always have a valid identifier set at the same time")); 2038 return errorSyntax(Disk::tr("A new password must always have a valid identifier set at the same time")); 2040 2039 2041 2040 if (pszPasswordNew) -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageHelp.cpp
r94200 r94201 639 639 "\n", SEP); 640 640 641 if (enmCommand == USAGE_ENCRYPTMEDIUM || enmCommand == USAGE_S_ALL)642 RTStrmPrintf(pStrm,643 "%s encryptmedium %s <uuid|filename>\n"644 " [--newpassword <file>|-]\n"645 " [--oldpassword <file>|-]\n"646 " [--cipher <cipher identifier>]\n"647 " [--newpasswordid <password identifier>]\n"648 "\n", SEP);649 650 641 if (enmCommand == USAGE_MEDIUMENCCHKPWD || enmCommand == USAGE_S_ALL) 651 642 RTStrmPrintf(pStrm,
Note:
See TracChangeset
for help on using the changeset viewer.