]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
nettle/pk: explicitly mark intentional fallthrough in switch cases
authorNikos Mavrogiannopoulos <nmav@redhat.com>
Wed, 27 Sep 2017 13:10:07 +0000 (15:10 +0200)
committerNikos Mavrogiannopoulos <nmav@redhat.com>
Mon, 19 Feb 2018 14:29:35 +0000 (15:29 +0100)
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
lib/nettle/pk.c

index 64f17d80c307559222c845dc326442edc2dc3990..a87ad15e8cb9b1dd53cfc2197d623ac729ebd1b4 100644 (file)
@@ -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;