zkey: Add properties file handling routines

In preparation for a new feature, introduce property file
handling routines. A property file stores key value pairs
in a text file. Optionally a hash of all keys and values
contained in the properties file can be generated to
ensure integrity of the properties file and to detect
manual modifications.

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-01 16:42:57 +01:00
committed by Jan Höppner
parent f642019bcc
commit 340da73bb7
3 changed files with 448 additions and 2 deletions

View File

@@ -1,15 +1,16 @@
include ../common.mak
CPPFLAGS += -I../include
LDLIBS += -ldl
LDLIBS += -ldl -lcrypto
all: zkey
libs = $(rootdir)/libutil/libutil.a
zkey.o: zkey.c pkey.h misc.h
properties.o: properties.c properties.h
zkey: zkey.o $(libs)
zkey: zkey.o properties.o $(libs)
install: all
$(INSTALL) -d -m 755 $(DESTDIR)$(USRBINDIR)