mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
Improvements for lszcrypt and chzcrypt: * lszcrypt -b and lszcrypt -d now check for default domain available and gives a warning if the current default domain is not in the usage_domain_mask of the AP bus. * lszcrypt without any further device also checks for the default domain and emits a warning string if the default domain is not available. * chzcrypt --default-domain emits a warning if the newly set default domain is not enabled in the usage_domain_mask of the AP bus. Suggested-by: Ingo Franzki <ifranzki@linux.ibm.com> Signed-off-by: Harald Freudenberger <freude@linux.ibm.com> Reviewed-by: Ingo Franzki <ifranzki@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
20 lines
432 B
C
20 lines
432 B
C
/*
|
|
* misc - Local helper functions
|
|
*
|
|
* Copyright IBM Corp. 2016, 2023
|
|
*
|
|
* s390-tools is free software; you can redistribute it and/or modify
|
|
* it under the terms of the MIT license. See LICENSE for details.
|
|
*/
|
|
|
|
#ifndef MISC_H
|
|
#define MISC_H
|
|
|
|
#include <stdbool.h>
|
|
|
|
bool misc_regex_match(const char *str, const char *regex);
|
|
bool ap_bus_has_SB_support(void);
|
|
int check_mask_bit(const char *mask, int bit);
|
|
|
|
#endif /* MISC_H */
|