mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-07 18:50:27 +09:00
keys: Fixed issues reported by cppcheck.
This commit is contained in:
committed by
Andreas Schneider
parent
7150cabafa
commit
46475dfa2f
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user