Move ifdef OPENSSL_HAS_ECC.
Found by -Wimplicit-fallthrough: one ECC case was not inside the ifdef. ok djm@
This commit is contained in:
parent
6cf1c40096
commit
857f49e91e
2
sshkey.c
2
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) {
|
||||
|
|
Loading…
Reference in New Issue