summaryrefslogtreecommitdiffstats
path: root/sshkey.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@dtucker.net>2019-11-18 04:15:26 +0100
committerDarren Tucker <dtucker@dtucker.net>2019-11-18 04:15:26 +0100
commit857f49e91eeae6feb781ef5f5e26c38ca3d953ec (patch)
tree58a4e392d06716d8999c2c37b8d3bf70bed6e214 /sshkey.c
parentEnable -Wimplicit-fallthrough if supported (diff)
downloadopenssh-857f49e91eeae6feb781ef5f5e26c38ca3d953ec.tar.xz
openssh-857f49e91eeae6feb781ef5f5e26c38ca3d953ec.zip
Move ifdef OPENSSL_HAS_ECC.
Found by -Wimplicit-fallthrough: one ECC case was not inside the ifdef. ok djm@
Diffstat (limited to '')
-rw-r--r--sshkey.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sshkey.c b/sshkey.c
index 40e764dd4..90dcec079 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) {