summaryrefslogtreecommitdiffstats
path: root/usr.bin/ssh/cipher.c
diff options
context:
space:
mode:
authordjm <djm@openbsd.org>2017-11-03 02:22:41 +0000
committerdjm <djm@openbsd.org>2017-11-03 02:22:41 +0000
commita40a4eacc4521eaf9ec51f3d56db414b5881e1a2 (patch)
tree73ecdd441ed6a883ada5bd00deecb4c86516d756 /usr.bin/ssh/cipher.c
parentMake the mode draw function use the parent screen directly rather than (diff)
downloadwireguard-openbsd-a40a4eacc4521eaf9ec51f3d56db414b5881e1a2.tar.xz
wireguard-openbsd-a40a4eacc4521eaf9ec51f3d56db414b5881e1a2.zip
avoid unused variable warnings for !WITH_OPENSSL;
patch from Marcus Folkesson
Diffstat (limited to 'usr.bin/ssh/cipher.c')
-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