summaryrefslogtreecommitdiff
path: root/ssh-pkcs11-helper.c
diff options
context:
space:
mode:
authordtucker@openbsd.org <dtucker@openbsd.org>2019-05-16 08:47:27 +0000
committerDarren Tucker <dtucker@dtucker.net>2019-05-17 10:07:43 +1000
commit5c8d14c512f5d413095b22bdba08a6bb990f1e97 (patch)
tree0c4414c06e53678cc3e53abc7b80dfe5ca587df9 /ssh-pkcs11-helper.c
parenta1d29cc36a5e6eeabc935065a8780e1ba5b67014 (diff)
upstream: Move a variable declaration to the block where it's used
to make things a little tidier for -portable. OpenBSD-Commit-ID: 616379861be95619e5358768b7dee4793e2f3a75
Diffstat (limited to 'ssh-pkcs11-helper.c')
-rw-r--r--ssh-pkcs11-helper.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ssh-pkcs11-helper.c b/ssh-pkcs11-helper.c
index 97fb1212c..807ceb660 100644
--- a/ssh-pkcs11-helper.c
+++ b/ssh-pkcs11-helper.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssh-pkcs11-helper.c,v 1.17 2019/01/23 02:01:10 djm Exp $ */ 1/* $OpenBSD: ssh-pkcs11-helper.c,v 1.18 2019/05/16 08:47:27 dtucker Exp $ */
2/* 2/*
3 * Copyright (c) 2010 Markus Friedl. All rights reserved. 3 * Copyright (c) 2010 Markus Friedl. All rights reserved.
4 * 4 *
@@ -195,7 +195,6 @@ process_sign(void)
195 else { 195 else {
196 if ((found = lookup_key(key)) != NULL) { 196 if ((found = lookup_key(key)) != NULL) {
197#ifdef WITH_OPENSSL 197#ifdef WITH_OPENSSL
198 u_int xslen;
199 int ret; 198 int ret;
200 199
201 if (key->type == KEY_RSA) { 200 if (key->type == KEY_RSA) {
@@ -208,7 +207,8 @@ process_sign(void)
208 ok = 0; 207 ok = 0;
209 } 208 }
210 } else if (key->type == KEY_ECDSA) { 209 } else if (key->type == KEY_ECDSA) {
211 xslen = ECDSA_size(key->ecdsa); 210 u_int xslen = ECDSA_size(key->ecdsa);
211
212 signature = xmalloc(xslen); 212 signature = xmalloc(xslen);
213 /* "The parameter type is ignored." */ 213 /* "The parameter type is ignored." */
214 ret = ECDSA_sign(-1, data, dlen, signature, 214 ret = ECDSA_sign(-1, data, dlen, signature,