mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
zkey-ekmfweb: Allow NULL as property value to remove a property
To remove a KMS property function kms_set_key_properties() can be called with the property value set to NULL. Do not assert for non-NULL property values. Signed-off-by: Ingo Franzki <ifranzki@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
committed by
Jan Höppner
parent
733b86c02a
commit
6380e77f28
@@ -4981,10 +4981,10 @@ int kms_set_key_properties(const kms_handle_t handle, const char *key_id,
|
||||
for (i = 0; i < num_properties; i++) {
|
||||
util_assert(properties[i].name != NULL,
|
||||
"Internal error: property name is NULL");
|
||||
util_assert(properties[i].value != NULL,
|
||||
"Internal error: property value is NULL");
|
||||
pr_verbose(ph, " Property '%s': '%s", properties[i].name,
|
||||
properties[i].value);
|
||||
|
||||
pr_verbose(ph, " Property '%s': '%s'", properties[i].name,
|
||||
properties[i].value != NULL ? properties[i].value :
|
||||
"(null)");
|
||||
}
|
||||
|
||||
_clear_error(ph);
|
||||
|
||||
Reference in New Issue
Block a user