mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
rust/pv*: Add support for CCK update
The ultravisor supports a new secret type in `add-secret` to update the customer communication key (CCK). Support this new secret type (0x16). [seiden@linux.ibm.com: Constify CCK Header struct usage] Acked-by: Marc Hartmayer <mhartmay@linux.ibm.com> Reviewed-by: Steffen Eiden <seiden@linux.ibm.com> Signed-off-by: Jakob Naucke <naucke@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
committed by
Jan Höppner
parent
b11bb64732
commit
443652dcd2
@@ -109,6 +109,9 @@ fn build_asrcb(opt: &CreateSecretOpt) -> Result<AddSecretRequest> {
|
||||
AddSecretType::Retrievable {
|
||||
name, secret, kind, ..
|
||||
} => retrievable(name, secret, kind)?,
|
||||
AddSecretType::UpdateCck { secret } => {
|
||||
GuestSecret::update_cck(read_exact_file(secret, "CCK file")?)
|
||||
}
|
||||
};
|
||||
trace!("AddSecret: {secret:x?}");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user