keys: Fixed issues reported by cppcheck.

This commit is contained in:
Oliver Stöneberg
2011-04-11 11:06:32 +02:00
committed by Andreas Schneider
parent 7150cabafa
commit 46475dfa2f
2 changed files with 17 additions and 15 deletions

View File

@@ -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.