VirtualBox

Changeset 94201 in vbox


Ignore:
Timestamp:
Mar 12, 2022 7:29:49 PM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
150457
Message:

doc/manual,FE/VBoxManage: Convert encryptmedium command to refentry documentation, ​bugref:9186

Location:
trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/doc/manual/Config.kmk

    r94200 r94201  
    7070        man_VBoxManage-createmedium.xml \
    7171        man_VBoxManage-clonemedium.xml \
    72         man_VBoxManage-mediumproperty.xml
     72        man_VBoxManage-mediumproperty.xml \
     73        man_VBoxManage-encryptmedium.xml
    7374
    7475## List of user manual XML files.
  • trunk/doc/manual/en_US/man_VBoxManage-encryptmedium.xml

    r87075 r94201  
    2020<refentry id="vboxmanage-encryptmedium" lang="en">
    2121  <refentryinfo>
    22     <pubdate>August 2019</pubdate>
     22    <pubdate>$Date$</pubdate>
    2323    <title>VBoxManage encryptmedium</title>
    2424  </refentryinfo>
     
    3232    <refname>VBoxManage-encryptmedium</refname>
    3333    <refpurpose>manage a DEK-encrypted medium or image</refpurpose>
    34     <refclass>Oracle VM VirtualBox</refclass>
     34    <refclass>&product-name;</refclass>
    3535  </refnamediv>
    3636
  • trunk/doc/manual/en_US/user_VBoxManage.xml

    r94200 r94201  
    10931093  <xi:include href="user_man_VBoxManage-mediumproperty.xml" xpointer="element(/1)" xmlns:xi="http://www.w3.org/2001/XInclude" />
    10941094
    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 &lt;uuid|filename&gt;
    1109                          [--newpassword &lt;file|-&gt;]
    1110                          [--oldpassword &lt;file|-&gt;]
    1111                          [--cipher &lt;cipher id&gt;]
    1112                          [--newpasswordid &lt;password id&gt;]</screen>
    1113 
    1114     <itemizedlist>
    1115 
    1116       <listitem>
    1117         <para>
    1118           Use <computeroutput>&lt;uuid|filename&gt;</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           &lt;file|-&gt;</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           &lt;file|-&gt;</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 &lt;cipher&gt;</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 &lt;password
    1173           id&gt;</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" />
    11891096
    11901097  <sect1 id="vboxmanage-checkmediumpwd">
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManage.cpp

    r94200 r94201  
    209209    { "clonehd",            USAGE_S_NEWCMD,  HELP_CMD_CLONEMEDIUM, handleCloneMedium,          0 }, /* backward compatibility */
    210210    { "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 },
    212212    { "checkmediumpwd",     USAGE_MEDIUMENCCHKPWD,  VBMG_CMD_TODO, handleCheckMediumPassword,  0 },
    213213    { "createvm",           USAGE_S_NEWCMD,     HELP_CMD_CREATEVM, handleCreateVM,             0 },
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManage.h

    r94200 r94201  
    132132    USAGE_I_REPAIRHD,
    133133    USAGE_NATNETWORK,
    134     USAGE_ENCRYPTMEDIUM,
    135134    USAGE_MEDIUMENCCHKPWD,
    136135    USAGE_USBDEVSOURCE,
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageDisk.cpp

    r94200 r94201  
    20082008                    pszFilenameOrUuid = ValueUnion.psz;
    20092009                else
    2010                     return errorSyntax(USAGE_ENCRYPTMEDIUM, Disk::tr("Invalid parameter '%s'"), ValueUnion.psz);
     2010                    return errorSyntax(Disk::tr("Invalid parameter '%s'"), ValueUnion.psz);
    20112011                break;
    20122012
     
    20152015                {
    20162016                    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);
    20182018                    else
    2019                         return errorSyntax(USAGE_ENCRYPTMEDIUM, Disk::tr("Invalid option case %i"), c);
     2019                        return errorSyntax(Disk::tr("Invalid option case %i"), c);
    20202020                }
    20212021                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);
    20232023                else if (ValueUnion.pDef)
    2024                     return errorSyntax(USAGE_ENCRYPTMEDIUM, "%s: %Rrs", ValueUnion.pDef->pszLong, c);
     2024                    return errorSyntax("%s: %Rrs", ValueUnion.pDef->pszLong, c);
    20252025                else
    2026                     return errorSyntax(USAGE_ENCRYPTMEDIUM, Disk::tr("error: %Rrs"), c);
     2026                    return errorSyntax(Disk::tr("error: %Rrs"), c);
    20272027        }
    20282028    }
    20292029
    20302030    if (!pszFilenameOrUuid)
    2031         return errorSyntax(USAGE_ENCRYPTMEDIUM, Disk::tr("Disk name or UUID required"));
     2031        return errorSyntax(Disk::tr("Disk name or UUID required"));
    20322032
    20332033    if (!pszPasswordNew && !pszPasswordOld)
    2034         return errorSyntax(USAGE_ENCRYPTMEDIUM, Disk::tr("No password specified"));
     2034        return errorSyntax(Disk::tr("No password specified"));
    20352035
    20362036    if (   (pszPasswordNew && !pszNewPasswordId)
    20372037        || (!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"));
    20402039
    20412040    if (pszPasswordNew)
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageHelp.cpp

    r94200 r94201  
    639639                     "\n", SEP);
    640640
    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 
    650641    if (enmCommand == USAGE_MEDIUMENCCHKPWD || enmCommand == USAGE_S_ALL)
    651642        RTStrmPrintf(pStrm,
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette