mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
zkey: Add support for different crypto card types
As preparation for adding support for EP11 secure keys, generalize the code to support different crypto card types. Signed-off-by: Ingo Franzki <ifranzki@linux.ibm.com> Reviewed-by: Harald Freudenberger <freude@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
committed by
Jan Höppner
parent
e7f446432b
commit
82c86fa8bd
+10
-6
@@ -14,12 +14,16 @@
|
||||
|
||||
#include "lib/zt_common.h"
|
||||
|
||||
int sysfs_is_card_online(int card);
|
||||
#include "pkey.h"
|
||||
|
||||
int sysfs_is_apqn_online(int card, int domain);
|
||||
int sysfs_is_card_online(int card, enum card_type cardtype);
|
||||
|
||||
int sysfs_is_apqn_online(int card, int domain, enum card_type cardtype);
|
||||
|
||||
int sysfs_get_card_level(int card);
|
||||
|
||||
enum card_type sysfs_get_card_type(int card);
|
||||
|
||||
int sysfs_get_serialnr(int card, char serialnr[9], bool verbose);
|
||||
|
||||
#define MK_STATE_EMPTY 0
|
||||
@@ -45,13 +49,13 @@ int sysfs_get_mkvps(int card, int domain, struct mk_info *mk_info,
|
||||
|
||||
typedef int(*apqn_handler_t) (int card, int domain, void *handler_data);
|
||||
|
||||
int handle_apqns(const char *apqns, apqn_handler_t handler, void *handler_data,
|
||||
bool verbose);
|
||||
int handle_apqns(const char *apqns, enum card_type cardtype,
|
||||
apqn_handler_t handler, void *handler_data, bool verbose);
|
||||
|
||||
int print_mk_info(const char *apqns, bool verbose);
|
||||
int print_mk_info(const char *apqns, enum card_type cardtype, bool verbose);
|
||||
|
||||
int cross_check_apqns(const char *apqns, u64 mkvp, int min_level,
|
||||
bool print_mks, bool verbose);
|
||||
enum card_type cardtype, bool print_mks, bool verbose);
|
||||
|
||||
bool prompt_for_yes(bool verbose);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user