mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
Report host-key document type mismatches before hash verification. For example, when testing a v2 Secure Execution header with a classical host-key document, report that a hybrid host-key document is required instead of failing with a generic header validation error. Before: $ pvimg -- test --host-key-document v1.hkd se.v2.img error: Invalid Secure Execution header After: $ pvimg -- test --host-key-document v1.hkd se.v2.img Host-key document 'v1.hkd' is not a hybrid host-key document. error: The provided host key document in v1.hkd contains the wrong number of keys! Signed-off-by: Marc Hartmayer <marc@linux.ibm.com> Reviewed-by: Steffen Eiden <seiden@linux.ibm.com> Signed-off-by: Steffen Eiden <seiden@linux.ibm.com>