summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorUlrich Ölmann <u.oelmann@pengutronix.de>2019-02-06 11:34:02 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2019-02-07 08:53:58 +0100
commit69b16bcc850c9eef0f399f531d0b0cfdacb9b4e4 (patch)
treecdef61b9652f622a400fffb9dd8e3657a20e65db /common
parentee5177069e32163d0db0a0fa0e7054d6560298e2 (diff)
downloadbarebox-69b16bcc850c9eef0f399f531d0b0cfdacb9b4e4.tar.gz
common: state: fix typo
Signed-off-by: Ulrich Ölmann <u.oelmann@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common')
-rw-r--r--common/state/backend_format_raw.c4
-rw-r--r--common/state/state.c2
-rw-r--r--common/state/state.h2
3 files changed, 4 insertions, 4 deletions
diff --git a/common/state/backend_format_raw.c b/common/state/backend_format_raw.c
index 4369f76..5a71149 100644
--- a/common/state/backend_format_raw.c
+++ b/common/state/backend_format_raw.c
@@ -127,7 +127,7 @@ static int backend_format_raw_verify(struct state_backend_format *format,
return -EINVAL;
}
- if (backend_raw->algo && !(flags & STATE_FLAG_NO_AUTHENTIFICATION)) {
+ if (backend_raw->algo && !(flags & STATE_FLAG_NO_AUTHENTICATION)) {
ret = backend_raw_digest_init(backend_raw);
if (ret)
return ret;
@@ -153,7 +153,7 @@ static int backend_format_raw_verify(struct state_backend_format *format,
*lenp = header->data_len + sizeof(*header);
- if (backend_raw->algo && !(flags & STATE_FLAG_NO_AUTHENTIFICATION)) {
+ if (backend_raw->algo && !(flags & STATE_FLAG_NO_AUTHENTICATION)) {
const void *hmac = data + header->data_len;
/* hmac over header and data */
diff --git a/common/state/state.c b/common/state/state.c
index 54c5723..d3e048b 100644
--- a/common/state/state.c
+++ b/common/state/state.c
@@ -128,7 +128,7 @@ int state_load(struct state *state)
int state_load_no_auth(struct state *state)
{
- return state_do_load(state, STATE_FLAG_NO_AUTHENTIFICATION);
+ return state_do_load(state, STATE_FLAG_NO_AUTHENTICATION);
}
static int state_format_init(struct state *state, const char *backend_format,
diff --git a/common/state/state.h b/common/state/state.h
index 3a0662f..912d6d4 100644
--- a/common/state/state.h
+++ b/common/state/state.h
@@ -6,7 +6,7 @@ struct state;
struct mtd_info_user;
enum state_flags {
- STATE_FLAG_NO_AUTHENTIFICATION = (1 << 0),
+ STATE_FLAG_NO_AUTHENTICATION = (1 << 0),
};
enum state_variable_type {