summaryrefslogtreecommitdiffstats
path: root/src/keys.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/keys.c')
-rw-r--r--src/keys.c4
1 files changed, 4 insertions, 0 deletions
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.