diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2017-09-27 15:10:07 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2018-02-19 15:29:35 +0100 |
commit | 066b7d2631d4e57c3468dc51eaf9bc4c7c576ce7 (patch) | |
tree | 02d82e6a273d5bba356de7da29d849231d29d8ed /lib/nettle | |
parent | 1c396192ddbf48d7d64663868947b9fe3883c512 (diff) | |
download | gnutls-066b7d2631d4e57c3468dc51eaf9bc4c7c576ce7.tar.gz |
nettle/pk: explicitly mark intentional fallthrough in switch cases
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Diffstat (limited to 'lib/nettle')
-rw-r--r-- | lib/nettle/pk.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/nettle/pk.c b/lib/nettle/pk.c index 64f17d80c3..a87ad15e8c 100644 --- a/lib/nettle/pk.c +++ b/lib/nettle/pk.c @@ -1562,9 +1562,7 @@ gnutls_x509_spki_st spki; free(sig.data); sig.data = NULL; - /* Here we don't know the purpose of the key. Check both - * signing and encryption. - */ + /* fallthrough */ case GNUTLS_PK_EC: /* we only do keys for ECDSA */ case GNUTLS_PK_EDDSA_ED25519: case GNUTLS_PK_DSA: @@ -1676,6 +1674,7 @@ wrap_nettle_pk_generate_keys(gnutls_pk_algorithm_t algo, break; } #endif + /* fallthrough */ case GNUTLS_PK_DH: { struct dsa_params pub; |