summaryrefslogtreecommitdiff
path: root/sshkey.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@dtucker.net>2019-11-18 14:15:26 +1100
committerDarren Tucker <dtucker@dtucker.net>2019-11-18 14:15:26 +1100
commit857f49e91eeae6feb781ef5f5e26c38ca3d953ec (patch)
tree58a4e392d06716d8999c2c37b8d3bf70bed6e214 /sshkey.c
parent6cf1c40096a79e5eedcf897c7cdb46bb32d4a3ee (diff)
downloadopenssh-git-857f49e91eeae6feb781ef5f5e26c38ca3d953ec.tar.gz
Move ifdef OPENSSL_HAS_ECC.
Found by -Wimplicit-fallthrough: one ECC case was not inside the ifdef. ok djm@
Diffstat (limited to 'sshkey.c')
-rw-r--r--sshkey.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sshkey.c b/sshkey.c
index 40e764dd..90dcec07 100644
--- a/sshkey.c
+++ b/sshkey.c
@@ -2430,6 +2430,7 @@ sshkey_from_blob_internal(struct sshbuf *b, struct sshkey **keyp,
DSA_print_fp(stderr, key->dsa, 8);
#endif
break;
+# ifdef OPENSSL_HAS_ECC
case KEY_ECDSA_CERT:
case KEY_ECDSA_SK_CERT:
/* Skip nonce */
@@ -2438,7 +2439,6 @@ sshkey_from_blob_internal(struct sshbuf *b, struct sshkey **keyp,
goto out;
}
/* FALLTHROUGH */
-# ifdef OPENSSL_HAS_ECC
case KEY_ECDSA:
case KEY_ECDSA_SK:
if ((key = sshkey_new(type)) == NULL) {