Fixup for "Assure traditional file format if PKCS#8 NOT selected"

Also RSA and DSA keys were marked as EC PRIVATE KEY.
Add break to the switch statement
This commit is contained in:
Christian Hohnstaedt 2018-04-09 05:18:19 +02:00
parent 3ee2fc4015
commit cd118e4e72

View File

@ -732,10 +732,10 @@ int PEM_write_bio_PrivateKey_traditional(BIO *bp, EVP_PKEY *x,
int keytype = EVP_PKEY_id(x);
switch (keytype) {
case EVP_PKEY_RSA: t = "RSA";
case EVP_PKEY_DSA: t = "DSA";
case EVP_PKEY_RSA: t = "RSA"; break;
case EVP_PKEY_DSA: t = "DSA"; break;
#ifndef OPENSSL_NO_EC
case EVP_PKEY_EC: t = "EC";
case EVP_PKEY_EC: t = "EC"; break;
#endif
}