zkey: Add keystore related commands

Add new commands to the zkey utility to store secure AES keys in
the secure key repository provided by the keystore implementation
introduced in the previous commit.

Signed-off-by: Ingo Franzki <ifranzki@linux.ibm.com>
Reviewed-by: Hendrik Brueckner <brueckner@linux.ibm.com>
Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
Ingo Franzki
2018-02-05 14:43:59 +01:00
committed by Jan Höppner
parent c944f23d7e
commit e2f92e4079
2 changed files with 1024 additions and 67 deletions

View File

@@ -3,7 +3,7 @@
*
* Local helper functions
*
* Copyright 2017 IBM Corp.
* Copyright IBM Corp. 2017, 2018
*
* s390-tools is free software; you can redistribute it and/or modify
* it under the terms of the MIT license. See LICENSE for details.
@@ -37,7 +37,7 @@ void misc_print_invalid_command(const char *command)
/**
* An required parameter has not been specified
*
* @param[in] option Parameter string
* @param[in] parm_name Parameter string
*/
void misc_print_required_parm(const char *parm_name)
{
@@ -45,4 +45,17 @@ void misc_print_required_parm(const char *parm_name)
util_prg_print_parse_error();
}
#endif
/**
* An required parameter has not been specified
*
* @param[in] parm_name1 Parameter string 1
* @param[in] parm_name2 Parameter string 2
*/
static void misc_print_required_parms(const char *parm_name1,
const char *parm_name2)
{
warnx("Parameter '%s' or '%s' is required", parm_name1, parm_name2);
util_prg_print_parse_error();
}
#endif

File diff suppressed because it is too large Load Diff