pkcs5: Add missing break statements when checking crypto primitives
authorTobias Brunner <tobias@strongswan.org>
Wed, 24 Jul 2013 08:58:34 +0000 (10:58 +0200)
committerTobias Brunner <tobias@strongswan.org>
Wed, 24 Jul 2013 14:17:22 +0000 (16:17 +0200)
src/libstrongswan/crypto/pkcs5.c

index 679d270..3b4df0e 100644 (file)
@@ -310,6 +310,7 @@ static bool ensure_crypto_primitives(private_pkcs5_t *this, chunk_t data)
                                }
                                this->data.pbes1.hasher = hasher;
                        }
+                       break;
                }
                case PKCS5_SCHEME_PBES2:
                {
@@ -328,6 +329,7 @@ static bool ensure_crypto_primitives(private_pkcs5_t *this, chunk_t data)
                                }
                                this->data.pbes2.prf = prf;
                        }
+                       break;
                }
                case PKCS5_SCHEME_PKCS12:
                        break;