summaryrefslogtreecommitdiffstats
path: root/usr.bin/ssh/ssh-xmss.c
diff options
context:
space:
mode:
authordtucker <dtucker@openbsd.org>2020-10-19 22:49:23 +0000
committerdtucker <dtucker@openbsd.org>2020-10-19 22:49:23 +0000
commit79e62715a947ec0a7e40e99c159d7342e508ba59 (patch)
treec391b1d2c7f55df9feef33702d9a623a68fbe154 /usr.bin/ssh/ssh-xmss.c
parentDecode the UDF ("permanently undefined") instruction in ddb(4)'s arm64 (diff)
downloadwireguard-openbsd-79e62715a947ec0a7e40e99c159d7342e508ba59.tar.xz
wireguard-openbsd-79e62715a947ec0a7e40e99c159d7342e508ba59.zip
Adapt XMSS to new logging infrastructure. With markus@, ok djm@.
Diffstat (limited to 'usr.bin/ssh/ssh-xmss.c')
-rw-r--r--usr.bin/ssh/ssh-xmss.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/ssh/ssh-xmss.c b/usr.bin/ssh/ssh-xmss.c
index 9782670dda0..4651ef16139 100644
--- a/usr.bin/ssh/ssh-xmss.c
+++ b/usr.bin/ssh/ssh-xmss.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssh-xmss.c,v 1.3 2020/10/18 11:32:02 djm Exp $*/
+/* $OpenBSD: ssh-xmss.c,v 1.4 2020/10/19 22:49:23 dtucker Exp $*/
/*
* Copyright (c) 2017 Stefan-Lukas Gazdag.
* Copyright (c) 2017 Markus Friedl.
@@ -59,7 +59,7 @@ ssh_xmss_sign(const struct sshkey *key, u_char **sigp, size_t *lenp,
smlen = slen = datalen + required_siglen;
if ((sig = malloc(slen)) == NULL)
return SSH_ERR_ALLOC_FAIL;
- if ((r = sshkey_xmss_get_state(key, error)) != 0)
+ if ((r = sshkey_xmss_get_state(key, 1)) != 0)
goto out;
if ((ret = xmss_sign(key->xmss_sk, sshkey_xmss_bds_state(key), sig, &smlen,
data, datalen, sshkey_xmss_params(key))) != 0 || smlen <= datalen) {
@@ -87,7 +87,7 @@ ssh_xmss_sign(const struct sshkey *key, u_char **sigp, size_t *lenp,
/* success */
r = 0;
out:
- if ((ret = sshkey_xmss_update_state(key, error)) != 0) {
+ if ((ret = sshkey_xmss_update_state(key, 1)) != 0) {
/* discard signature since we cannot update the state */
if (r == 0 && sigp != NULL && *sigp != NULL) {
explicit_bzero(*sigp, len);