From 0c7436753c73e71ee512e5ed8029e7ccceedcd89 Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Mon, 27 Mar 2017 10:14:38 +0200 Subject: state: Allow to load without authentification Sometimes it's useful to be able to load a state even when it can't be authentificated. Add an option for this. Signed-off-by: Sascha Hauer --- common/state/backend_format_dtb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'common/state/backend_format_dtb.c') diff --git a/common/state/backend_format_dtb.c b/common/state/backend_format_dtb.c index d7b01729bc..55fa1fc597 100644 --- a/common/state/backend_format_dtb.c +++ b/common/state/backend_format_dtb.c @@ -40,7 +40,7 @@ static inline struct state_backend_format_dtb *get_format_dtb(struct static int state_backend_format_dtb_verify(struct state_backend_format *format, uint32_t magic, const void * buf, - ssize_t *lenp) + ssize_t *lenp, enum state_flags flags) { struct state_backend_format_dtb *fdtb = get_format_dtb(format); struct device_node *root; @@ -81,7 +81,7 @@ static int state_backend_format_dtb_unpack(struct state_backend_format *format, int ret; if (!fdtb->root) { - state_backend_format_dtb_verify(format, 0, buf, &len); + state_backend_format_dtb_verify(format, 0, buf, &len, 0); } ret = state_from_node(state, fdtb->root, 0); -- cgit v1.2.3