summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorDamien Miller <djm@cvs.openbsd.org>2017-11-03 02:22:42 +0000
committerDamien Miller <djm@cvs.openbsd.org>2017-11-03 02:22:42 +0000
commitfd203d3f641cb819f7518555674f249e7b649377 (patch)
treeca5b996f65f39fd47e9080e1a5ba083033303f9e /usr.bin
parentd234cbd7cc7f8be48c2a354b178b0864e9d977e7 (diff)
avoid unused variable warnings for !WITH_OPENSSL;
patch from Marcus Folkesson
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/ssh/cipher.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/ssh/cipher.c b/usr.bin/ssh/cipher.c
index 44d7148293e..ec6c138c4d6 100644
--- a/usr.bin/ssh/cipher.c
+++ b/usr.bin/ssh/cipher.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cipher.c,v 1.107 2017/05/07 23:12:57 djm Exp $ */
+/* $OpenBSD: cipher.c,v 1.108 2017/11/03 02:22:41 djm Exp $ */
/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -443,8 +443,8 @@ cipher_get_keyiv_len(const struct sshcipher_ctx *cc)
int
cipher_get_keyiv(struct sshcipher_ctx *cc, u_char *iv, u_int len)
{
- const struct sshcipher *c = cc->cipher;
#ifdef WITH_OPENSSL
+ const struct sshcipher *c = cc->cipher;
int evplen;
#endif
@@ -483,8 +483,8 @@ cipher_get_keyiv(struct sshcipher_ctx *cc, u_char *iv, u_int len)
int
cipher_set_keyiv(struct sshcipher_ctx *cc, const u_char *iv)
{
- const struct sshcipher *c = cc->cipher;
#ifdef WITH_OPENSSL
+ const struct sshcipher *c = cc->cipher;
int evplen = 0;
#endif