From 46475dfa2f246c4a831289bc7625c896eafa6458 Mon Sep 17 00:00:00 2001 From: Oliver Stöneberg Date: Mon, 11 Apr 2011 11:06:32 +0200 Subject: keys: Fixed issues reported by cppcheck. --- src/keys.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/keys.c') diff --git a/src/keys.c b/src/keys.c index 7512e9a1..de6b8f2d 100644 --- a/src/keys.c +++ b/src/keys.c @@ -597,7 +597,9 @@ error: ssh_string_free(n); return rc; +#if defined(HAVE_LIBGCRYPT) || defined(HAVE_LIBCRYPTO) } +#endif #ifdef HAVE_LIBGCRYPT static int rsa_public_to_string(gcry_sexp_t key, ssh_buffer buffer) { @@ -665,7 +667,9 @@ error: ssh_string_free(n); return rc; +#if defined(HAVE_LIBGCRYPT) || defined(HAVE_LIBCRYPTO) } +#endif /** * @brief Convert a public_key object into a a SSH string. -- cgit