diff options
author | Darren Tucker <dtucker@dtucker.net> | 2019-11-18 14:15:26 +1100 |
---|---|---|
committer | Darren Tucker <dtucker@dtucker.net> | 2019-11-18 14:15:26 +1100 |
commit | 857f49e91eeae6feb781ef5f5e26c38ca3d953ec (patch) | |
tree | 58a4e392d06716d8999c2c37b8d3bf70bed6e214 | |
parent | 6cf1c40096a79e5eedcf897c7cdb46bb32d4a3ee (diff) |
Move ifdef OPENSSL_HAS_ECC.
Found by -Wimplicit-fallthrough: one ECC case was not inside the ifdef.
ok djm@
-rw-r--r-- | sshkey.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2430,6 +2430,7 @@ sshkey_from_blob_internal(struct sshbuf *b, struct sshkey **keyp, | |||
2430 | DSA_print_fp(stderr, key->dsa, 8); | 2430 | DSA_print_fp(stderr, key->dsa, 8); |
2431 | #endif | 2431 | #endif |
2432 | break; | 2432 | break; |
2433 | # ifdef OPENSSL_HAS_ECC | ||
2433 | case KEY_ECDSA_CERT: | 2434 | case KEY_ECDSA_CERT: |
2434 | case KEY_ECDSA_SK_CERT: | 2435 | case KEY_ECDSA_SK_CERT: |
2435 | /* Skip nonce */ | 2436 | /* Skip nonce */ |
@@ -2438,7 +2439,6 @@ sshkey_from_blob_internal(struct sshbuf *b, struct sshkey **keyp, | |||
2438 | goto out; | 2439 | goto out; |
2439 | } | 2440 | } |
2440 | /* FALLTHROUGH */ | 2441 | /* FALLTHROUGH */ |
2441 | # ifdef OPENSSL_HAS_ECC | ||
2442 | case KEY_ECDSA: | 2442 | case KEY_ECDSA: |
2443 | case KEY_ECDSA_SK: | 2443 | case KEY_ECDSA_SK: |
2444 | if ((key = sshkey_new(type)) == NULL) { | 2444 | if ((key = sshkey_new(type)) == NULL) { |