Commit 20c7ba59 authored by Niels Möller's avatar Niels Möller
Browse files

tools/pkcs1-conv.c: Add missing break statements.

parent be1f8dc8
2018-01-16 Niels Möller <nisse@lysator.liu.se>
* tools/pkcs1-conv.c (convert_file): Add missing break statements.
2018-01-09 Niels Möller <nisse@lysator.liu.se> 2018-01-09 Niels Möller <nisse@lysator.liu.se>
* testsuite/testutils.c (test_cipher_ctr): Test operations with * testsuite/testutils.c (test_cipher_ctr): Test operations with
......
...@@ -563,29 +563,21 @@ convert_file(struct nettle_buffer *buffer, ...@@ -563,29 +563,21 @@ convert_file(struct nettle_buffer *buffer,
{ {
case 10: case 10:
if (memcmp(marker, "PUBLIC KEY", 10) == 0) if (memcmp(marker, "PUBLIC KEY", 10) == 0)
{
type = GENERAL_PUBLIC_KEY; type = GENERAL_PUBLIC_KEY;
break; break;
}
case 14: case 14:
if (memcmp(marker, "RSA PUBLIC KEY", 14) == 0) if (memcmp(marker, "RSA PUBLIC KEY", 14) == 0)
{
type = RSA_PUBLIC_KEY; type = RSA_PUBLIC_KEY;
break; break;
}
case 15: case 15:
if (memcmp(marker, "RSA PRIVATE KEY", 15) == 0) if (memcmp(marker, "RSA PRIVATE KEY", 15) == 0)
{
type = RSA_PRIVATE_KEY; type = RSA_PRIVATE_KEY;
break; else if (memcmp(marker, "DSA PRIVATE KEY", 15) == 0)
}
if (memcmp(marker, "DSA PRIVATE KEY", 15) == 0)
{
type = DSA_PRIVATE_KEY; type = DSA_PRIVATE_KEY;
break; break;
} }
}
if (!type) if (!type)
werror("Ignoring unsupported object type `%s'.\n", marker); werror("Ignoring unsupported object type `%s'.\n", marker);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment