summaryrefslogtreecommitdiff
path: root/usr.bin/ssh
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@cvs.openbsd.org>2019-05-16 08:47:28 +0000
committerDarren Tucker <dtucker@cvs.openbsd.org>2019-05-16 08:47:28 +0000
commitd1ff65b97cc0d5c82b3107680b0e59be2be0cabd (patch)
tree304ad525303e4df0ea891ea248617ddfbe8f802a /usr.bin/ssh
parent5b54cd9e9213f3be251b1c1a8820ca939ee7faf4 (diff)
Move a variable declaration to the block where it's used to make things
a little tidier for -portable.
Diffstat (limited to 'usr.bin/ssh')
-rw-r--r--usr.bin/ssh/ssh-pkcs11-helper.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/ssh/ssh-pkcs11-helper.c b/usr.bin/ssh/ssh-pkcs11-helper.c
index 48c4d42f48d..e9541e3c361 100644
--- a/usr.bin/ssh/ssh-pkcs11-helper.c
+++ b/usr.bin/ssh/ssh-pkcs11-helper.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssh-pkcs11-helper.c,v 1.17 2019/01/23 02:01:10 djm Exp $ */
+/* $OpenBSD: ssh-pkcs11-helper.c,v 1.18 2019/05/16 08:47:27 dtucker Exp $ */
/*
* Copyright (c) 2010 Markus Friedl. All rights reserved.
*
@@ -188,7 +188,6 @@ process_sign(void)
else {
if ((found = lookup_key(key)) != NULL) {
#ifdef WITH_OPENSSL
- u_int xslen;
int ret;
if (key->type == KEY_RSA) {
@@ -201,7 +200,8 @@ process_sign(void)
ok = 0;
}
} else if (key->type == KEY_ECDSA) {
- xslen = ECDSA_size(key->ecdsa);
+ u_int xslen = ECDSA_size(key->ecdsa);
+
signature = xmalloc(xslen);
/* "The parameter type is ignored." */
ret = ECDSA_sign(-1, data, dlen, signature,