summaryrefslogtreecommitdiff
path: root/sshkey-xmss.c
diff options
context:
space:
mode:
authordjm@openbsd.org <djm@openbsd.org>2018-04-10 00:10:49 +0000
committerDamien Miller <djm@mindrot.org>2018-04-10 10:17:15 +1000
commit001aa55484852370488786bd40e9fdad4b465811 (patch)
tree8b98f20603dea5362f66fbfcc8c400e29c7492bb /sshkey-xmss.c
parent260ede2787fe80b18b8d5920455b4fb268519c7d (diff)
downloadopenssh-git-001aa55484852370488786bd40e9fdad4b465811.tar.gz
upstream: lots of typos in comments/docs. Patch from Karsten Weiss
after checking with codespell tool (https://github.com/lucasdemarchi/codespell) OpenBSD-Commit-ID: 373222f12d7ab606598a2d36840c60be93568528
Diffstat (limited to 'sshkey-xmss.c')
-rw-r--r--sshkey-xmss.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sshkey-xmss.c b/sshkey-xmss.c
index 5d66ee79..2c50f75f 100644
--- a/sshkey-xmss.c
+++ b/sshkey-xmss.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sshkey-xmss.c,v 1.1 2018/02/23 15:58:38 markus Exp $ */
+/* $OpenBSD: sshkey-xmss.c,v 1.2 2018/04/10 00:10:49 djm Exp $ */
/*
* Copyright (c) 2017 Markus Friedl. All rights reserved.
*
@@ -66,7 +66,7 @@ struct ssh_xmss_state {
treehash_inst *treehash;
u_int32_t idx; /* state read from file */
- u_int32_t maxidx; /* resticted # of signatures */
+ u_int32_t maxidx; /* restricted # of signatures */
int have_state; /* .state file exists */
int lockfd; /* locked in sshkey_xmss_get_state() */
int allow_update; /* allow sshkey_xmss_update_state() */
@@ -583,7 +583,7 @@ sshkey_xmss_update_state(const struct sshkey *k, sshkey_printfn *pr)
}
idx = PEEK_U32(k->xmss_sk);
if (idx == state->idx) {
- /* no signature happend, no need to update */
+ /* no signature happened, no need to update */
ret = 0;
goto done;
} else if (idx != state->idx + 1) {