summaryrefslogtreecommitdiffstats
path: root/usr.bin/ssh/ssh-ecdsa.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2010-09-06 16:53:54 +0000
committerderaadt <deraadt@openbsd.org>2010-09-06 16:53:54 +0000
commit7996b645fc7e5c79a997988ec7ef9b2beafa8280 (patch)
tree50902953c5ce59a43b3b92b3762ab0b35d3f4f80 /usr.bin/ssh/ssh-ecdsa.c
parentcut swapping to file over from disksort to bufq fifo's and (diff)
downloadwireguard-openbsd-7996b645fc7e5c79a997988ec7ef9b2beafa8280.tar.xz
wireguard-openbsd-7996b645fc7e5c79a997988ec7ef9b2beafa8280.zip
decl before code for compiler compatibility
Diffstat (limited to 'usr.bin/ssh/ssh-ecdsa.c')
-rw-r--r--usr.bin/ssh/ssh-ecdsa.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/ssh/ssh-ecdsa.c b/usr.bin/ssh/ssh-ecdsa.c
index a1c1bdb6092..969fe5d6dca 100644
--- a/usr.bin/ssh/ssh-ecdsa.c
+++ b/usr.bin/ssh/ssh-ecdsa.c
@@ -98,6 +98,7 @@ ssh_ecdsa_verify(const Key *key, const u_char *signature, u_int signaturelen,
u_int len, dlen;
int rlen, ret;
Buffer b, bb;
+ char *ktype;
if (key == NULL || key->ecdsa == NULL ||
(key->type != KEY_ECDSA && key->type != KEY_ECDSA_CERT)) {
@@ -106,7 +107,6 @@ ssh_ecdsa_verify(const Key *key, const u_char *signature, u_int signaturelen,
}
/* fetch signature */
- char *ktype;
buffer_init(&b);
buffer_append(&b, signature, signaturelen);
ktype = buffer_get_string(&b, NULL);