mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
pv: Require matching versions of request and HKD
Enforce that a v{1,2} request also has a v{1,2} hostkey.
This requires to change the signature of Request::add_hostkey to return
a Result.
Co-Developed-by: Timo Keller <tkeller@linux.ibm.com>
Signed-off-by: Timo Keller <tkeller@linux.ibm.com>
Signed-off-by: Steffen Eiden <seiden@linux.ibm.com>
Reviewed-by: Marc Hartmayer <marc@linux.ibm.com>
Signed-off-by: Steffen Eiden <seiden@linux.ibm.com>
This commit is contained in:
@@ -144,6 +144,9 @@ pub enum Error {
|
||||
|
||||
#[error("{}", .0)]
|
||||
InvalidHkd(String),
|
||||
|
||||
#[error("All host keys must use the same version (all hybrid or all non-hybrid)")]
|
||||
MixedHostkeyVersions,
|
||||
}
|
||||
|
||||
// used in macros
|
||||
|
||||
Reference in New Issue
Block a user