mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
The volume type of a secure key is not really case sensitive, but for better usability store and display it in uppercase always, regardless in whatever case it was specified. Signed-off-by: Ingo Franzki <ifranzki@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
52 lines
1.3 KiB
C
52 lines
1.3 KiB
C
/*
|
|
* zkey - Generate, re-encipher, and validate secure keys
|
|
*
|
|
* Properties file handling functions
|
|
*
|
|
* Copyright IBM Corp. 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.
|
|
*/
|
|
|
|
#ifndef PROPFILE_H
|
|
#define PROPFILE_H
|
|
|
|
#include <stdbool.h>
|
|
|
|
struct properties;
|
|
|
|
struct properties *properties_new(void);
|
|
|
|
void properties_free(struct properties *properties);
|
|
|
|
int properties_set(struct properties *properties,
|
|
const char *name, const char *value);
|
|
|
|
int properties_set2(struct properties *properties,
|
|
const char *name, const char *value, bool uppercase);
|
|
|
|
char *properties_get(struct properties *properties, const char *name);
|
|
|
|
int properties_remove(struct properties *properties, const char *name);
|
|
|
|
int properties_save(struct properties *properties, const char *filename,
|
|
bool check_integrity);
|
|
|
|
int properties_load(struct properties *properties, const char *filename,
|
|
bool check_integrity);
|
|
|
|
char *str_list_combine(const char **strings);
|
|
|
|
char **str_list_split(const char *str_list);
|
|
|
|
unsigned int str_list_count(const char *str_list);
|
|
|
|
char *str_list_add(const char *str_list, const char *str);
|
|
|
|
char *str_list_remove(const char *str_list, const char *str);
|
|
|
|
void str_list_free_string_array(char **strings);
|
|
|
|
#endif
|